Class ContextTraverser
java.lang.Object
repast.simphony.engine.controller.ContextTraverser
A
Traverser
that traverses Contexts by returning
the subContexts of passed in Contexts.- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Jerry Vos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getDistance
(Context fromNode, Context toNode) Currently just returns 0.getSuccessors
(Context previousContext, Context currentContext) Returns the subContexts of the currentContext.
-
Constructor Details
-
ContextTraverser
public ContextTraverser()
-
-
Method Details
-
getSuccessors
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:
-
getDistance
Currently just returns 0.- Specified by:
getDistance
in interfaceTraverser<Context>
- Parameters:
fromNode
- ignoredtoNode
- ignored- Returns:
- 0
-