org.eclipse.ohf.stem.internal.data
Class TransportData

java.lang.Object
  extended by org.eclipse.ohf.stem.internal.data.DataSetRecord.DataSetData
      extended by org.eclipse.ohf.stem.internal.data.GraphRecord.GraphData
          extended by org.eclipse.ohf.stem.internal.data.RelationshipGraphData
              extended by org.eclipse.ohf.stem.internal.data.TransportData

public class TransportData
extends RelationshipGraphData

This class contains one line of data extracted from a transportation relationship specification file.


Constructor Summary
TransportData(java.lang.String propertyKey, java.lang.String propertyValue)
           
 
Method Summary
 int getMaxCapacity()
           
 int getMaxDepartureCapacity()
           
 int getStartUpDelay()
           
 long getTransitTime()
           
 java.lang.String getTransportIdentifer()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ohf.stem.internal.data.RelationshipGraphData
getKeyA, getKeyB, isDirected
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransportData

public TransportData(java.lang.String propertyKey,
                     java.lang.String propertyValue)
              throws java.text.ParseException
Parameters:
propertyKey - the key of the property (typically a number e.g., "1")
propertyValue - a string read from a relationship properties file.
Throws:
java.text.ParseException - if there is a problem with parsing the data.
Method Detail

getTransportIdentifer

public final java.lang.String getTransportIdentifer()
Returns:
the identifier of the transportation, for example, the name of a road

getMaxCapacity

public final int getMaxCapacity()
Returns:
the maxCapacity

getMaxDepartureCapacity

public final int getMaxDepartureCapacity()
Returns:
the maxDepartureCapacity

getStartUpDelay

public final int getStartUpDelay()
Returns:
the startUpDelay

getTransitTime

public final long getTransitTime()
Returns:
the transitTime

toString

public java.lang.String toString()
Overrides:
toString in class RelationshipGraphData
See Also:
Object.toString()