de.upb.swtpra05.group03.shuttle.shared
Class RoutingData

java.lang.Object
  extended byde.upb.swtpra05.group03.shuttle.shared.RoutingData
All Implemented Interfaces:
PickabackInterface

public class RoutingData
extends java.lang.Object
implements PickabackInterface

Contains a simplified path in form of a string array with the names of stations on the route

Version:
$Revision: 1.3 $

Field Summary
static int PICKABACKIDENTIFIER
          Identifier needed for generating the PickabackString and to recognize this class in a PickabackString
private  java.lang.String[] stationNames
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from interface de.upb.swtpra05.group03.shuttle.shared.PickabackInterface
MEMBERVARSEPARATOR, OBJECTSEPARATOR
 
Constructor Summary
RoutingData(int size)
          Constructor for the RoutingData object
RoutingData(java.lang.String[] tstationNames)
          Constructor for the RoutingData object
 
Method Summary
static RoutingData createRoutingDataFromPickaback(java.lang.String s)
          Decodes a previosly encoded RoutingData-Pickabackstring and returns the RoutingData
 int getNumberOfStationNames()
          Gets the numberOfStationNames attribute of the RoutingData object
 java.lang.String getStationName(int n)
          Gets the stationName attribute of the RoutingData object
 java.lang.String[] getStationNames()
          Gets the stationNames attribute of the RoutingData object
 void setStationName(int n, java.lang.String tStationName)
          Sets the stationName attribute of the RoutingData object
 java.lang.String toPickabackString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PICKABACKIDENTIFIER

public static final int PICKABACKIDENTIFIER
Identifier needed for generating the PickabackString and to recognize this class in a PickabackString

See Also:
Constant Field Values

stationNames

private java.lang.String[] stationNames
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

RoutingData

public RoutingData(java.lang.String[] tstationNames)
Constructor for the RoutingData object

Parameters:
tstationNames - Description of the Parameter

RoutingData

public RoutingData(int size)
Constructor for the RoutingData object

Parameters:
size - Description of the Parameter
Method Detail

getStationName

public java.lang.String getStationName(int n)
Gets the stationName attribute of the RoutingData object

Parameters:
n - Description of the Parameter
Returns:
The stationName value

setStationName

public void setStationName(int n,
                           java.lang.String tStationName)
Sets the stationName attribute of the RoutingData object

Parameters:
n - The new stationName value
tStationName - The new stationName value

getStationNames

public java.lang.String[] getStationNames()
Gets the stationNames attribute of the RoutingData object

Returns:
The stationNames value

getNumberOfStationNames

public int getNumberOfStationNames()
Gets the numberOfStationNames attribute of the RoutingData object

Returns:
The numberOfStationNames value

toPickabackString

public java.lang.String toPickabackString()
Description of the Method

Returns:
Description of the Return Value

createRoutingDataFromPickaback

public static RoutingData createRoutingDataFromPickaback(java.lang.String s)
Decodes a previosly encoded RoutingData-Pickabackstring and returns the RoutingData

Parameters:
s - a string-encoded RoutingData
Returns:
the decoded RoutingData