View Javadoc
1   package org.opentrafficsim.road.gtu.perception.mental;
2   
3   import org.opentrafficsim.base.parameters.ParameterException;
4   import org.opentrafficsim.road.gtu.perception.LanePerception;
5   
6   /**
7    * Interface for mental modules operating on perception. This is a first step of perception, where parameters both for the
8    * perception and tactical models can be set.
9    * <p>
10   * Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
11   * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
12   * </p>
13   * @author Alexander Verbraeck
14   * @author Peter Knoppers
15   * @author Wouter Schakel
16   */
17  @FunctionalInterface
18  public interface Mental
19  {
20  
21      /**
22       * Apply mental model on perception.
23       * @param perception perception
24       * @throws ParameterException if a parameter is missing or out of bounds
25       */
26      void apply(LanePerception perception) throws ParameterException;
27  
28  }