de.upb.swtpra05.group03.shuttle
Interface ExecutionInterface

All Known Implementing Classes:
Execution

public interface ExecutionInterface

Interface of a execution module.

Version:
$Revision: 1.3 $

Field Summary
static int LOADING_STATE
          Identifies the shuttle state "loading"
static int MOVING_STATE
          Identifies the shuttle state "moving"
static int NOTHINGTODO_STATE
          Identifies the shuttle state "nothing to do"
static int REPAIRING_STATE
          Identifies the shuttle state "repairing"
static int UNLOADING_STATE
          Identifies the shuttle state "unloading"
 
Method Summary
 EfficientBitSet getAssignedOrders()
          Returns the current assigned order ids as bit set.
 EfficientBitSet getEvaluatedOrders()
          Returns the evaluated order ids as bit set.
 int getLoad()
          Returns the current load of the shuttle.
 EfficientBitSet getLoadedOrders()
          Returns the current load order ids as bit set.
 int getState()
          Returns the current shuttle state.
 int getStation()
          Returns the current station id
 void moveToStation(int stationID)
          Move the shuttle from current station to stationID if the taskplan is emtpy.
 

Field Detail

MOVING_STATE

public static final int MOVING_STATE
Identifies the shuttle state "moving"

See Also:
Constant Field Values

REPAIRING_STATE

public static final int REPAIRING_STATE
Identifies the shuttle state "repairing"

See Also:
Constant Field Values

NOTHINGTODO_STATE

public static final int NOTHINGTODO_STATE
Identifies the shuttle state "nothing to do"

See Also:
Constant Field Values

LOADING_STATE

public static final int LOADING_STATE
Identifies the shuttle state "loading"

See Also:
Constant Field Values

UNLOADING_STATE

public static final int UNLOADING_STATE
Identifies the shuttle state "unloading"

See Also:
Constant Field Values
Method Detail

getState

public int getState()
Returns the current shuttle state.

Returns:
the current shuttle state

getLoad

public int getLoad()
Returns the current load of the shuttle.

Returns:
current load of the shuttle

getLoadedOrders

public EfficientBitSet getLoadedOrders()
Returns the current load order ids as bit set.

Returns:
loaded order ids as bit set

getAssignedOrders

public EfficientBitSet getAssignedOrders()
Returns the current assigned order ids as bit set.

Returns:
assigned order ids as bit set

getEvaluatedOrders

public EfficientBitSet getEvaluatedOrders()
Returns the evaluated order ids as bit set.

Returns:
evaluated order ids as bit set

getStation

public int getStation()
Returns the current station id

Returns:
the current station id

moveToStation

public void moveToStation(int stationID)
Move the shuttle from current station to stationID if the taskplan is emtpy.

Parameters:
stationID - id where the shuttle has to move