jist.swans.field
Class Placement.Grid
java.lang.Object
jist.swans.field.Placement.Grid
- All Implemented Interfaces:
- Placement
- Enclosing interface:
- Placement
public static class Placement.Grid
- extends java.lang.Object
- implements Placement
Placement along a regular grid.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Placement.Grid
public Placement.Grid(Location loc,
int nodex,
int nodey)
- Initialize grid placement model.
- Parameters:
loc - field dimensions (in meters)nodex - number of nodes in x-dimensionnodey - number of nodes in y-dimension
Placement.Grid
public Placement.Grid(Location loc,
java.lang.String s)
- Initialize grid placement model.
- Parameters:
loc - field dimensions (in meters)s - node configuration string
Placement.Grid
public Placement.Grid(java.lang.String field,
java.lang.String nodes)
- Initialize grid placement model.
- Parameters:
field - field dimensions stringnodes - node configuration string
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 getNextLocation()
- Return location of next node.
- Specified by:
getNextLocation in interface Placement
- Returns:
- location of next node