Interface Distraction.DistractionProfile

All Known Implementing Classes:
Distraction.TrapezoidProfile
Enclosing class:
Distraction
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Distraction.DistractionProfile
Describes the profile around the distraction.

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Method Summary

    Modifier and Type
    Method
    Description
    getDistraction(org.djunits.value.vdouble.scalar.Length distance)
    Returns the level of distraction at the given distance.
  • Method Details

    • getDistraction

      Double getDistraction(org.djunits.value.vdouble.scalar.Length distance)
      Returns the level of distraction at the given distance.
      Parameters:
      distance - Distance to distraction; negative when approaching
      Returns:
      Double; level of distraction (task-demand), or null if the distraction is no longer important