|
GridSim v4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectThread
eduni.simjava.Sim_entity
gridsim.GridSimCore
gridsim.GridSim
gridsim.auction.Auction
gridsim.auction.OneSidedAuction
gridsim.auction.ReverseEnglishAuction
This class represents a Reverse English Auction. In a reverse auction, buyers start the auction and the lowest bid is considered the best. Therefore, the English auction becomes descending and starts with the max price going until the min price.
Auction,
OneSidedAuction,
AuctionTags| Field Summary |
| Fields inherited from class gridsim.auction.Auction |
outputPort |
| Fields inherited from class gridsim.GridSim |
PAUSE, rand, SimulationStartDate |
| Fields inherited from class gridsim.GridSimCore |
input, output |
| Fields inherited from class eduni.simjava.Sim_entity |
|
| Fields inherited from class Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
ReverseEnglishAuction(String auctionName,
double durationOfRounds,
int totalRound)
Constructor |
|
ReverseEnglishAuction(String auctionName,
int auctioneerID,
double durationOfRounds,
int totalRound,
Sim_port output)
Constructor |
|
| Method Summary | |
void |
onClose(int round)
This method is invoked when a round finishes |
void |
onReceiveBid(MessageBid bid)
This method is called when a bid is received. |
void |
onReceiveRejectCallForBid(MessageRejectCallForBid mrej)
Called when a reject bid is received. |
void |
onStart(int round)
This method is called when a round is started |
void |
onStop()
This method is called when the auction finishes |
| Methods inherited from class gridsim.auction.OneSidedAuction |
closeAuction, currentRound, getCurrentPrice, getDurationOfRounds, getFinalPrice, getMaxPrice, getMinPrice, getNumberOfRounds, getReservePrice, getWinner, processEvent, processOtherEvent, setCurrentPrice, setFinalPrice, setMaxPrice, setMinPrice, setReservePrice, setWinner, startAuction |
| Methods inherited from class gridsim.auction.Auction |
body, broadcastMessage, getAttribute, getAttributes, getAuctioneerID, getAuctionID, getAuctionProtocol, getBidders, getOutputPort, getStartingTime, setAttribute, setAuctioneerID, setAuctionProtocol, setBidders, setOutputPort, setStartingTime |
| Methods inherited from class gridsim.GridSimCore |
finalize, finalizeGridSimulation, getLink, getPingResult, isNetworked, IsNetworked, ping, ping, ping, ping, pingBlockingCall, pingBlockingCall, pingBlockingCall, pingBlockingCall, send, Send, send, Send, send, Send, send, Send, send, Send, send, Send, setBackgroundTraffic, setBackgroundTraffic, TerminateInputOutputEntities, terminateIOEntities |
| Methods inherited from class eduni.simjava.Sim_entity |
add_generator, add_param, add_port, clone, get_id, get_name, get_port, get_port, get_stat, run, send_on, set_invisible, set_stat, sim_cancel, sim_completed, sim_current, sim_get_next, sim_get_next, sim_hold_for, sim_hold, sim_pause_for, sim_pause_for, sim_pause_until, sim_pause_until, sim_pause, sim_process_for, sim_process_for, sim_process_until, sim_process_until, sim_process, sim_putback, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_select, sim_trace, sim_wait_for, sim_wait_for, sim_wait_for, sim_wait, sim_waiting, sim_waiting |
| Methods inherited from class Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ReverseEnglishAuction(String auctionName,
int auctioneerID,
double durationOfRounds,
int totalRound,
Sim_port output)
throws Exception
auctionName - a name for the auctionauctioneerID - the GridSim id of the auctioneerdurationOfRounds - simulation time of the duration of each roundtotalRound - the number of roundsoutput - the auctioneer's output port
ExceptionGridSim
public ReverseEnglishAuction(String auctionName,
double durationOfRounds,
int totalRound)
throws Exception
auctionName - a name for the auctiondurationOfRounds - simulation time of the duration of each roundtotalRound - the number of rounds
ExceptionGridSim| Method Detail |
public void onStart(int round)
onStart in class OneSidedAuctionround - the number of the round that has startedOneSidedAuction.onStart(int)public void onClose(int round)
onClose in class OneSidedAuctionround - the round that has finishedOneSidedAuction.onClose(int)public void onStop()
onStop in class OneSidedAuctionOneSidedAuction.onStop()public void onReceiveBid(MessageBid bid)
onReceiveBid in class OneSidedAuctionbid - the bid received by the auctioneerOneSidedAuction.onReceiveBid(gridsim.auction.MessageBid)public void onReceiveRejectCallForBid(MessageRejectCallForBid mrej)
onReceiveRejectCallForBid in class OneSidedAuctionmrej - the reject received by the auctioneerOneSidedAuction.onReceiveRejectCallForBid(gridsim.auction.MessageRejectCallForBid)
|
GridSim v4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||