Class TntpNetworkReaderSettings
- java.lang.Object
-
- org.goplanit.tntp.converter.network.TntpNetworkReaderSettings
-
- All Implemented Interfaces:
ConverterReaderSettings
public class TntpNetworkReaderSettings extends Object implements ConverterReaderSettings
Settings for Tntp network reader- Author:
- gman, markr
-
-
Field Summary
Fields Modifier and Type Field Description static Pair<Double,TimeUnits>DEFAULT_TIME_PERIOD_DURATIONdefault time period duration is set to 1 hour
-
Constructor Summary
Constructors Constructor Description TntpNetworkReaderSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetCapacityPeriodDuration()TimeUnitsgetCapacityPeriodUnits()StringgetCoordinateReferenceSystem()doublegetDefaultMaximumSpeed()TimeUnitsgetFreeFlowTravelTimeUnits()LengthUnitsgetLengthUnits()StringgetNetworkFile()Map<NetworkFileColumnType,Integer>getNetworkFileColumns()StringgetNodeCoordinateFile()SpeedUnitsgetSpeedUnits()voidlogSettings()Log relevant settingsvoidreset()be able to reset all settings if neededvoidsetCapacityPeriod(Number duration, TimeUnits units)Determine how the capacity is defined in terms of units, e.g., 1, TimeUnits.Hour reflects that capacity is given in PCU volume per (1) hour.voidsetCoordinateReferenceSystem(String coordinateReferenceSystem)voidsetDefaultMaximumSpeed(Number defaultMaximumSpeed)voidsetFreeFlowTravelTimeUnits(TimeUnits freeFlowTravelTimeUnits)Identify how to interpret the free flow travel time column units in the input filevoidsetLengthUnits(LengthUnits lengthUnits)voidsetNetworkFile(String networkFile)voidsetNetworkFileColumns(Map<NetworkFileColumnType,Integer> networkFileColumns)voidsetNodeCoordinateFile(String nodeCoordinateFile)voidsetSpeedUnits(SpeedUnits speedUnits)
-
-
-
Method Detail
-
reset
public void reset()
be able to reset all settings if needed- Specified by:
resetin interfaceConverterReaderSettings
-
logSettings
public void logSettings()
Log relevant settings- Specified by:
logSettingsin interfaceConverterReaderSettings
-
getNetworkFileColumns
public Map<NetworkFileColumnType,Integer> getNetworkFileColumns()
-
setNetworkFileColumns
public void setNetworkFileColumns(Map<NetworkFileColumnType,Integer> networkFileColumns)
-
getSpeedUnits
public SpeedUnits getSpeedUnits()
-
setSpeedUnits
public void setSpeedUnits(SpeedUnits speedUnits)
-
getLengthUnits
public LengthUnits getLengthUnits()
-
setLengthUnits
public void setLengthUnits(LengthUnits lengthUnits)
-
getCapacityPeriodUnits
public TimeUnits getCapacityPeriodUnits()
-
getCapacityPeriodDuration
public double getCapacityPeriodDuration()
-
setCapacityPeriod
public void setCapacityPeriod(Number duration, TimeUnits units)
Determine how the capacity is defined in terms of units, e.g., 1, TimeUnits.Hour reflects that capacity is given in PCU volume per (1) hour.- Parameters:
duration- duration of the time period for expressing capacity in the unit providedunits- unit to use for the time period duration
-
getDefaultMaximumSpeed
public double getDefaultMaximumSpeed()
-
setDefaultMaximumSpeed
public void setDefaultMaximumSpeed(Number defaultMaximumSpeed)
-
getNetworkFile
public String getNetworkFile()
-
setNetworkFile
public void setNetworkFile(String networkFile)
-
getNodeCoordinateFile
public String getNodeCoordinateFile()
-
setNodeCoordinateFile
public void setNodeCoordinateFile(String nodeCoordinateFile)
-
getCoordinateReferenceSystem
public String getCoordinateReferenceSystem()
-
setCoordinateReferenceSystem
public void setCoordinateReferenceSystem(String coordinateReferenceSystem)
-
getFreeFlowTravelTimeUnits
public TimeUnits getFreeFlowTravelTimeUnits()
-
setFreeFlowTravelTimeUnits
public void setFreeFlowTravelTimeUnits(TimeUnits freeFlowTravelTimeUnits)
Identify how to interpret the free flow travel time column units in the input file- Parameters:
freeFlowTravelTimeUnits- to use
-
-