Class Platoons<T>

java.lang.Object
org.opentrafficsim.road.gtu.generator.Platoons<T>
Type Parameters:
T - type of demand category, typically a Category in an ODMatrix or a GTUType

public abstract class Platoons<T>
extends Object
Connects with a lane-based GTU generator to disable it over some time and generate a platoon instead. Platoons are added as: Platoons.ofCategory(...).addPlatoon(...).addGtu(...).addGtu(...).addPlatoon(...).addGtu(...).addGtu(...).start();. Method addGtu(...) may only determine a generation time if other info is set by fixInfo(...).

This class may be used with a LaneBasedGTUCharacteristicsGenerator or GTUCharacteristicsGeneratorOD. Use ofGtuType() or ofCategory() respectively.

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.

Version:
$Revision$, $LastChangedDate$, by $Author$, initial version 14 sep. 2018
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel