Package org.goplanit.zoning
Class CentroidFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<Centroid>
-
- org.goplanit.zoning.CentroidFactoryImpl
-
- All Implemented Interfaces:
ManagedIdEntityFactory<Centroid>,CentroidFactory
public class CentroidFactoryImpl extends ManagedIdEntityFactoryImpl<Centroid> implements CentroidFactory
Factory for creating centroids- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCentroidFactoryImpl(IdGroupingToken groupId)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CentroidImplcreate()Create a new centroidCentroidImplcreate(Zone parentZone)Create a new centroidCentroidcreateUniqueCopyOf(ManagedId entityToCopy)Create a shallow copy of the passed in entity, albeit with unique internal ids.-
Methods inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
getIdGroupingToken, setIdGroupingToken
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntityFactory
getIdGroupingToken, setIdGroupingToken
-
-
-
-
Constructor Detail
-
CentroidFactoryImpl
protected CentroidFactoryImpl(IdGroupingToken groupId)
Constructor- Parameters:
groupId- to use
-
-
Method Detail
-
create
public CentroidImpl create()
Create a new centroid- Specified by:
createin interfaceCentroidFactory- Returns:
- the new centroid created
-
create
public CentroidImpl create(Zone parentZone)
Create a new centroid- Specified by:
createin interfaceCentroidFactory- Parameters:
parentZone- to use- Returns:
- the new centroid created
-
createUniqueCopyOf
public Centroid createUniqueCopyOf(ManagedId entityToCopy)
Create a shallow copy of the passed in entity, albeit with unique internal ids. Not registered on the container.- Specified by:
createUniqueCopyOfin interfaceManagedIdEntityFactory<Centroid>- Overrides:
createUniqueCopyOfin classManagedIdEntityFactoryImpl<Centroid>- Parameters:
entityToCopy- the entity to copy- Returns:
- new entity based on passed in entity
-
-