Package repast.simphony.engine.graph
Class GraphParams<E>
java.lang.Object
repast.simphony.engine.graph.GraphParams<E>
An object used to hold parameters for use when executing graphs.
- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Jerry Vos
- See Also:
-
Constructor Summary
ConstructorDescriptionGraphParams
(E previousNode, E curNode, double previousDistance) Constructs this GraphParams object holding the specified values. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the current node in the graph execution.double
Retrieves the sum of the previous distances in the graph execution.Retrieves the previous node in the graph execution.
-
Constructor Details
-
GraphParams
Constructs this GraphParams object holding the specified values.- Parameters:
previousNode
- the previous nodecurrentNode
- the current nodepreviousDistance
- the previous distance that has been traversed
-
-
Method Details
-
getCurrentNode
Retrieves the current node in the graph execution.- Returns:
- the current node in the graph execution
-
getPreviousNode
Retrieves the previous node in the graph execution.- Returns:
- the previous node in the graph execution
-
getPreviousDistance
public double getPreviousDistance()Retrieves the sum of the previous distances in the graph execution.- Returns:
- the sum of the previous distances in the graph execution
-