Interface InputParameters


public interface InputParameters

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

    Modifier and Type Method Description
    InputParameter<?,​?> getInputParameter​(java.lang.Object object, java.lang.String id)
    Returns a specific defined parameter for the given object.
    java.util.Map<java.lang.String,​InputParameter<?,​?>> getInputParameters​(java.lang.Object object)
    Returns all defined parameters for the given object.
    <T> java.util.Set<T> getObjects​(java.lang.Class<T> clazz)
    Return all object instances of the given class, for which parameters have been defined.
  • Method Details

    • getObjects

      <T> java.util.Set<T> getObjects​(java.lang.Class<T> clazz)
      Return all object instances of the given class, for which parameters have been defined.
      Type Parameters:
      T - type of object instances
      Parameters:
      clazz - Class<T>; class
      Returns:
      all object instances of the given class, for which parameters have been defined
    • getInputParameters

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

      InputParameter<?,​?> getInputParameter​(java.lang.Object object, java.lang.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:
      specific defined parameter for the given object