|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmovement.MovementModel
test.StationaryMovement
public class StationaryMovement
A dummy stationary "movement" model where nodes do not move for testing purposes
Field Summary |
---|
Fields inherited from class movement.MovementModel |
---|
DEF_SPEEDS, DEF_WAIT_TIMES, MOVEMENT_MODEL_NS, rng, RNG_SEED, SPEED, WAIT_TIME, WORLD_SIZE |
Constructor Summary | |
---|---|
StationaryMovement(Coord location)
|
Method Summary | |
---|---|
Coord |
getInitialLocation()
Returns the only location of this movement model |
Path |
getPath()
Returns a single coordinate path (using the only possible coordinate) |
boolean |
isActive()
Returns true if this node is active at the moment (false if not) |
double |
nextPathAvailable()
Returns a sim time when the next path is available. |
StationaryMovement |
replicate()
Creates a replicate of the movement model. |
Methods inherited from class movement.MovementModel |
---|
generateSpeed, generateWaitTime, getMaxX, getMaxY, reset, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StationaryMovement(Coord location)
Method Detail |
---|
public Coord getInitialLocation()
getInitialLocation
in class MovementModel
public boolean isActive()
MovementModel
isActive
in class MovementModel
public Path getPath()
getPath
in class MovementModel
public double nextPathAvailable()
MovementModel
MovementModel.WAIT_TIME
from now.
nextPathAvailable
in class MovementModel
public StationaryMovement replicate()
MovementModel
replicate
in class MovementModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |