NODEID - the ID type of the Node, e.g., String.LINKID - the ID type of the Link, e.g., String.public class CompleteRoute<LINKID,NODEID> extends Route<LINKID,NODEID>
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-16 10:20:53 +0200 (Thu, 16 Jul 2015) $, @version $Revision: 1124 $, by $Author: pknoppers $,
initial version Jul 22, 2015
| Constructor and Description |
|---|
CompleteRoute(String id)
Create an empty route.
|
CompleteRoute(String id,
List<Node<NODEID>> nodes)
Create a route based on an initial list of nodes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(Node<NODEID> node)
Add a node to the end of the node list.
|
boolean |
containsLink(Link<LINKID,NODEID> link)
Determine if this Route contains the specified Link.
|
destinationNode, getId, getNode, getNodes, indexOf, originNode, size, toStringpublic CompleteRoute(String id)
id - the name of the route.public CompleteRoute(String id, List<Node<NODEID>> nodes) throws NetworkException
id - the name of the route.nodes - the initial list of nodes.NetworkException - if intermediate nodes are missing in the route.public final void addNode(Node<NODEID> node) throws NetworkException
addNode in class Route<LINKID,NODEID>node - the node to add.NetworkException - in case node could not be added to the route.Copyright © 2014–2015 Delft University of Technology. All rights reserved.