Interface InputParameters


  • public interface InputParameters
    TODO discuss removal of this interface. It is used in one location in XmlNetworkLaneParser and that implementation implements all methods in a non-functional way.

    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 Apr 5, 2019
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Detail

      • getObjects

        <T> Set<T> getObjects​(Class<T> clazz)
        Return all object instances of the given class, for which parameters have been defined. TODO specify if the returned set may be modified.
        Type Parameters:
        T - type of object instances
        Parameters:
        clazz - Class<T>; class
        Returns:
        Set<T>; all object instances of the given class, for which parameters have been defined
      • getInputParameters

        Map<String,​InputParameter<?,​?>> getInputParameters​(Object object)
        Returns all defined parameters for the given object. For example a specific GTUType.
        Parameters:
        object - Object; the object
        Returns:
        Map<String, InputParameter<?, ?>>; all defined parameters for the given object
      • getInputParameter

        InputParameter<?,​?> getInputParameter​(Object object,
                                                    String id)
        Returns a specific defined parameter for the given object. For example parameter "a" for a specific GTUType.
        Parameters:
        object - Object; the object
        id - String; parameter id
        Returns:
        InputParameter<?, ?>; specific defined parameter for the given object