jist.swans.field
Class Mobility.Teleport
java.lang.Object
jist.swans.field.Mobility.Teleport
- All Implemented Interfaces:
- Mobility
- Enclosing interface:
- Mobility
public static class Mobility.Teleport
- extends java.lang.Object
- implements Mobility
Teleport mobility model: pick a random location and teleport to it,
then pause for some time and repeat.
- Since:
- SWANS1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mobility.Teleport
public Mobility.Teleport(Location.Location2D bounds,
long pauseTime)
- Initialize teleport mobility model.
- Parameters:
bounds
- boundaries of movementpauseTime
- waypoint pause time (in ticks)
init
public Mobility.MobilityInfo init(FieldInterface f,
java.lang.Integer id,
Location loc)
- Initiate mobility; initialize mobility data structures.
- Specified by:
init
in interface Mobility
- Parameters:
f
- field entityid
- node identifierloc
- node location
- Returns:
- mobility information object
next
public void next(FieldInterface f,
java.lang.Integer id,
Location loc,
Mobility.MobilityInfo info)
- Schedule next movement. This method will again be called after every
movement on the field.
- Specified by:
next
in interface Mobility
- Parameters:
f
- field entityid
- radio identifierloc
- destination of moveinfo
- mobility information object