Package org.planit.zoning
Class OdZoneImpl
- java.lang.Object
-
- org.planit.zoning.ZoneImpl
-
- org.planit.zoning.OdZoneImpl
-
- All Implemented Interfaces:
Comparable<Idable>
,ExternalIdable
,Idable
,OdZone
,Zone
public class OdZoneImpl extends ZoneImpl implements OdZone
An Od zone- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.planit.zoning.ZoneImpl
centroid, externalId, geometry, id, inputProperties, xmlId
-
-
Constructor Summary
Constructors Constructor Description OdZoneImpl(IdGroupingToken tokenId)
constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static long
generateOdZoneId(IdGroupingToken tokenId)
generate unique od zone idlong
getOdZoneId()
In addition to a zone id across all zones of any derived type, each Od zone also has a unique id across the Od zones specificallyprotected void
setOdZoneId(long odZoneId)
Set OD Zone Id-
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
-
-
-
-
Constructor Detail
-
OdZoneImpl
public OdZoneImpl(IdGroupingToken tokenId)
constructor- Parameters:
tokenId
- for id generation
-
-
Method Detail
-
generateOdZoneId
protected static long generateOdZoneId(IdGroupingToken tokenId)
generate unique od zone id- Parameters:
tokenId
- contiguous id generation within this group for instances of this class- Returns:
- odZoneId
-
setOdZoneId
protected void setOdZoneId(long odZoneId)
Set OD Zone Id- Parameters:
odZoneId
- to set
-
getOdZoneId
public long getOdZoneId()
In addition to a zone id across all zones of any derived type, each Od zone also has a unique id across the Od zones specifically- Specified by:
getOdZoneId
in interfaceOdZone
- Returns:
- od zone specific id
-
-