sidnet.models.deployment.utils
Class PlacementList

java.lang.Object
  extended by sidnet.models.deployment.utils.PlacementList
All Implemented Interfaces:
Placement

public class PlacementList
extends java.lang.Object
implements Placement


Nested Class Summary
 
Nested classes/interfaces inherited from interface jist.swans.field.Placement
Placement.Grid, Placement.Random
 
Field Summary
 
Fields inherited from interface jist.swans.field.Placement
UNBOUNDED
 
Constructor Summary
PlacementList()
           
 
Method Summary
 void add(Location.Location2D loc)
           
 java.util.LinkedList<Location.Location2D> getAsLinkedList()
           
 Location.Location2D getNextLocation()
          Return location of next node.
 int getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlacementList

public PlacementList()
Method Detail

add

public void add(Location.Location2D loc)

getSize

public int getSize()
Specified by:
getSize in interface Placement
Returns:
number of nodes, if known apriori. If not known, return UNBOUNDED

getNextLocation

public Location.Location2D getNextLocation()
Return location of next node.

Specified by:
getNextLocation in interface Placement
Returns:
location of next node

getAsLinkedList

public java.util.LinkedList<Location.Location2D> getAsLinkedList()