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 doublecriticalSpeedMaximum speed of mode (tied to a road segment)protected doublemaxSpeedMaximum 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 doublegetCriticalSpeed()Collect the critical speed in km/hdoublegetMaxSpeed()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:MacroscopicModePropertiesCollect the maximum speed in km/h- Specified by:
getMaxSpeedin interfaceMacroscopicModeProperties- Returns:
- the maximum speed in km/h
-
getCriticalSpeed
public double getCriticalSpeed()
Description copied from interface:MacroscopicModePropertiesCollect the critical speed in km/h- Specified by:
getCriticalSpeedin interfaceMacroscopicModeProperties- Returns:
- the critical speed in km/h
-
-