AbstractArTask.java

package org.opentrafficsim.road.gtu.perception.mental.ar;

import org.opentrafficsim.road.gtu.perception.mental.AbstractTask;

/**
 * Has id, task demand and anticipation reliance as internal variables.
 * <p>
 * Copyright (c) 2025-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
 * </p>
 * @author Alexander Verbraeck
 * @author Peter Knoppers
 * @author Wouter Schakel
 */
public abstract class AbstractArTask extends AbstractTask implements ArTask
{

    /** Anticipation reliance. */
    private double anticipationReliance;

    /**
     * Constructor.
     * @param id id
     */
    public AbstractArTask(final String id)
    {
        super(id);
    }

    @Override
    public void setAnticipationReliance(final double anticipationReliance)
    {
        this.anticipationReliance = anticipationReliance;
    }

    @Override
    public double getAnticipationReliance()
    {
        return this.anticipationReliance;
    }

    @Override
    public String toString()
    {
        return "ArTask (" + getId() + ")";
    }
}