public class CompleteRoute extends Route
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,
GTUType gtuType)
Create an empty route for the given GTUType.
|
CompleteRoute(String id,
GTUType gtuType,
List<Node> nodes)
Create a route based on an initial list of nodes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(Node node)
Add a node to the end of the node list.
|
boolean |
containsLink(Link link)
Determine if this Route contains the specified Link.
|
contains, destinationNode, getId, getNode, getNodes, indexOf, originNode, size, toStringpublic CompleteRoute(String id, GTUType gtuType)
id - the name of the routegtuType - the GTUType for which this is a routepublic CompleteRoute(String id, GTUType gtuType, List<Node> nodes) throws NetworkException
id - the name of the route.gtuType - the GTUType for which this is a routenodes - the initial list of nodes.NetworkException - if intermediate nodes are missing in the route.public final void addNode(Node node) throws NetworkException
addNode in class Routenode - the node to add.NetworkException - in case node could not be added to the route.public final boolean containsLink(Link link)
link - the link to check in the route.Copyright © 2014–2015 Delft University of Technology. All rights reserved.