|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.shuttle.OrderContainer
Contains orders mapped with their order id as key.
| Field Summary | |
private java.util.Map |
orders
the ExtendedOrderObjects |
| Constructor Summary | |
OrderContainer()
Constructor |
|
| Method Summary | |
void |
add(ExtendedOrder newExtOrder)
Adds a new ExtendedOrder to the collection |
ExtendedOrder |
get(int oID)
Get an ExtendedOrder from the collection which is identified by it's id attribute |
ExtendedOrder |
get(de.upb.swtpra.kernel.id.OrderID oID)
Get an ExtendedOrder from the collection which is identified by it's id attribute |
void |
init(ModuleContainerInterface container)
Initializes this module. |
java.util.Iterator |
iterator()
|
void |
remove(de.upb.swtpra.kernel.id.OrderID oID)
Removes an ExtendedOrder from the collection which is identified by it's id attribute |
java.lang.String |
toPickabackString()
Iterates through all ExtendedOrders and generates a PickabackString (e.g. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final java.util.Map orders
| Constructor Detail |
public OrderContainer()
| Method Detail |
public void init(ModuleContainerInterface container)
Module
init in interface Modulecontainer - The module manager which contain all modulespublic void add(ExtendedOrder newExtOrder)
OrderContainerInterface
add in interface OrderContainerInterfacenewExtOrder - The ExtendOrder to addpublic ExtendedOrder get(de.upb.swtpra.kernel.id.OrderID oID)
OrderContainerInterface
get in interface OrderContainerInterfaceoID - The identification attribute of the ExtendedOrder
public ExtendedOrder get(int oID)
OrderContainerInterface
get in interface OrderContainerInterfaceoID - The identification attribute of the ExtendedOrder
public void remove(de.upb.swtpra.kernel.id.OrderID oID)
OrderContainerInterface
remove in interface OrderContainerInterfaceoID - The identification attribute of the ExtendedOrderpublic java.util.Iterator iterator()
iterator in interface OrderContainerInterfaceExtendedOrderspublic java.lang.String toPickabackString()
OrderContainerInterface
toPickabackString in interface OrderContainerInterface
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||