|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.field.Mobility.RandomWaypoint
public static class Mobility.RandomWaypoint
Random waypoint mobility model.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jist.swans.field.Mobility |
|---|
Mobility.MobilityInfo, Mobility.RandomWalk, Mobility.RandomWaypoint, Mobility.RandomWaypointInfo, Mobility.Static, Mobility.Teleport |
| Field Summary | |
|---|---|
static float |
BORDER
thickness of border (for float calculations). |
private Location.Location2D |
bounds
Movement boundaries. |
private float |
maxspeed
Maximum movement speed. |
private float |
minspeed
Minimum movement speed. |
private long |
pauseTime
Waypoint pause time. |
private float |
precision
Step granularity. |
| Constructor Summary | |
|---|---|
Mobility.RandomWaypoint(Location.Location2D bounds,
long pauseTime,
float precision,
float minspeed,
float maxspeed)
Initialize random waypoint mobility model. |
|
Mobility.RandomWaypoint(Location.Location2D bounds,
java.lang.String config)
Initialize random waypoint mobility model. |
|
| Method Summary | |
|---|---|
Mobility.MobilityInfo |
init(FieldInterface f,
java.lang.Integer id,
Location loc)
Initiate mobility; initialize mobility data structures. |
private void |
init(Location.Location2D bounds,
long pauseTime,
float precision,
float minspeed,
float maxspeed)
Initialize random waypoint mobility model. |
void |
next(FieldInterface f,
java.lang.Integer id,
Location loc,
Mobility.MobilityInfo info)
Schedule next movement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final float BORDER
private Location.Location2D bounds
private long pauseTime
private float precision
private float minspeed
private float maxspeed
| Constructor Detail |
|---|
public Mobility.RandomWaypoint(Location.Location2D bounds,
long pauseTime,
float precision,
float minspeed,
float maxspeed)
bounds - boundaries of movementpauseTime - waypoint pause timeprecision - step granularityminspeed - minimum speedmaxspeed - maximum speed
public Mobility.RandomWaypoint(Location.Location2D bounds,
java.lang.String config)
bounds - boundaries of movementconfig - configuration string| Method Detail |
|---|
private void init(Location.Location2D bounds,
long pauseTime,
float precision,
float minspeed,
float maxspeed)
bounds - boundaries of movementpauseTime - waypoint pause time (in ticks)precision - step granularityminspeed - minimum speedmaxspeed - maximum speed
public Mobility.MobilityInfo init(FieldInterface f,
java.lang.Integer id,
Location loc)
init in interface Mobilityf - field entityid - node identifierloc - node location
public void next(FieldInterface f,
java.lang.Integer id,
Location loc,
Mobility.MobilityInfo info)
next in interface Mobilityf - field entityid - radio identifierloc - destination of moveinfo - mobility information object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||