|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.field.Placement.Random
public static class Placement.Random
Random (uniform) placement.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jist.swans.field.Placement |
|---|
Placement.Grid, Placement.Random |
| Field Summary | |
|---|---|
private float |
x
placement boundaries. |
private float |
y
placement boundaries. |
| Constructor Summary | |
|---|---|
Placement.Random(float x,
float y)
Initialize random placement model. |
|
Placement.Random(Location loc)
Initialize random placement. |
|
Placement.Random(java.lang.String field)
Initialize random placement. |
|
| Method Summary | |
|---|---|
Location |
getNextLocation()
Return location of next node. |
private void |
init(float x,
float y)
Initialize random placement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private float x
private float y
| Constructor Detail |
|---|
public Placement.Random(float x,
float y)
x - x-axis upper limity - y-axis upper limitpublic Placement.Random(Location loc)
loc - upper limit coordinatepublic Placement.Random(java.lang.String field)
field - field dimensions string| Method Detail |
|---|
private void init(float x,
float y)
x - field x-dimension (in meters)y - field y-dimension (in meters)public Location getNextLocation()
getNextLocation in interface Placement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||