|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.OrderHandlingInfo
Holds the order handling info: duration to finish the order and number of connections between loading and unloading the order.
| Field Summary | |
private int |
connections
number of connections of the order |
private int |
duration
duration of the order |
| Constructor Summary | |
OrderHandlingInfo(int dur,
int conns)
Constructor: Simply sets the attributes. |
|
| Method Summary | |
void |
add(int dur,
int conns)
Add the given values to the attributes. |
int |
getConnections()
Returns the number of connections between loading and unloading the order. |
int |
getDuration()
Returns the order duration to finish the order. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int duration
private int connections
| Constructor Detail |
public OrderHandlingInfo(int dur,
int conns)
dur - the duration of the orderconns - the number of connections of the order| Method Detail |
public void add(int dur,
int conns)
dur - the duration of the oderconns - the number of connections of the orderpublic int getDuration()
OrderHandlingInfoInterface
getDuration in interface OrderHandlingInfoInterfacepublic int getConnections()
OrderHandlingInfoInterface
getConnections in interface OrderHandlingInfoInterface
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||