de.upb.swtpra05.group03.shuttle
Interface OrderContainerInterface

All Known Implementing Classes:
OrderContainer

public interface OrderContainerInterface

Interface of an order container.

Version:
$Revision: 1.3 $

Method Summary
 void add(ExtendedOrder eo)
          Adds a new ExtendedOrder to the collection
 ExtendedOrder get(int id)
          Get an ExtendedOrder from the collection which is identified by it's id attribute
 ExtendedOrder get(de.upb.swtpra.kernel.id.OrderID id)
          Get an ExtendedOrder from the collection which is identified by it's id attribute
 java.util.Iterator iterator()
           
 void remove(de.upb.swtpra.kernel.id.OrderID id)
          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.
 

Method Detail

add

public void add(ExtendedOrder eo)
Adds a new ExtendedOrder to the collection

Parameters:
eo - The ExtendOrder to add

get

public ExtendedOrder get(de.upb.swtpra.kernel.id.OrderID id)
Get an ExtendedOrder from the collection which is identified by it's id attribute

Parameters:
id - The identification attribute of the ExtendedOrder
Returns:
An instance of the ExtendedOrder object with this id value or null if it doesn't exist

get

public ExtendedOrder get(int id)
Get an ExtendedOrder from the collection which is identified by it's id attribute

Parameters:
id - The identification attribute of the ExtendedOrder
Returns:
An instance of the ExtendedOrder object with this id value or null if it doesn't exist

remove

public void remove(de.upb.swtpra.kernel.id.OrderID id)
Removes an ExtendedOrder from the collection which is identified by it's id attribute

Parameters:
id - The identification attribute of the ExtendedOrder

iterator

public java.util.Iterator iterator()
Returns:
An iterator over the ExtendedOrders

toPickabackString

public java.lang.String toPickabackString()
Iterates through all ExtendedOrders and generates a PickabackString (e.g. calls Object.toPickabackString(), used from PluginMessenger.

Returns:
the resulting PickabackString as a String