Package org.opentrafficsim.ahfe
Class AnticipationRelianceScript
- java.lang.Object
-
- org.opentrafficsim.swing.script.AbstractSimulationScript
-
- org.opentrafficsim.ahfe.AnticipationRelianceScript
-
- All Implemented Interfaces:
Serializable
,EventListener
,Checkable
,EventListenerInterface
public final class AnticipationRelianceScript extends AbstractSimulationScript
Distraction simulation.Copyright (c) 2013-2022 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 9 apr. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static org.opentrafficsim.base.parameters.ParameterTypeDouble
ALPHA
Fraction of primary task that can be reduced by anticipation reliance.(package private) static org.opentrafficsim.base.parameters.ParameterTypeDouble
BETA
Fraction of auxiliary tasks that can be reduced by anticipation reliance.(package private) static org.opentrafficsim.base.parameters.ParameterTypeDuration
HEXP
Car-following task parameter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
animateNetwork(org.opentrafficsim.core.network.OTSNetwork net)
static void
main(String... args)
Main method.protected void
onSimulationEnd()
protected OTSRoadNetwork
setupSimulation(org.opentrafficsim.core.dsol.OTSSimulatorInterface sim)
-
Methods inherited from class org.opentrafficsim.swing.script.AbstractSimulationScript
addTabs, check, getGtuColorer, getNetwork, getSeed, getSimulationTime, getSimulator, getStartTime, getWarmupTime, isAutorun, notify, setAnimationToggles, setGtuColorer, setupDemo, start
-
-
-
-
Field Detail
-
HEXP
static final org.opentrafficsim.base.parameters.ParameterTypeDuration HEXP
Car-following task parameter.
-
ALPHA
static final org.opentrafficsim.base.parameters.ParameterTypeDouble ALPHA
Fraction of primary task that can be reduced by anticipation reliance.
-
BETA
static final org.opentrafficsim.base.parameters.ParameterTypeDouble BETA
Fraction of auxiliary tasks that can be reduced by anticipation reliance.
-
-
Method Detail
-
main
public static void main(String... args)
Main method.- Parameters:
args
- String[]; command line arguments
-
onSimulationEnd
protected void onSimulationEnd()
- Overrides:
onSimulationEnd
in classAbstractSimulationScript
-
setupSimulation
protected OTSRoadNetwork setupSimulation(org.opentrafficsim.core.dsol.OTSSimulatorInterface sim) throws Exception
- Specified by:
setupSimulation
in classAbstractSimulationScript
- Throws:
Exception
-
animateNetwork
protected void animateNetwork(org.opentrafficsim.core.network.OTSNetwork net)
- Overrides:
animateNetwork
in classAbstractSimulationScript
-
-