|
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.FirstPriceSealedBidAuction
This class represents a First-Price Sealed Bid auction.
Auction,
OneSidedAuction,
AuctionTags| Nested Class Summary | |
(package private) class |
FirstPriceSealedBidAuction.OrderPrice
|
| 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 | |
FirstPriceSealedBidAuction(String auctionName,
double durationOfAuction)
|
|
FirstPriceSealedBidAuction(String auctionName,
int auctioneerID,
double durationOfAuction,
Sim_port output)
|
|
| Method Summary | |
protected LinkedList |
getBids()
|
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 FirstPriceSealedBidAuction(String auctionName,
int auctioneerID,
double durationOfAuction,
Sim_port output)
throws Exception
auctionName - a name for the auctionauctioneerID - the GridSim id of the auctioneerdurationOfAuction - simulation time of the duration of the auctionoutput - the auctioneer's output port
Exception
public FirstPriceSealedBidAuction(String auctionName,
double durationOfAuction)
throws Exception
auctionName - a name for the auctiondurationOfAuction - simulation time of the duration of the auction
Exception| Method Detail |
public void onStart(int round)
onStart in class OneSidedAuctionround - the number of the round that has startedOneSidedAuction.onStart(int)public void onStop()
onStop in class OneSidedAuctionOneSidedAuction.onStop()public void onClose(int round)
onClose in class OneSidedAuctionround - the round that has finishedOneSidedAuction.onClose(int)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)protected LinkedList getBids()
|
GridSim v4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||