Package org.goplanit.utils.path
Interface ManagedDirectedPath
-
- All Superinterfaces:
Comparable<IdAble>
,ExternalIdAble
,IdAble
,Iterable<EdgeSegment>
,ManagedId
,SimpleDirectedPath
- All Known Implementing Classes:
ManagedDirectedPathImpl
public interface ManagedDirectedPath extends ExternalIdAble, ManagedId, SimpleDirectedPath
Path interface representing a path through the network on edge segment level- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static Class<ManagedDirectedPath>
PATH_ID_CLASS
class to use for id generation
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ManagedDirectedPath
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.default Class<ManagedDirectedPath>
getIdClass()
Each managed id class is expected to generate its ids based on its class signature.ManagedDirectedPath
shallowClone()
Create a shallow copy of this entity-
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 java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.goplanit.utils.id.ManagedId
recreateManagedIds, resetChildManagedIdEntities
-
Methods inherited from interface org.goplanit.utils.path.SimpleDirectedPath
computeLengthKm, containsSubPath, containsSubPath, getFirstSegment, getLastSegment, hashCode, isEmpty, size
-
-
-
-
Field Detail
-
PATH_ID_CLASS
static final Class<ManagedDirectedPath> PATH_ID_CLASS
class to use for id generation
-
-
Method Detail
-
getIdClass
default Class<ManagedDirectedPath> getIdClass()
Each managed id class is expected to generate its ids based on its class signature. To be able to generate the correct id the class used for id generation is to be provided via this method call.- Specified by:
getIdClass
in interfaceManagedId
- Returns:
- idClass to use for generating ids for instances of this idable derived class
-
shallowClone
ManagedDirectedPath shallowClone()
Create a shallow copy of this entity- Specified by:
shallowClone
in interfaceIdAble
- Returns:
- shallow copy of entity
-
deepClone
ManagedDirectedPath 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
-
-