Class MacroscopicModePropertiesImpl
- java.lang.Object
-
- org.planit.network.macroscopic.physical.MacroscopicModePropertiesImpl
-
- All Implemented Interfaces:
Cloneable
,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
criticalSpeedKmH
Maximum speed of mode (tied to a road segment) in km/hprotected double
maxSpeedKmH
Maximum speed of mode (tied to a road segment) in km/h-
Fields inherited from interface org.planit.utils.network.physical.macroscopic.MacroscopicModeProperties
DEFAULT_CRITICAL_SPEED_KMH, DEFAULT_SPEED_EPSILON
-
-
Constructor Summary
Constructors Constructor Description MacroscopicModePropertiesImpl(MacroscopicModePropertiesImpl other)
Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MacroscopicModeProperties
clone()
Clone this instancedouble
getCriticalSpeedKmH()
Collect the critical speed in km/hdouble
getMaximumSpeedKmH()
Collect the maximum speed in km/hvoid
setCriticalSpeedKmH(double criticalSpeed)
set the critical speed in km/hvoid
setMaximumSpeedKmH(double maxSpeedKmH)
set the maximum speed in km/h
-
-
-
Constructor Detail
-
MacroscopicModePropertiesImpl
public MacroscopicModePropertiesImpl(MacroscopicModePropertiesImpl other)
Copy constructor- Parameters:
other
- to copy
-
-
Method Detail
-
getMaximumSpeedKmH
public double getMaximumSpeedKmH()
Collect the maximum speed in km/h- Specified by:
getMaximumSpeedKmH
in interfaceMacroscopicModeProperties
- Returns:
- the maximum speed in km/h
-
getCriticalSpeedKmH
public double getCriticalSpeedKmH()
Collect the critical speed in km/h- Specified by:
getCriticalSpeedKmH
in interfaceMacroscopicModeProperties
- Returns:
- the critical speed in km/h
-
setMaximumSpeedKmH
public void setMaximumSpeedKmH(double maxSpeedKmH)
set the maximum speed in km/h- Specified by:
setMaximumSpeedKmH
in interfaceMacroscopicModeProperties
- Parameters:
maxSpeedKmH
- to set
-
setCriticalSpeedKmH
public void setCriticalSpeedKmH(double criticalSpeed)
set the critical speed in km/h- Specified by:
setCriticalSpeedKmH
in interfaceMacroscopicModeProperties
- Parameters:
criticalSpeed
- to set
-
clone
public MacroscopicModeProperties clone()
Clone this instance- Specified by:
clone
in interfaceMacroscopicModeProperties
- Overrides:
clone
in classObject
- Returns:
- copy of this instance
-
-