Class MacroscopicModePropertiesImpl
- java.lang.Object
-
- org.planit.network.physical.macroscopic.MacroscopicModePropertiesImpl
-
- All Implemented Interfaces:
MacroscopicModeProperties
public class MacroscopicModePropertiesImpl extends Object implements MacroscopicModeProperties
Mode specific properties for the macroscopic perspective on the supply side, i.e. on a link segment of a particular type- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description protected double
criticalSpeed
Maximum speed of mode (tied to a road segment)protected double
maxSpeed
Maximum speed of mode (tied to a road segment)-
Fields inherited from interface org.planit.utils.network.physical.macroscopic.MacroscopicModeProperties
DEFAULT_CRITICAL_SPEED, DEFAULT_MAXIMUM_SPEED, DEFAULT_SPEED_EPSILON
-
-
Constructor Summary
Constructors Constructor Description MacroscopicModePropertiesImpl()
Constructor adopting default valuesMacroscopicModePropertiesImpl(double maxSpeed, double criticalSpeed)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCriticalSpeed()
Collect the critical speed in km/hdouble
getMaxSpeed()
Collect the maximum speed in km/h
-
-
-
Constructor Detail
-
MacroscopicModePropertiesImpl
public MacroscopicModePropertiesImpl(double maxSpeed, double criticalSpeed)
Constructor- Parameters:
maxSpeed
- maximum speed for this modecriticalSpeed
- critical speed for this mode
-
MacroscopicModePropertiesImpl
public MacroscopicModePropertiesImpl()
Constructor adopting default values
-
-
Method Detail
-
getMaxSpeed
public double getMaxSpeed()
Description copied from interface:MacroscopicModeProperties
Collect the maximum speed in km/h- Specified by:
getMaxSpeed
in interfaceMacroscopicModeProperties
- Returns:
- the maximum speed in km/h
-
getCriticalSpeed
public double getCriticalSpeed()
Description copied from interface:MacroscopicModeProperties
Collect the critical speed in km/h- Specified by:
getCriticalSpeed
in interfaceMacroscopicModeProperties
- Returns:
- the critical speed in km/h
-
-