|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.OfferingControl
Controls the offering and observes the success or failure of the offers.
| Field Summary | |
protected ShuttleControlInterface |
agent
The shuttle agent which has instanciated this module |
private static java.util.logging.Logger |
log
Logger for debugging |
protected int |
maxOfferCount
Comment for maxOfferCount |
protected DoubleMap |
offeredOrders
Map of OrderIDs (B) with the wakeupTime (A) the offer to this order should be assigned. |
protected static int |
OFFERTIME_VARIANZ
Time between the end time of the offering and a possible assign order message |
protected UnsuccessfulOfferInterface |
unsuccessfulOffer
The unsuccessfulOffer |
| Fields inherited from interface de.upb.swtpra05.group03.shuttle.OfferingControlInterface |
NO_OFFER |
| Constructor Summary | |
OfferingControl()
Constructor |
|
| Method Summary | |
protected void |
assignOrder(de.upb.swtpra.kernel.message.AssignOrder msg)
Receives |
int |
getMaxOfferCount()
Returns the max offer count. |
int |
getOfferCount()
Returns the current offer count. |
void |
init(ModuleContainerInterface container)
Initializes this module. |
void |
newMessageReceived(de.upb.swtpra.kernel.message.Message msg)
React on the received message of the shuttle or not. |
void |
sendOffer(ExtendedOrder eo)
Sends an offer to the kernel for given extended order. |
void |
setMaxOfferCount(int offerCount)
|
protected void |
wakeUpCall(de.upb.swtpra.kernel.message.WakeUpCallMessage msg)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int OFFERTIME_VARIANZ
protected ShuttleControlInterface agent
protected UnsuccessfulOfferInterface unsuccessfulOffer
protected final DoubleMap offeredOrders
protected int maxOfferCount
maxOfferCount
private static final java.util.logging.Logger log
| Constructor Detail |
public OfferingControl()
| Method Detail |
public void init(ModuleContainerInterface container)
Module
init in interface Modulecontainer - The module manager which contain all modulespublic int getOfferCount()
OfferingControlInterface
getOfferCount in interface OfferingControlInterfacepublic void setMaxOfferCount(int offerCount)
offerCount - public int getMaxOfferCount()
OfferingControlInterface
getMaxOfferCount in interface OfferingControlInterfacepublic void newMessageReceived(de.upb.swtpra.kernel.message.Message msg)
ShuttleModule
newMessageReceived in interface ShuttleModulemsg - The received message of the shuttleprotected void wakeUpCall(de.upb.swtpra.kernel.message.WakeUpCallMessage msg)
msg - protected void assignOrder(de.upb.swtpra.kernel.message.AssignOrder msg)
msg - public void sendOffer(ExtendedOrder eo)
OfferingControlInterface
sendOffer in interface OfferingControlInterfaceeo - The extended order to send an offer for
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||