|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.field.Placement.Grid
public static class Placement.Grid
Placement along a regular grid.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jist.swans.field.Placement |
---|
Placement.Grid, Placement.Random |
Field Summary | |
---|---|
private float |
fieldx
field dimensions. |
private float |
fieldy
field dimensions. |
private long |
i
number of nodes already placed. |
private int |
nodex
node placement array dimensions. |
private int |
nodey
node placement array dimensions. |
Constructor Summary | |
---|---|
Placement.Grid(Location loc,
int nodex,
int nodey)
Initialize grid placement model. |
|
Placement.Grid(Location loc,
java.lang.String s)
Initialize grid placement model. |
|
Placement.Grid(java.lang.String field,
java.lang.String nodes)
Initialize grid placement model. |
Method Summary | |
---|---|
Location |
getNextLocation()
Return location of next node. |
private void |
init(float fieldx,
float fieldy,
int nodex,
int nodey)
Initialize grid placement model. |
private void |
init(Location loc,
java.lang.String s)
Initialize grid placement model. |
private void |
init(java.lang.String field,
java.lang.String nodes)
Initialize grid placement model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private float fieldx
private float fieldy
private int nodex
private int nodey
private long i
Constructor Detail |
---|
public Placement.Grid(Location loc, int nodex, int nodey)
loc
- field dimensions (in meters)nodex
- number of nodes in x-dimensionnodey
- number of nodes in y-dimensionpublic Placement.Grid(Location loc, java.lang.String s)
loc
- field dimensions (in meters)s
- node configuration stringpublic Placement.Grid(java.lang.String field, java.lang.String nodes)
field
- field dimensions stringnodes
- node configuration stringMethod Detail |
---|
private void init(java.lang.String field, java.lang.String nodes)
field
- field dimensions stringnodes
- node configuration stringprivate void init(Location loc, java.lang.String s)
loc
- field dimensions (in meters)s
- node configuration stringprivate void init(float fieldx, float fieldy, int nodex, int nodey)
fieldx
- field x-dimension (in meters)fieldy
- field y-dimension (in meters)nodex
- number of nodes in x-dimensionnodey
- number of nodes in y-dimensionpublic Location getNextLocation()
getNextLocation
in interface Placement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |