Package org.planit.network.virtual
Class Zoning.Zones
- java.lang.Object
-
- org.planit.network.virtual.Zoning.Zones
-
-
Constructor Summary
Constructors Constructor Description Zones()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Zone
createAndRegisterNewZone(Object externalId)
Create and register new zone to network identified via its idint
getNumberOfZones()
Collect number of zones on the zoningZone
getZoneById(long id)
Retrieve zone by its IdIterator<Zone>
iterator()
Collect iterator for all registered zones (non-ordered)protected Zone
registerZone(Zone zone)
Add zone to the internal container.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
registerZone
protected Zone registerZone(Zone zone)
Add zone to the internal container.- Parameters:
zone
- the zone to be added to this Zoning- Returns:
- the zone added
-
createAndRegisterNewZone
public Zone createAndRegisterNewZone(Object externalId)
Create and register new zone to network identified via its id- Parameters:
externalId
- external Id of this zone- Returns:
- the new zone created
-
getZoneById
public Zone getZoneById(long id)
Retrieve zone by its Id- Parameters:
id
- the id of the zone- Returns:
- zone the zone retrieved
-
getNumberOfZones
public int getNumberOfZones()
Collect number of zones on the zoning- Returns:
- the number of zones in this zoning
-
-