Class TampereNodeModelComponent
- java.lang.Object
-
- org.goplanit.component.PlanitComponent<NodeModelComponent>
-
- org.goplanit.supply.network.nodemodel.NodeModelComponent
-
- org.goplanit.supply.network.nodemodel.TampereNodeModelComponent
-
- All Implemented Interfaces:
Serializable
,Comparable<IdAble>
,EventListener
,PlanitComponentListener
,EventListener
,ExternalIdAble
,IdAble
public class TampereNodeModelComponent extends NodeModelComponent
Tampere node model traffic component signalling that the Tampere node model algorithm is to be used- Author:
- markr
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TampereNodeModelComponent(TampereNodeModelComponent other, boolean deepCopy)
Copy constructorTampereNodeModelComponent(IdGroupingToken groupId)
Base Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
collectSettingsAsKeyValueMap()
Provide all the settings of this particular component by name and value, where each value is a string representation of the underlying entityTampereNodeModelComponent
deepClone()
deep clone on planit component should attempt to also update internal dependencies between deep cloned containers where possiblevoid
reset()
All components should be able to reset going back to some representative initial stateTampereNodeModelComponent
shallowClone()
Create a shallow copy of this entity-
Methods inherited from class org.goplanit.component.PlanitComponent
equals, getComponentType, getExternalId, getId, getIdGroupingToken, getKnownSupportedEventTypes, getXmlId, hashCode, onPlanitComponentEvent, setExternalId, setXmlId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.event.EventListener
hasKnownSupportedEventTypes
-
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
appendExternalId, appendExternalId, getIdsAsString, getSplitExternalId, getSplitExternalId, hasExternalId, hasXmlId, setXmlId
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, idEquals, idHashCode
-
-
-
-
Constructor Detail
-
TampereNodeModelComponent
public TampereNodeModelComponent(IdGroupingToken groupId)
Base Constructor- Parameters:
groupId
- contiguous id generation within this group for instances of this class
-
TampereNodeModelComponent
public TampereNodeModelComponent(TampereNodeModelComponent other, boolean deepCopy)
Copy constructor- Parameters:
other
- to copydeepCopy
- when true, create a deep copy, shallow copy otherwise
-
-
Method Detail
-
shallowClone
public TampereNodeModelComponent shallowClone()
Create a shallow copy of this entity- Specified by:
shallowClone
in interfaceIdAble
- Specified by:
shallowClone
in classNodeModelComponent
- Returns:
- shallow copy of entity
-
deepClone
public TampereNodeModelComponent deepClone()
deep clone on planit component should attempt to also update internal dependencies between deep cloned containers where possible- Specified by:
deepClone
in interfaceIdAble
- Specified by:
deepClone
in classNodeModelComponent
- Returns:
- deep copy of entity
-
reset
public void reset()
All components should be able to reset going back to some representative initial state- Specified by:
reset
in classPlanitComponent<NodeModelComponent>
-
collectSettingsAsKeyValueMap
public Map<String,String> collectSettingsAsKeyValueMap()
Provide all the settings of this particular component by name and value, where each value is a string representation of the underlying entity- Specified by:
collectSettingsAsKeyValueMap
in classPlanitComponent<NodeModelComponent>
- Returns:
- name-value map of all (user configurable) settings
-
-