Class ContextTraverser
- java.lang.Object
-
- repast.simphony.engine.controller.ContextTraverser
-
-
Constructor Summary
Constructors Constructor Description ContextTraverser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDistance(Context fromNode, Context toNode)
Currently just returns 0.Iterator<Context>
getSuccessors(Context previousContext, Context currentContext)
Returns the subContexts of the currentContext.
-
-
-
Method Detail
-
getSuccessors
public Iterator<Context> getSuccessors(Context previousContext, Context currentContext)
Returns the subContexts of the currentContext.- Specified by:
getSuccessors
in interfaceTraverser<Context>
- Parameters:
previousContext
- ignoredcurrentContext
- the context who's subContexts to return- Returns:
- An iterator that will return the next nodes to visit in the graph traversal.
- See Also:
Context.getSubContexts()
-
getDistance
public double getDistance(Context fromNode, Context toNode)
Currently just returns 0.- Specified by:
getDistance
in interfaceTraverser<Context>
- Parameters:
fromNode
- ignoredtoNode
- ignored- Returns:
- 0
-
-