|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectThread
Sim_entity
GridSimCore
GridSim
Auction
OneSidedAuction
EnglishAuction
public class EnglishAuction
This class represents an English Auction.
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 | |
|---|---|
EnglishAuction(String auctionName,
double durationOfRounds,
int totalRound)
Constructor |
|
EnglishAuction(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 EnglishAuction(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 EnglishAuction(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 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||