jist.swans.field
Interface Mobility

All Known Implementing Classes:
Mobility.RandomWalk, Mobility.RandomWaypoint, Mobility.Static, Mobility.Teleport

public interface Mobility

Interface of all mobility models.

Since:
SWANS1.0
Version:
$Id: Mobility.java,v 1.22 2005/03/13 16:11:54 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Nested Class Summary
static interface Mobility.MobilityInfo
          Interface of algorithm-specific mobility information objects.
static class Mobility.RandomWalk
          Random Walk mobility model: pick a direction, walk a certain distance in that direction, with some fixed and random component, reflecting off walls as necessary, then pause for some time and repeat.
static class Mobility.RandomWaypoint
          Random waypoint mobility model.
static class Mobility.RandomWaypointInfo
          Random waypoint state object.
static class Mobility.Static
          Static (noop) mobility model.
static class Mobility.Teleport
          Teleport mobility model: pick a random location and teleport to it, then pause for some time and repeat.
 
Method Summary
 Mobility.MobilityInfo init(FieldInterface f, java.lang.Integer id, Location loc)
          Initiate mobility; initialize mobility data structures.
 void next(FieldInterface f, java.lang.Integer id, Location loc, Mobility.MobilityInfo info)
          Schedule next movement.
 

Method Detail

init

Mobility.MobilityInfo init(FieldInterface f,
                           java.lang.Integer id,
                           Location loc)
Initiate mobility; initialize mobility data structures.

Parameters:
f - field entity
id - node identifier
loc - node location
Returns:
mobility information object

next

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.

Parameters:
f - field entity
id - radio identifier
loc - destination of move
info - mobility information object