de.upb.swtpra05.group03.companycontrol.plugin.ShuttleInformation
Class ShuttleDataHolder

java.lang.Object
  extended byde.upb.swtpra05.group03.companycontrol.plugin.ShuttleInformation.ShuttleDataHolder

public class ShuttleDataHolder
extends java.lang.Object

A Storage Class to Hold the Data of a Shuttle

Version:
$Revision: 1.3 $

Field Summary
(package private)  java.util.LinkedList accounting
          The Accounting List which stores the Last Billings
(package private)  int activity
          Shuttles actual Activity
(package private)  int ID
          Shuttle ID
(package private)  boolean ismaster
          Is this Shuttle the Master Shuttle?
(package private)  int load
          Shuttles actual Load
(package private)  int margin
          The Shuttles actual Margin
(package private)  int orders
          Shuttles actual Amount of Orders
(package private)  RoutingData route
          The Routing Data of the Shuttle
(package private)  int stretch
          Shuttles actual Stretch
 
Constructor Summary
ShuttleDataHolder()
          Constructor
 
Method Summary
 int getActivity()
           
 int getID()
           
 int getLoad()
           
 int getMargin()
           
 int getOrders()
           
 int getStretch()
           
 boolean isIsmaster()
           
 void updateStatus(de.upb.swtpra.kernel.visualisation.RemoteShuttleStatusChanged rssc)
          Sets the Status of the Shuttle
 void updateString(de.upb.swtpra.kernel.visualisation.RemoteShuttleStatusString rsss)
          Updates the Shuttle Data depending on the Information serialized in the String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stretch

int stretch
Shuttles actual Stretch


load

int load
Shuttles actual Load


margin

int margin
The Shuttles actual Margin


activity

int activity
Shuttles actual Activity


orders

int orders
Shuttles actual Amount of Orders


ID

int ID
Shuttle ID


ismaster

boolean ismaster
Is this Shuttle the Master Shuttle?


route

RoutingData route
The Routing Data of the Shuttle


accounting

java.util.LinkedList accounting
The Accounting List which stores the Last Billings

Constructor Detail

ShuttleDataHolder

public ShuttleDataHolder()
Constructor

Method Detail

updateStatus

public void updateStatus(de.upb.swtpra.kernel.visualisation.RemoteShuttleStatusChanged rssc)
Sets the Status of the Shuttle

Parameters:
rssc -

updateString

public void updateString(de.upb.swtpra.kernel.visualisation.RemoteShuttleStatusString rsss)
Updates the Shuttle Data depending on the Information serialized in the String

Parameters:
rsss -

getActivity

public int getActivity()
Returns:
Returns the activity.

getID

public int getID()
Returns:
Returns the iD.

isIsmaster

public boolean isIsmaster()
Returns:
Returns the ismaster.

getLoad

public int getLoad()
Returns:
Returns the load.

getMargin

public int getMargin()
Returns:
Returns the margin.

getOrders

public int getOrders()
Returns:
Returns the orders.

getStretch

public int getStretch()
Returns:
Returns the stretch.