|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.shared.ExtendedOrder
Class which is an extension but does not extend the AnOrder class. It is used as an shuttle internal dataholder and contains several information about the status of the order
| Field Summary | |
private int |
billingState
Indicats the current billing tate of the order |
private int |
executionState
Indicats the current execution state of the order |
private int |
negotiationState
Indicats the current negotiation state of the order |
private int |
nextWakeUpTime
Time value which indicates the next time the order should be updated for any purpose |
private de.upb.swtpra.kernel.message.AnOrder |
o
The matching AnOrder object |
private int |
offerPrice
The offerPrice for this order |
private int |
offerSentTime
The time an offer was sent for the order |
private int |
orderAvailableTime
The time an offer was sent for the order |
static int |
PICKABACKIDENTIFIER
Identifier needed for generating the PickabackString and to recognize this class in a PickabackString |
private int |
removeTime
The WakeUpTime on which the order will be removed (if all states are set to DONE) |
private int |
selfcosts
The estimated selfcosts for this order |
| Fields inherited from interface de.upb.swtpra05.group03.shuttle.shared.PickabackInterface |
MEMBERVARSEPARATOR, OBJECTSEPARATOR |
| Constructor Summary | |
ExtendedOrder(de.upb.swtpra.kernel.message.AnOrder o)
Constructor for class ExtendedOrder |
|
ExtendedOrder(de.upb.swtpra.kernel.message.AnOrder o,
int negotiationState,
int executionState,
int billingState)
Overload for the constructor for class ExtendedOrder |
|
| Method Summary | |
static ExtendedOrder |
createExtendedOrderFromPickaback(java.lang.String s)
Decodes a previosly encoded ExtendedOrder-Pickabackstring and returns the ExtendedOrder |
int |
getBillingState()
Get the billingState attribute of the ExtendedOrder object |
java.lang.String |
getBillingStateString()
Gets the billingStateString attribute of the ExtendedOrder object |
int |
getDestinationTimeLimit()
Get the destinationTimeLimit attribute of the ExtendedOrder object |
int |
getDuration()
Get the duration attribute of the ExtendedOrder object |
int |
getExecutionState()
Gets the current execution state |
java.lang.String |
getExecutionStateString()
Gets the executionStateString attribute of the ExtendedOrder object |
de.upb.swtpra.kernel.id.OrderID |
getID()
Get the iD attribute of the ExtendedOrder object |
int |
getNegotiationState()
Get the state attribute of the ExtendedOrder object |
java.lang.String |
getNegotiationStateString()
Gets the negotiationStateString attribute of the ExtendedOrder object |
int |
getNextWakeUpTime()
Gets the next wakeup time value |
int |
getOfferPrice()
Gets the offerPrice value of the order |
int |
getOfferSentTime()
Get the offerSentTime attribute of the ExtendedOrder object |
de.upb.swtpra.kernel.message.AnOrder |
getOrder()
Get the order attribute of the ExtendedOrder object |
int |
getOrderAvailableTime()
Get the orderAvailableTime attribute of the ExtendedOrder object |
int |
getProfit()
Get the profit attribute of the ExtendedOrder object |
int |
getRemoveTime()
|
int |
getSelfcosts()
Gets the estimated selfcosts value of the order |
java.lang.String |
getStateString(int state)
Gets the stateString attribute of the ExtendedOrder object |
boolean |
isDONE()
|
boolean |
isFinallyUnassigned(int curTime)
|
int |
setBillingState(int newBillingState)
Sets the billingState attribute of the ExtendedOrder object |
int |
setExecutionState(int newExecutionState)
Sets the state attribute of the ExtendedOrder object |
int |
setNegotiationState(int newNegotiationState)
Sets the state attribute of the ExtendedOrder object |
void |
setNextWakeUpTime(int nextWakeUpTime)
Sets the next wakeup time value |
void |
setOfferPrice(int offerPrice)
Sets the offerPrice value of the order |
void |
setOfferSentTime(int newOfferSentTime)
Sets the offerSentTime attribute of the ExtendedOrder object |
void |
setOrderAvailableTime(int newOrderAvailableTime)
Sets the orderAvailableTime attribute of the ExtendedOrder object |
void |
setRemoveTime(int timeTillRemoveOrder)
|
void |
setSelfcosts(int selfcosts)
Sets the selfcosts value of the order |
java.lang.String |
toPickabackString()
Generates a String representing this class, used for communication with plugin |
void |
update(ExtendedOrder newExtOrder)
Updates an existing ExtendOrder with new information from an new instance of for the same AnOrder object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private de.upb.swtpra.kernel.message.AnOrder o
private int negotiationState
private int executionState
private int billingState
private int offerSentTime
private int orderAvailableTime
private int nextWakeUpTime
private int selfcosts
private int offerPrice
private int removeTime
public static final int PICKABACKIDENTIFIER
| Constructor Detail |
public ExtendedOrder(de.upb.swtpra.kernel.message.AnOrder o)
o - The matching AnOrder object
public ExtendedOrder(de.upb.swtpra.kernel.message.AnOrder o,
int negotiationState,
int executionState,
int billingState)
o - The matching AnOrder objectnegotiationState - The negotiation stateexecutionState - The execution statebillingState - The billing state| Method Detail |
public void update(ExtendedOrder newExtOrder)
newExtOrder - The new instance of the ExtendeOrder objectpublic java.lang.String toPickabackString()
public static ExtendedOrder createExtendedOrderFromPickaback(java.lang.String s)
s - a string-encoded ExtendedOrder
public int getNegotiationState()
public int setNegotiationState(int newNegotiationState)
newNegotiationState - The new negotiationState value
public java.lang.String getNegotiationStateString()
public int getExecutionState()
public int setExecutionState(int newExecutionState)
newExecutionState - The new executionState value
public java.lang.String getExecutionStateString()
public int getBillingState()
public int setBillingState(int newBillingState)
newBillingState - The new billingState value
public java.lang.String getBillingStateString()
public java.lang.String getStateString(int state)
state - Description of the Parameter
public boolean isDONE()
public boolean isFinallyUnassigned(int curTime)
curTime -
public void setOfferSentTime(int newOfferSentTime)
newOfferSentTime - The new offerSentTime valuepublic int getOfferSentTime()
public void setOrderAvailableTime(int newOrderAvailableTime)
newOrderAvailableTime - The new orderAvailableTime valuepublic int getOrderAvailableTime()
public de.upb.swtpra.kernel.message.AnOrder getOrder()
public de.upb.swtpra.kernel.id.OrderID getID()
public int getProfit()
public int getDestinationTimeLimit()
public int getDuration()
public int getNextWakeUpTime()
public void setNextWakeUpTime(int nextWakeUpTime)
nextWakeUpTime - The new nextWakeUpTime valuepublic int getSelfcosts()
public void setSelfcosts(int selfcosts)
selfcosts - The new selfcosts valuepublic int getOfferPrice()
public void setOfferPrice(int offerPrice)
offerPrice - The new offerPrice valuepublic void setRemoveTime(int timeTillRemoveOrder)
timeTillRemoveOrder - public int getRemoveTime()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||