1 package org.opentrafficsim.road.gtu.lane.perception.mental;
2
3 import org.opentrafficsim.base.parameters.ParameterException;
4 import org.opentrafficsim.base.parameters.Parameters;
5
6 /**
7 * Behavioral adaptation by changing parameter values.
8 * <p>
9 * Copyright (c) 2024-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
10 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
11 * </p>
12 * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
13 */
14 @FunctionalInterface
15 public interface BehavioralAdaptation
16 {
17
18 /**
19 * Adapt to task saturation by changing parameter values.
20 * @param parameters parameters
21 * @throws ParameterException if a parameter is missing or out of bounds
22 */
23 void adapt(Parameters parameters) throws ParameterException;
24
25 }