org.samcrow
Class RouteManager

java.lang.Object
  extended by org.samcrow.RouteManager

public class RouteManager
extends java.lang.Object

Contains routes that are being calculated


Field Summary
private  int index
           
private  java.util.LinkedList<Route> routes
           
 
Constructor Summary
RouteManager()
          Default constructor
 
Method Summary
 void addLink(Link link)
           
 void addNode(Node node)
          Add a node to the current route
 Route getFirstRoute()
           
 java.util.LinkedList<Route> getRoutes()
          Get a LinkedList of all the routes stored
 void newRoute()
          Create a new route.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

routes

private java.util.LinkedList<Route> routes

index

private int index
Constructor Detail

RouteManager

public RouteManager()
Default constructor

Method Detail

addNode

public void addNode(Node node)
Add a node to the current route

Parameters:
node - the Node to add

addLink

public void addLink(Link link)

getRoutes

public java.util.LinkedList<Route> getRoutes()
Get a LinkedList of all the routes stored

Returns:
the routes

getFirstRoute

public Route getFirstRoute()

newRoute

public void newRoute()
Create a new route. Nodes added after calling this will be added to the new route.