movement
Class ClusterMovement

java.lang.Object
  extended by movement.MovementModel
      extended by movement.RandomWaypoint
          extended by movement.ClusterMovement

public class ClusterMovement
extends RandomWaypoint


Field Summary
static java.lang.String CLUSTER_CENTER
          Center point of the cluster
static java.lang.String CLUSTER_RANGE
          Range of the cluster
 
Fields inherited from class movement.MovementModel
comBus, DEF_SPEEDS, DEF_WAIT_TIMES, maxSpeed, maxWaitTime, minSpeed, minWaitTime, MOVEMENT_MODEL_NS, rng, RNG_SEED, SPEED, WAIT_TIME, WORLD_SIZE
 
Constructor Summary
ClusterMovement(Settings s)
           
 
Method Summary
 int getMaxX()
          Returns the largest X coordinate value this model uses
 int getMaxY()
          Returns the largest Y coordinate value this model uses
protected  Coord randomCoord()
           
 ClusterMovement replicate()
          Creates a replicate of the movement model.
 
Methods inherited from class movement.RandomWaypoint
getInitialLocation, getPath
 
Methods inherited from class movement.MovementModel
generateSpeed, generateWaitTime, getComBus, isActive, nextPathAvailable, reset, setComBus, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLUSTER_RANGE

public static final java.lang.String CLUSTER_RANGE
Range of the cluster

See Also:
Constant Field Values

CLUSTER_CENTER

public static final java.lang.String CLUSTER_CENTER
Center point of the cluster

See Also:
Constant Field Values
Constructor Detail

ClusterMovement

public ClusterMovement(Settings s)
Method Detail

randomCoord

protected Coord randomCoord()
Overrides:
randomCoord in class RandomWaypoint

getMaxX

public int getMaxX()
Description copied from class: MovementModel
Returns the largest X coordinate value this model uses

Overrides:
getMaxX in class MovementModel
Returns:
Maximum of X coordinate values

getMaxY

public int getMaxY()
Description copied from class: MovementModel
Returns the largest Y coordinate value this model uses

Overrides:
getMaxY in class MovementModel
Returns:
Maximum of Y coordinate values

replicate

public ClusterMovement replicate()
Description copied from class: MovementModel
Creates a replicate of the movement model.

Overrides:
replicate in class RandomWaypoint
Returns:
A new movement model with the same settings as this model