Package org.planit.network.virtual
Class VirtualNetwork.Centroids
- java.lang.Object
-
- org.planit.network.virtual.VirtualNetwork.Centroids
-
-
Constructor Summary
Constructors Constructor Description Centroids()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumberOfCentroids()
Return number of registered centroidsIterator<Centroid>
iterator()
Access to all centroids via iteratorCentroid
registerCentroid(Centroid centroid)
Add centroid to the internal container If centroid overrides an existing centroid, the removed centroid is returnedCentroid
registerNewCentroid(Zone zone)
Create new centroid-
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
-
registerCentroid
public Centroid registerCentroid(Centroid centroid)
Add centroid to the internal container If centroid overrides an existing centroid, the removed centroid is returned- Parameters:
centroid
- centroid to be registered- Returns:
- registered centroid
-
registerNewCentroid
public Centroid registerNewCentroid(Zone zone)
Create new centroid- Parameters:
zone
- zone on which the centroid is registered- Returns:
- registered new centroid
-
getNumberOfCentroids
public int getNumberOfCentroids()
Return number of registered centroids- Returns:
- number of registered centroids
-
-