|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.algorithms.edit.ShortestPathCalculator
public class ShortestPathCalculator
This class will determine for each node for each exitnode what lanes are on a shortest path towards it.
| Constructor Summary | |
|---|---|
ShortestPathCalculator()
The constructor for a shortest path calculator. |
|
| Method Summary | |
|---|---|
void |
calcAllShortestPaths(Infrastructure infra)
Calculates all the shortest paths for each EdgeNode in the Infrastructure. |
int |
findNearestAvailableNode()
Find the nearest which can be choosen as an alternative destination |
int |
findNearestAvailableNode(int nodeId)
Find the nearest which can be choosen as an alternative destination |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShortestPathCalculator()
| Method Detail |
|---|
public void calcAllShortestPaths(Infrastructure infra)
throws InfraException
infra - The Infrastructure of which the shortest paths should be
calculated.
InfraException - DOCUMENT ME!public int findNearestAvailableNode(int nodeId)
nodeId - Id of the current node
public int findNearestAvailableNode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||