Package casa.lepton.walk
Class RandomWaypoint
java.lang.Object
casa.lepton.walk.RandomWaypoint
- All Implemented Interfaces:
Walk
An instance of type
RandomWaypoint
defines a mobility model for a
random walk that complies with the so-called Random Waypoint patterns.-
Field Summary
-
Constructor Summary
ConstructorDescriptionRandomWaypoint
(casa.util.geom.AreaCar area, long minWait, long maxWait, double minSpeed, double maxSpeed, Random random) -
Method Summary
Modifier and TypeMethodDescriptioncasa.util.geom.AreaCar
getArea()
Returns the area in which this walk is defined.static RandomWaypoint
getDefault
(OppNodeProperties props) Creates and returns an instance ofRandomWaypoint
, using system properties (if defined) in order to initialize this object, and using default values otherwise.toString()
Returns aString
representation of thisRandomWaypoint
object.
-
Field Details
-
area
public casa.util.geom.AreaCar area -
minWait
public long minWait -
maxWait
public long maxWait -
minSpeed
public double minSpeed -
maxSpeed
public double maxSpeed -
random
-
-
Constructor Details
-
RandomWaypoint
public RandomWaypoint(casa.util.geom.AreaCar area, long minWait, long maxWait, double minSpeed, double maxSpeed, Random random)
-
-
Method Details
-
getDefault
Creates and returns an instance ofRandomWaypoint
, using system properties (if defined) in order to initialize this object, and using default values otherwise.- Returns:
- a
RandomWaypoint
object, initialized using either system properties or default values
-
getWalker
Description copied from interface:Walk
-
getArea
public casa.util.geom.AreaCar getArea()Description copied from interface:Walk
Returns the area in which this walk is defined. -
toString
Returns aString
representation of thisRandomWaypoint
object.
-