Package org.planit.mode
Class PredefinedModeImpl
- java.lang.Object
-
- org.planit.mode.ModeImpl
-
- org.planit.mode.PredefinedModeImpl
-
- All Implemented Interfaces:
Comparable<Idable>
,ExternalIdable
,Idable
,Mode
,PredefinedMode
- Direct Known Subclasses:
BicycleMode
,BusMode
,CarHighOccupancyMode
,CarMode
,CarShareMode
,GoodsMode
,HeavyGoodsMode
,LargeHeavyGoodsMode
,LightRailMode
,MotorBikeMode
,PedestrianMode
,SubwayMode
,TrainMode
,TramMode
public class PredefinedModeImpl extends ModeImpl implements PredefinedMode
A mode that has predefined fixed values so it can easily be understood, or mapped- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.planit.mode.ModeImpl
DEFAULT_EXTERNAL_ID
-
Fields inherited from interface org.planit.utils.mode.Mode
DEFAULT_XML_ID, GLOBAL_DEFAULT_MAXIMUM_SPEED_KMH, GLOBAL_DEFAULT_PCU
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PredefinedModeImpl(IdGroupingToken groupId, PredefinedModeType modeType, double maxSpeed, double pcu, PhysicalModeFeatures physicalFeatures, UsabilityModeFeatures usabilityFeatures)
A predefined mode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PredefinedModeType
getPredefinedModeType()
Collect the predefined mode type of this mode-
Methods inherited from class org.planit.mode.ModeImpl
equals, getExternalId, getId, getMaximumSpeedKmH, getName, getPcu, getPhysicalFeatures, getUseFeatures, getXmlId, hasExternalId, hashCode, setExternalId, setXmlId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.planit.utils.id.ExternalIdable
getExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId
-
Methods inherited from interface org.planit.utils.id.Idable
compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface org.planit.utils.mode.Mode
getMaximumSpeedKmH, getName, getPcu, getPhysicalFeatures, getUseFeatures, hasName, hasPhysicalFeatures, hasUseFeatures
-
Methods inherited from interface org.planit.utils.mode.PredefinedMode
isPredefinedModeType
-
-
-
-
Constructor Detail
-
PredefinedModeImpl
protected PredefinedModeImpl(IdGroupingToken groupId, PredefinedModeType modeType, double maxSpeed, double pcu, PhysicalModeFeatures physicalFeatures, UsabilityModeFeatures usabilityFeatures)
A predefined mode- Parameters:
groupId
- groupId for id generationmodeType
- predefined mode type usedmaxSpeed
- the maximum speed for this predefined mode typepcu
- pcu value for this predefined modephysicalFeatures
- physical features of the modeusabilityFeatures
- usabilitu features of the mode
-
-
Method Detail
-
getPredefinedModeType
public PredefinedModeType getPredefinedModeType()
Collect the predefined mode type of this mode- Specified by:
getPredefinedModeType
in interfaceMode
- Returns:
- predefined mode type
-
-