|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Thread Sim_entity GridSimCore GridSim Auction OneSidedAuction FirstPriceSealedBidAuction
public class FirstPriceSealedBidAuction
This class represents a First-Price Sealed Bid auction.
Auction
,
OneSidedAuction
,
AuctionTags
Nested Class Summary | |
---|---|
(package private) class |
FirstPriceSealedBidAuction.OrderPrice
|
Nested classes/interfaces inherited from class Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class Auction |
---|
outputPort |
Fields inherited from class GridSim |
---|
GRIDSIM_VERSION_STRING, PAUSE |
Fields inherited from class GridSimCore |
---|
input, NETWORK_TYPE, output |
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 OneSidedAuction |
---|
closeAuction, currentRound, getCurrentPrice, getDurationOfRounds, getFinalPrice, getMaxPrice, getMinPrice, getNumberOfRounds, getReservePrice, getWinner, processEvent, processOtherEvent, setCurrentPrice, setFinalPrice, setMaxPrice, setMinPrice, setReservePrice, setWinner, startAuction |
Methods inherited from class Auction |
---|
body, broadcastMessage, getAttribute, getAttributes, getAuctioneerID, getAuctionID, getAuctionProtocol, getBidders, getOutputPort, getStartingTime, setAttribute, setAuctioneerID, setAuctionID, setAuctionProtocol, setBidders, setOutputPort, setStartingTime |
Methods inherited from class GridSimCore |
---|
finalizeGridSimulation, getLink, getPingResult, isNetworked, ping, ping, ping, ping, pingBlockingCall, pingBlockingCall, pingBlockingCall, pingBlockingCall, send, send, send, send, send, send, setBackgroundTraffic, setBackgroundTraffic, terminateIOEntities |
Methods inherited from class Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class Object |
---|
equals, finalize, 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 OneSidedAuction
round
- the number of the round that has startedOneSidedAuction.onStart(int)
public void onStop()
onStop
in class OneSidedAuction
OneSidedAuction.onStop()
public void onClose(int round)
onClose
in class OneSidedAuction
round
- the round that has finishedOneSidedAuction.onClose(int)
public void onReceiveBid(MessageBid bid)
onReceiveBid
in class OneSidedAuction
bid
- the bid received by the auctioneerOneSidedAuction.onReceiveBid(gridsim.auction.MessageBid)
public void onReceiveRejectCallForBid(MessageRejectCallForBid mrej)
onReceiveRejectCallForBid
in class OneSidedAuction
mrej
- the reject received by the auctioneerOneSidedAuction.onReceiveRejectCallForBid(gridsim.auction.MessageRejectCallForBid)
protected LinkedList getBids()
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |