Package org.goplanit.network.layer
Class TopologicalLayerImpl
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.utils.id.ExternalIdAbleImpl
-
- org.goplanit.network.layer.NetworkLayerImpl
-
- org.goplanit.network.layer.TopologicalLayerImpl
-
- All Implemented Interfaces:
Comparable<IdAble>
,ExternalIdAble
,IdAble
,ManagedId
,NetworkLayer
,TopologicalLayer
- Direct Known Subclasses:
UntypedNetworkLayerImpl
public abstract class TopologicalLayerImpl extends NetworkLayerImpl implements TopologicalLayer
An transport layer that is of a topological nature, i.e., it has node, links, etc.- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.network.layer.NetworkLayerImpl
supportedModes
-
Fields inherited from interface org.goplanit.utils.network.layer.NetworkLayer
NETWORK_LAYER_ID_CLASS
-
-
Constructor Summary
Constructors Constructor Description TopologicalLayerImpl(TopologicalLayerImpl other, boolean deepCopy)
Copy ConstructorTopologicalLayerImpl(IdGroupingToken tokenId)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract TopologicalLayerImpl
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.abstract TopologicalLayerImpl
shallowClone()
Create a shallow copy of this entity-
Methods inherited from class org.goplanit.network.layer.NetworkLayerImpl
generateId, getSupportedModes, logInfo, recreateManagedIds, registerSupportedMode, registerSupportedModes, reset, supportsPredefinedMode
-
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, toString, 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.network.layer.NetworkLayer
getFirstSupportedMode, getIdClass, getSupportedModes, hasSupportedModes, isEmpty, logInfo, registerSupportedMode, registerSupportedModes, reset, supports, supports, supportsPredefinedMode, validate
-
Methods inherited from interface org.goplanit.utils.network.layer.TopologicalLayer
createBoundingBox, getLayerModifier, transform
-
-
-
-
Constructor Detail
-
TopologicalLayerImpl
public TopologicalLayerImpl(IdGroupingToken tokenId)
Constructor- Parameters:
tokenId
- for id generation
-
TopologicalLayerImpl
public TopologicalLayerImpl(TopologicalLayerImpl other, boolean deepCopy)
Copy Constructor- Parameters:
other
- to copydeepCopy
- when true, create a deep copy, shallow copy otherwise
-
-
Method Detail
-
shallowClone
public abstract TopologicalLayerImpl shallowClone()
Create a shallow copy of this entity- Specified by:
shallowClone
in interfaceIdAble
- Specified by:
shallowClone
in interfaceNetworkLayer
- Specified by:
shallowClone
in interfaceTopologicalLayer
- Specified by:
shallowClone
in classNetworkLayerImpl
- Returns:
- shallow copy of entity
-
deepClone
public abstract TopologicalLayerImpl 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:
deepClone
in interfaceIdAble
- Specified by:
deepClone
in interfaceNetworkLayer
- Specified by:
deepClone
in interfaceTopologicalLayer
- Specified by:
deepClone
in classNetworkLayerImpl
- Returns:
- deep copy of entity
-
-