Package org.opentrafficsim.demo.sdm
Class SdmSimulation
java.lang.Object
org.opentrafficsim.swing.script.AbstractSimulationScript
org.opentrafficsim.demo.sdm.SdmSimulation
- All Implemented Interfaces:
 java.util.EventListener,EventListenerInterface,Checkable
public class SdmSimulation extends AbstractSimulationScript
Script to run a simulation with the Stochastic Distraction Model.
 
 Copyright (c) 2013-2019 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 5 nov. 2018 
 - Author:
 - Alexander Verbraeck, Peter Knoppers, Wouter Schakel
 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedSdmSimulation()Constructor. - 
Method Summary
Modifier and Type Method Description protected voidaddTabs(OTSSimulatorInterface sim, OTSSimulationApplication<?> animation)voidcheck()doublegetBetaT()DurationgetDt()IdmOptionsgetIdmOptions()doublegetSaMax()doublegetSaMin()doublegetTc()DurationgetTrMax()doublegetTsCrit()doublegetTsMax()static voidmain(java.lang.String... args)Start a simulation.protected voidonSimulationEnd()protected OTSRoadNetworksetupSimulation(OTSSimulatorInterface sim)Methods inherited from class org.opentrafficsim.swing.script.AbstractSimulationScript
animateNetwork, getGtuColorer, getNetwork, getSeed, getSimulationTime, getSimulator, getStartTime, getWarmupTime, isAutorun, notify, setAnimationToggles, setGtuColorer, setupDemo, start 
- 
Constructor Details
- 
SdmSimulation
protected SdmSimulation()Constructor. 
 - 
 - 
Method Details
- 
main
public static void main(java.lang.String... args)Start a simulation.- Parameters:
 args- String...; command line arguments
 - 
check
public void check() throws java.lang.Exception- Specified by:
 checkin interfaceCheckable- Overrides:
 checkin classAbstractSimulationScript- Throws:
 java.lang.Exception
 - 
setupSimulation
- Specified by:
 setupSimulationin classAbstractSimulationScript- Throws:
 java.lang.Exception
 - 
addTabs
- Overrides:
 addTabsin classAbstractSimulationScript
 - 
onSimulationEnd
protected void onSimulationEnd()- Overrides:
 onSimulationEndin classAbstractSimulationScript
 - 
getIdmOptions
- Returns:
 - idmOptions.
 
 - 
getDt
- Returns:
 - dt.
 
 - 
getSaMin
public double getSaMin()- Returns:
 - saMin.
 
 - 
getSaMax
public double getSaMax()- Returns:
 - saMax.
 
 - 
getTc
public double getTc()- Returns:
 - tc.
 
 - 
getTsCrit
public double getTsCrit()- Returns:
 - tsCrit.
 
 - 
getTsMax
public double getTsMax()- Returns:
 - tsMax.
 
 - 
getTrMax
- Returns:
 - trMax.
 
 - 
getBetaT
public double getBetaT()- Returns:
 - betaT.
 
 
 -