|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.vm.rt.ShortestPathAlgorithm.ShortestPath
public class ShortestPathAlgorithm.ShortestPath
The ShortestPath specifies the start and end location of the 'traveled' path, the distance of the path and the path taken from the start location to the end location.
Constructor Summary | |
---|---|
ShortestPathAlgorithm.ShortestPath(VMAreaCtx start,
VMAreaCtx end)
Constructor, creates a new ShortestPath that will specify the shortest distance and path to get from the specified start location to the specified end location. |
Method Summary | |
---|---|
protected void |
addPath(VMAreaCtx nextLocation)
Adds the next location in the path to the shortest path. |
long |
getDistance()
Returns the total distance of the shortest path. |
VMAreaCtx |
getEndLocation()
Returns the end location of the shortest path. |
java.util.ListIterator |
getPath()
Returns the list of locations on the shortest path to get from the start location to the end location. |
VMAreaCtx |
getStartLocation()
Returns the start location of the shortest path. |
protected void |
setDistance(long distance)
Sets the total distance of the shortest path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShortestPathAlgorithm.ShortestPath(VMAreaCtx start, VMAreaCtx end)
start
- the start locationend
- the end locationMethod Detail |
---|
public final VMAreaCtx getStartLocation()
public final VMAreaCtx getEndLocation()
protected final void setDistance(long distance)
distance
- the distancepublic final long getDistance()
protected final void addPath(VMAreaCtx nextLocation)
nextLocation
- the next location in the shortest path.public final java.util.ListIterator getPath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |