Package org.goplanit.mode
Class HeavyGoodsMode
- java.lang.Object
 - 
- org.goplanit.utils.id.IdAbleImpl
 - 
- org.goplanit.utils.id.ExternalIdAbleImpl
 - 
- org.goplanit.mode.ModeImpl
 - 
- org.goplanit.mode.PredefinedModeImpl
 - 
- org.goplanit.mode.HeavyGoodsMode
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 Comparable<IdAble>,ExternalIdAble,IdAble,ManagedId,Mode,PredefinedMode
public class HeavyGoodsMode extends PredefinedModeImpl
the predefined heavy goods vehicle mode, i.e., truck over 3.5 tonnes- name: hgv
 - maxspeed (km/h): 90
 - pcu: 2.5
 - vehicular type: VEHICULAR
 - motorisation: MOTORISED
 - track: ROAD
 - use: GOODS
 
- Author:
 - markr
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static doubleDEFAULT_MAX_SPEED_KMHstatic doubleDEFAULT_PCUstatic PhysicalModeFeaturesHGV_PHYSICAL_FEATURESstatic UsabilityModeFeaturesHGV_USABLITY_FEATURES- 
Fields inherited from class org.goplanit.mode.ModeImpl
DEFAULT_EXTERNAL_ID 
- 
Fields inherited from interface org.goplanit.utils.mode.Mode
DEFAULT_XML_ID, GLOBAL_DEFAULT_MAXIMUM_SPEED_KMH, GLOBAL_DEFAULT_PCU, MODE_ID_CLASS 
 - 
 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedHeavyGoodsMode(HeavyGoodsMode other, boolean deepCopy)Copy constructorprotectedHeavyGoodsMode(IdGroupingToken groupId)Constructor for heavy goods vehicle mode 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HeavyGoodsModedeepClone()An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call.HeavyGoodsModeshallowClone()Create a shallow copy of this entity- 
Methods inherited from class org.goplanit.mode.PredefinedModeImpl
getPredefinedModeType, toString 
- 
Methods inherited from class org.goplanit.mode.ModeImpl
generateId, getMaximumSpeedKmH, getName, getPcu, getPhysicalFeatures, getUseFeatures, recreateManagedIds 
- 
Methods inherited from class org.goplanit.utils.id.ExternalIdAbleImpl
getExternalId, getXmlId, setExternalId, setXmlId 
- 
Methods inherited from class org.goplanit.utils.id.IdAbleImpl
equals, generateAndSetId, generateId, getId, hashCode, setId 
- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
appendExternalId, appendExternalId, getExternalId, getIdsAsString, getSplitExternalId, getSplitExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId, setXmlId 
- 
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, getId, idEquals, idHashCode 
- 
Methods inherited from interface org.goplanit.utils.id.ManagedId
recreateManagedIds, resetChildManagedIdEntities 
- 
Methods inherited from interface org.goplanit.utils.mode.Mode
containsExternalId, getIdClass, getMaximumSpeedKmH, getName, getPcu, getPhysicalFeatures, getUseFeatures, hasName, hasPhysicalFeatures, hasUseFeatures 
- 
Methods inherited from interface org.goplanit.utils.mode.PredefinedMode
isPredefinedModeType 
 - 
 
 - 
 
- 
- 
Field Detail
- 
DEFAULT_MAX_SPEED_KMH
public static final double DEFAULT_MAX_SPEED_KMH
- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_PCU
public static final double DEFAULT_PCU
- See Also:
 - Constant Field Values
 
 
- 
HGV_PHYSICAL_FEATURES
public static final PhysicalModeFeatures HGV_PHYSICAL_FEATURES
 
- 
HGV_USABLITY_FEATURES
public static final UsabilityModeFeatures HGV_USABLITY_FEATURES
 
 - 
 
- 
Constructor Detail
- 
HeavyGoodsMode
protected HeavyGoodsMode(IdGroupingToken groupId)
Constructor for heavy goods vehicle mode- Parameters:
 groupId- to generate unique id
 
- 
HeavyGoodsMode
protected HeavyGoodsMode(HeavyGoodsMode other, boolean deepCopy)
Copy constructor- Parameters:
 other- to copydeepCopy- when true, create a deep copy, shallow copy otherwise
 
 - 
 
- 
Method Detail
- 
shallowClone
public HeavyGoodsMode shallowClone()
Create a shallow copy of this entity- Specified by:
 shallowClonein interfaceIdAble- Overrides:
 shallowClonein classPredefinedModeImpl- Returns:
 - shallow copy of entity
 
 
- 
deepClone
public HeavyGoodsMode deepClone()
An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call. To be used with caution if not called by managed id container related code- Specified by:
 deepClonein interfaceIdAble- Overrides:
 deepClonein classPredefinedModeImpl- Returns:
 - deep copy of entity
 
 
 - 
 
 -