Package jmri.jmrit.logix
Class RouteFinder
- java.lang.Object
-
- jmri.jmrit.logix.RouteFinder
-
- All Implemented Interfaces:
java.lang.Runnable
public class RouteFinder extends java.lang.Object implements java.lang.Runnable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RouteFinder.RouteNode
-
Constructor Summary
Constructors Modifier Constructor Description protected
RouteFinder(WarrantRoute f, BlockOrder origin, BlockOrder dest, BlockOrder via, BlockOrder avoid, int maxB)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.ArrayList<RouteFinder.RouteNode>
makeLevel(java.util.ArrayList<RouteFinder.RouteNode> nodes, int level)
Examines list of nodes at a given level for the destination node and makes a list of nodes of the next level.protected void
quit()
void
run()
-
-
-
Constructor Detail
-
RouteFinder
protected RouteFinder(WarrantRoute f, BlockOrder origin, BlockOrder dest, BlockOrder via, BlockOrder avoid, int maxB)
-
-
Method Detail
-
quit
protected void quit()
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
makeLevel
java.util.ArrayList<RouteFinder.RouteNode> makeLevel(java.util.ArrayList<RouteFinder.RouteNode> nodes, int level)
Examines list of nodes at a given level for the destination node and makes a list of nodes of the next level.- Parameters:
nodes
- list of route nodeslevel
- level of the nodes- Returns:
- list of route nodes at level
-
-