Package org.goplanit.zoning
Class TransferZoneFactoryImpl
- java.lang.Object
-
- org.goplanit.utils.id.ManagedIdEntityFactoryImpl<Z>
-
- org.goplanit.zoning.ZoneFactoryImpl<TransferZone>
-
- org.goplanit.zoning.TransferZoneFactoryImpl
-
- All Implemented Interfaces:
ManagedIdEntityFactory<TransferZone>
,TransferZoneFactory
public class TransferZoneFactoryImpl extends ZoneFactoryImpl<TransferZone> implements TransferZoneFactory
Factory for creating transfer zones (on container)- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description protected TransferZones
transferZones
container to use-
Fields inherited from class org.goplanit.zoning.ZoneFactoryImpl
centroidFactory
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
groupIdToken
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TransferZoneFactoryImpl(IdGroupingToken groupId, TransferZones transferZones)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferZone
createNew()
Create a new transfer zone without registeringTransferZone
registerNew()
Create and register new transfer zoneTransferZone
registerNew(TransferZoneType type, boolean syncXmlIdToId)
Register a new transfer zone without registering and set its XML id and type-
Methods inherited from class org.goplanit.zoning.ZoneFactoryImpl
getCentroidFactory
-
Methods inherited from class org.goplanit.utils.id.ManagedIdEntityFactoryImpl
createUniqueDeepCopyOf, createUniqueShallowCopyOf, 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
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
Methods inherited from interface org.goplanit.utils.zoning.TransferZoneFactory
createNew
-
-
-
-
Field Detail
-
transferZones
protected final TransferZones transferZones
container to use
-
-
Constructor Detail
-
TransferZoneFactoryImpl
protected TransferZoneFactoryImpl(IdGroupingToken groupId, TransferZones transferZones)
Constructor- Parameters:
groupId
- to usetransferZones
- to use
-
-
Method Detail
-
registerNew
public TransferZone registerNew()
Create and register new transfer zone- Specified by:
registerNew
in interfaceTransferZoneFactory
- Returns:
- the new zone created
-
registerNew
public TransferZone registerNew(TransferZoneType type, boolean syncXmlIdToId)
Register a new transfer zone without registering and set its XML id and type- Specified by:
registerNew
in interfaceTransferZoneFactory
- Parameters:
type
- transfer zone type to usesyncXmlIdToId
- when true, set the XML id to the underlying internal id, when false, so not set XML id yet- Returns:
- the new zone created
-
createNew
public TransferZone createNew()
Create a new transfer zone without registering- Specified by:
createNew
in interfaceTransferZoneFactory
- Returns:
- the new zone created
-
-