Package casa.lepton.walk
Class GraphWalk
java.lang.Object
casa.lepton.walk.GraphWalk
- All Implemented Interfaces:
Walk
- Direct Known Subclasses:
DynGraphWalk
,LimitedAreaGraphWalk
,TractorWalk
An instance of type
GraphWalk
defines a mobility model for a random
walk that follows edges in a geo-referenced graph.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncasa.util.geom.AreaCar
getArea()
Returns the area in which this walk is defined.static GraphWalk
getDefault
(OppNodeProperties props) Creates and returns an instance ofGraphWalk
, using system properties (if defined) in order to initialize this object, and using default values otherwise.casa.util.geom.Shape
org.graphstream.graph.Path
getShortestPath
(String departureNode, String targetNode) void
protected static org.graphstream.graph.Graph
-
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 -
pauseType
-
graph
public org.graphstream.graph.Graph graph -
random
-
walk_
-
-
Constructor Details
-
GraphWalk
-
-
Method Details
-
getDefault
Creates and returns an instance ofGraphWalk
, using system properties (if defined) in order to initialize this object, and using default values otherwise.- Returns:
- a
GraphWalk
object, initialized using either system properties or default values
-
readGraph
-
getWalker
Description copied from interface:Walk
-
getShortestPath
-
putShape
-
getShape
-
getArea
public casa.util.geom.AreaCar getArea()Description copied from interface:Walk
Returns the area in which this walk is defined.
-