Package org.planit.zoning
Class TransferZoneImpl
- java.lang.Object
-
- org.planit.zoning.ZoneImpl
-
- org.planit.zoning.TransferZoneImpl
-
- All Implemented Interfaces:
Comparable<Idable>
,ExternalIdable
,Idable
,TransferZone
,Zone
public class TransferZoneImpl extends ZoneImpl implements TransferZone
A transfer zone- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static TransferZoneType
DEFAULT_TYPE
default transfer zone type-
Fields inherited from class org.planit.zoning.ZoneImpl
centroid, externalId, geometry, id, inputProperties, xmlId
-
-
Constructor Summary
Constructors Constructor Description TransferZoneImpl(IdGroupingToken tokenId)
constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static long
generateTransferZoneId(IdGroupingToken tokenId)
generate unique od zone idlong
getTransferZoneId()
In addition to a zone id across all zones of any derived type, each transfer zone also has a unique id across the transfer zones specificallyTransferZoneType
getTransferZoneType()
collect the type of this transfer zoneprotected void
setTransferZoneId(long transferZoneId)
Set transfer zone Idvoid
setTransferZoneType(TransferZoneType type)
set the type of this transfer zone-
Methods inherited from class org.planit.zoning.ZoneImpl
addInputProperty, generateZoneId, getCentroid, getExternalId, getGeometry, getId, getInputProperty, getXmlId, setExternalId, setGeometry, setXmlId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.planit.utils.id.ExternalIdable
getExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId
-
Methods inherited from interface org.planit.utils.id.Idable
compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface org.planit.utils.zoning.Zone
getCentroid, getGeometry, setGeometry
-
-
-
-
Field Detail
-
DEFAULT_TYPE
public static TransferZoneType DEFAULT_TYPE
default transfer zone type
-
-
Constructor Detail
-
TransferZoneImpl
public TransferZoneImpl(IdGroupingToken tokenId)
constructor- Parameters:
tokenId
- for id generation
-
-
Method Detail
-
generateTransferZoneId
protected static long generateTransferZoneId(IdGroupingToken tokenId)
generate unique od zone id- Parameters:
tokenId
- contiguous id generation within this group for instances of this class- Returns:
- odZoneId
-
setTransferZoneId
protected void setTransferZoneId(long transferZoneId)
Set transfer zone Id- Parameters:
transferZoneId
- to set
-
getTransferZoneId
public long getTransferZoneId()
In addition to a zone id across all zones of any derived type, each transfer zone also has a unique id across the transfer zones specifically- Specified by:
getTransferZoneId
in interfaceTransferZone
- Returns:
- transfer zone specific id
-
setTransferZoneType
public void setTransferZoneType(TransferZoneType type)
set the type of this transfer zone- Specified by:
setTransferZoneType
in interfaceTransferZone
- Parameters:
type
- to set
-
getTransferZoneType
public TransferZoneType getTransferZoneType()
collect the type of this transfer zone- Specified by:
getTransferZoneType
in interfaceTransferZone
- Returns:
- transfer zone type
-
-