de.upb.swtpra05.group03.plugin
Class OrderNode

java.lang.Object
  extended byde.upb.swtpra05.group03.plugin.OrderNode

class OrderNode
extends java.lang.Object

No comment provided by developer, please add a comment to improve documentation.

Version:
$Revision: 1.3 $

Field Summary
private  ExtendedOrder extendedOrder
          No comment provided by developer, please add a comment to improve documentation.
private  int mode
          Specifies which info of extendedOrder will be used to generate the string in toString() method -1 error, should not happen 0 id 1 startStationID 2 startStation 3 destinationStationID 4 destinationStation 5 penalty 6 profit 7 duration 8 destinationTimeLimit 9 numberOfPassengers 10 paymentMethod 11 NegotiationState as int 12 NegotiationState as string 13 ExecutionState as int 14 ExecutionState as string 15 BillingState as int 16 BillingState as string 99 Billingmethod + BillingState as string 100 id + major state (i.e. only the significant state gets displayed) 101 id + ExecutionState as string 102 id + major state + start to destination
 
Constructor Summary
OrderNode(ExtendedOrder newExtendedOrder, int newMode)
          Constructor for class OrderNode
 
Method Summary
 java.lang.String calcTime(long simTime)
          Converts the simulation time in some variables of the order into a string
private  java.lang.String getSignificantState(ExtendedOrder eO)
          Get the significantState attribute of the OrderNode object
 java.lang.String toString()
          Converts the information from the order to the type defined in the variable mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

extendedOrder

private ExtendedOrder extendedOrder
No comment provided by developer, please add a comment to improve documentation.


mode

private int mode
Specifies which info of extendedOrder will be used to generate the string in toString() method -1 error, should not happen 0 id 1 startStationID 2 startStation 3 destinationStationID 4 destinationStation 5 penalty 6 profit 7 duration 8 destinationTimeLimit 9 numberOfPassengers 10 paymentMethod 11 NegotiationState as int 12 NegotiationState as string 13 ExecutionState as int 14 ExecutionState as string 15 BillingState as int 16 BillingState as string 99 Billingmethod + BillingState as string 100 id + major state (i.e. only the significant state gets displayed) 101 id + ExecutionState as string 102 id + major state + start to destination

Constructor Detail

OrderNode

public OrderNode(ExtendedOrder newExtendedOrder,
                 int newMode)
Constructor for class OrderNode

Parameters:
newExtendedOrder - the order from which this class should represent single information
newMode - the information of the order this class should represent
Method Detail

toString

public java.lang.String toString()
Converts the information from the order to the type defined in the variable mode.

Returns:
a string with the part of information requested

getSignificantState

private java.lang.String getSignificantState(ExtendedOrder eO)
Get the significantState attribute of the OrderNode object

Parameters:
eO - No description provided
Returns:
The significantState value

calcTime

public java.lang.String calcTime(long simTime)
Converts the simulation time in some variables of the order into a string

Parameters:
simTime - the simulation time to convert
Returns:
the string with the converted simulation time