Interface TacticalPlannerFactory<T extends TacticalPlanner>

  • Type Parameters:
    T - class of the tactical planner generated

    public interface TacticalPlannerFactory<T extends TacticalPlanner>
    A factory class is used to generate tactical planners as the tactical planner is state-full.

    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 Jul 29, 2016
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Detail

      • getDefaultParameters

        Parameters getDefaultParameters()
        Returns a set of parameters with default values for the next tactical planner that will be generated.
        Returns:
        set of parameters with default values for the next tactical planner that will be generated
      • create

        T create​(Gtu gtu)
          throws GtuException
        Creates a new tactical planner for a specific GTU.
        Parameters:
        gtu - Gtu; GTU
        Returns:
        T; tactical planner for the GTU
        Throws:
        GtuException - if the GTU is not suitable in any way for the creation of the tactical planner