Package org.goplanit.utils.id
Interface ManagedIdEntityFactory<E extends ManagedId>
-
- Type Parameters:
E- type the factory is creating instances for
- All Known Subinterfaces:
CentroidFactory,CentroidVertexFactory,ConjugateConnectoidEdgeFactory,ConjugateConnectoidNodeFactory,ConjugateConnectoidSegmentFactory,ConjugateDirectedEdgeFactory,ConjugateDirectedVertexFactory,ConjugateEdgeFactory,ConjugateEdgeSegmentFactory,ConjugateLinkFactory,ConjugateLinkSegmentFactory,ConjugateNodeFactory,ConjugateVertexFactory,ConnectoidEdgeFactory,ConnectoidSegmentFactory,ContainerisedDirectedPathFactory,DirectedConnectoidFactory,DirectedEdgeFactory,DirectedVertexFactory,EdgeFactory,EdgeSegmentFactory,GraphEntityFactory<E>,LinkFactory<L>,LinkSegmentFactory,MacroscopicLinkFactory,MacroscopicLinkSegmentFactory,MacroscopicLinkSegmentTypeFactory,MacroscopicNetworkLayerFactory,ManagedDirectedPathFactory,ModeFactory,NodeFactory,OdZoneFactory,RoutedServiceFactory,RoutedServicesLayerFactory,RoutedTripDepartureFactory,RoutedTripFactory<T>,RoutedTripFrequencyFactory,RoutedTripScheduleFactory,ServiceLegFactory,ServiceLegSegmentFactory,ServiceNetworkLayerFactory,ServiceNodeFactory,TransferZoneFactory,TransferZoneGroupFactory,UndirectedConnectoidFactory,VertexFactory
- All Known Implementing Classes:
CentroidFactoryImpl,CentroidVertexFactoryImpl,ConjugateConnectoidEdgeFactoryImpl,ConjugateConnectoidNodeFactoryImpl,ConjugateConnectoidSegmentFactoryImpl,ConjugateDirectedEdgeFactoryImpl,ConjugateDirectedVertexFactoryImpl,ConjugateEdgeSegmentFactoryImpl,ConjugateLinkFactoryImpl,ConjugateLinkSegmentFactoryImpl,ConjugateNodeFactoryImpl,ConjugateVertexFactoryImpl,ConnectoidEdgeFactoryImpl,ConnectoidSegmentFactoryImpl,ContainerisedDirectedPathFactoryImpl,DirectedConnectoidFactoryImpl,DirectedEdgeFactoryImpl,DirectedVertexFactoryImpl,EdgeFactoryImpl,EdgeSegmentFactoryImpl,GraphEntityFactoryImpl,LinkFactoryImpl,MacroscopicLinkFactoryImpl,MacroscopicLinkSegmentFactoryImpl,MacroscopicLinkSegmentTypeFactoryImpl,MacroscopicNetworkLayerFactoryImpl,ManagedDirectedPathFactoryImpl,ManagedIdEntityFactoryImpl,ModeFactoryImpl,NodeFactoryImpl,OdZoneFactoryImpl,RoutedServiceFactoryImpl,RoutedServicesLayerFactoryImpl,RoutedTripDepartureFactoryImpl,RoutedTripFactoryImpl,RoutedTripFrequencyFactoryImpl,RoutedTripScheduleFactoryImpl,ServiceLegFactoryImpl,ServiceLegSegmentFactoryImpl,ServiceNetworkLayerFactoryImpl,ServiceNodeFactoryImpl,TimePeriodsFactory,TransferZoneFactoryImpl,TransferZoneGroupFactoryImpl,TravellerTypesFactory,UndirectedConnectoidFactoryImpl,UserClassesFactory,VertexFactoryImpl,ZoneFactoryImpl
public interface ManagedIdEntityFactory<E extends ManagedId>A base abstract class for factories that create entities with a managed internal id. No methods because it is used as a placeholder to be able to let derived classes override the return type of the super class's access to this factory for a more specific factory implementation- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EcreateUniqueDeepCopyOf(ManagedId entityToCopy)Create a deep copy of the passed in entity, including unique internal ids.EcreateUniqueShallowCopyOf(ManagedId entityToCopy)Create a shallow copy of the passed in entity, albeit with unique internal ids.IdGroupingTokengetIdGroupingToken()Collect the id grouping token used by this factoryvoidsetIdGroupingToken(IdGroupingToken tokenId)Each factory needs a token to allow all underlying factory methods to generated ids uniquely tied to the group token the entities belong to
-
-
-
Method Detail
-
setIdGroupingToken
void setIdGroupingToken(IdGroupingToken tokenId)
Each factory needs a token to allow all underlying factory methods to generated ids uniquely tied to the group token the entities belong to- Parameters:
tokenId- , contiguous id generation within this group of entity instances created with the factory methods
-
getIdGroupingToken
IdGroupingToken getIdGroupingToken()
Collect the id grouping token used by this factory- Returns:
- idGroupingToken the id grouping token used by this builder
-
createUniqueShallowCopyOf
E createUniqueShallowCopyOf(ManagedId entityToCopy)
Create a shallow copy of the passed in entity, albeit with unique internal ids. Not registered on the container.- Parameters:
entityToCopy- the entity to copy- Returns:
- new entity based on passed in entity
-
-