org.eclipse.ohf.stem.internal.data
Class TransportData
java.lang.Object
org.eclipse.ohf.stem.internal.data.DataSetRecord.DataSetData
org.eclipse.ohf.stem.internal.data.GraphRecord.GraphData
org.eclipse.ohf.stem.internal.data.RelationshipGraphData
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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()