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 doublecriticalSpeedKmHMaximum speed of mode (tied to a road segment) in km/hprotected doublemaxSpeedKmHMaximum 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 MacroscopicModePropertiesclone()Clone this instancedoublegetCriticalSpeedKmH()Collect the critical speed in km/hdoublegetMaximumSpeedKmH()Collect the maximum speed in km/hvoidsetCriticalSpeedKmH(double criticalSpeed)set the critical speed in km/hvoidsetMaximumSpeedKmH(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:
getMaximumSpeedKmHin interfaceMacroscopicModeProperties- Returns:
- the maximum speed in km/h
-
getCriticalSpeedKmH
public double getCriticalSpeedKmH()
Collect the critical speed in km/h- Specified by:
getCriticalSpeedKmHin interfaceMacroscopicModeProperties- Returns:
- the critical speed in km/h
-
setMaximumSpeedKmH
public void setMaximumSpeedKmH(double maxSpeedKmH)
set the maximum speed in km/h- Specified by:
setMaximumSpeedKmHin interfaceMacroscopicModeProperties- Parameters:
maxSpeedKmH- to set
-
setCriticalSpeedKmH
public void setCriticalSpeedKmH(double criticalSpeed)
set the critical speed in km/h- Specified by:
setCriticalSpeedKmHin interfaceMacroscopicModeProperties- Parameters:
criticalSpeed- to set
-
clone
public MacroscopicModeProperties clone()
Clone this instance- Specified by:
clonein interfaceMacroscopicModeProperties- Overrides:
clonein classObject- Returns:
- copy of this instance
-
-