Class CompleteRoute

java.lang.Object
org.opentrafficsim.core.network.route.Route
org.opentrafficsim.core.network.route.CompleteRoute
All Implemented Interfaces:
Serializable, Identifiable

public class CompleteRoute
extends Route
A CompleteRoute is a Route with directly connected Nodes.

Copyright (c) 2013-2020 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

Author:
Alexander Verbraeck, Peter Knoppers
See Also:
Serialized Form
  • Constructor Details

    • CompleteRoute

      public CompleteRoute​(String id, GTUType gtuType)
      Create an empty route for the given GTUType.
      Parameters:
      id - String; the name of the route
      gtuType - GTUType; the GTUType for which this is a route
    • CompleteRoute

      public CompleteRoute​(String id, GTUType gtuType, List<Node> nodes) throws NetworkException
      Create a route based on an initial list of nodes.
      This constructor makes a defensive copy of the provided List.
      Parameters:
      id - String; the name of the route.
      gtuType - GTUType; the GTUType for which this is a route
      nodes - List<Node>; the initial list of nodes.
      Throws:
      NetworkException - if intermediate nodes are missing in the route.
  • Method Details