|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface that sets up the information that gets passed to and from the vehicle and the Universal Vehicle Router.
HOrder
Method Summary | |
void |
addProductForOrderType(int amount,
HOrder order)
Put product back for the specified order type. |
java.lang.Object |
clone()
Copy the vehicle being careful to keep the product tracking variables separate. |
int |
getCurrentAmountAvailableForOrderType(HOrder order)
The amount of product that remains for this order type. |
double |
getEarliestDepartureTime()
Return the first time that the vehicle is available to start its journey. |
double |
getPenaltyForTravel(HOrder from,
HOrder to)
Return the penalty for traveling from from to to. |
double |
getRange()
Return the range of the vehicle, in time units. |
double |
getTimeToService(HOrder order)
Return the time it takes to service the order. |
double |
getTimeToTravel(HOrder from,
HOrder to)
Return the time it takes to travel from from to to. |
void |
removeProductForOrderType(int amount,
HOrder order)
Remove product for the specified order type. |
void |
resetProductsForAllOrderTypes()
Reset the vehicle to have all its products for all order types. |
boolean |
supportsHOrderType(HOrder order)
Whether or not this vehicle supports this order. |
Method Detail |
public boolean supportsHOrderType(HOrder order)
order
- order to check for supportHOrder
public int getCurrentAmountAvailableForOrderType(HOrder order)
orderType
- order type in questionHOrder
public void removeProductForOrderType(int amount, HOrder order)
amount
- amount to removeorderType
- order type in qustionHOrder
public void addProductForOrderType(int amount, HOrder order)
amount
- amount to put backorderType
- order type in questionHOrder
public void resetProductsForAllOrderTypes()
HTour
s revalidate themselves.HTour
,
HOrder
public double getEarliestDepartureTime()
public double getTimeToTravel(HOrder from, HOrder to)
from
- where the vehicle travels fromto
- where the vehicle travels toHOrder
public double getTimeToService(HOrder order)
order
- order to serviceHOrder
public double getPenaltyForTravel(HOrder from, HOrder to)
from
- where the vehicle travels fromto
- where the vehicle travels toHOrder
public double getRange()
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |