|
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 ReverseEnglishAuction
public class 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
Nested Class Summary |
---|
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 | |
---|---|
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 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 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
Exception
GridSim
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
Exception
GridSim
Method Detail |
---|
public void onStart(int round)
onStart
in class OneSidedAuction
round
- the number of the round that has startedOneSidedAuction.onStart(int)
public void onClose(int round)
onClose
in class OneSidedAuction
round
- the round that has finishedOneSidedAuction.onClose(int)
public void onStop()
onStop
in class OneSidedAuction
OneSidedAuction.onStop()
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)
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |