public class AHFEAnimation
extends org.opentrafficsim.simulationengine.AbstractWrappableAnimation
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Class and Description |
---|---|
(package private) class |
AHFEAnimation.AHFEModel
The AHFE simulation model.
|
Modifier and Type | Field and Description |
---|---|
(package private) org.opentrafficsim.kpi.sampling.Sampler<org.opentrafficsim.road.network.sampling.GtuData> |
sampler
Sampler.
|
(package private) static org.djunits.value.vdouble.scalar.Time |
SIMEND
Simulation time, including warm-up time.
|
(package private) static org.djunits.value.vdouble.scalar.Time |
WARMUP
Warm-up time.
|
Constructor and Description |
---|
AHFEAnimation(Integer replication,
String anticipationStrategy,
org.djunits.value.vdouble.scalar.Duration reactionTime,
org.djunits.value.vdouble.scalar.Duration anticipationTime,
double truckFraction,
double distanceError,
double speedError,
double accelerationError,
org.djunits.value.vdouble.scalar.Frequency leftDemand,
org.djunits.value.vdouble.scalar.Frequency rightDemand,
double leftFraction) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAnimationToggles() |
String |
description() |
double |
getAccelerationError() |
String |
getAnticipationStrategy() |
org.djunits.value.vdouble.scalar.Duration |
getAnticipationTime() |
double |
getDistanceError() |
org.djunits.value.vdouble.scalar.Frequency |
getLeftDemand() |
double |
getLeftFraction() |
org.djunits.value.vdouble.scalar.Duration |
getReactionTime() |
Integer |
getReplication() |
org.djunits.value.vdouble.scalar.Frequency |
getRightDemand() |
nl.tudelft.simulation.dsol.simulators.SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,nl.tudelft.simulation.dsol.simtime.SimTimeDoubleUnit> |
getSimulator()
Retrieve the simulator.
|
double |
getSpeedError() |
double |
getTruckFraction() |
static void |
main(String[] args)
Main program.
|
protected Rectangle2D.Double |
makeAnimationRectangle() |
protected org.opentrafficsim.core.dsol.OTSModelInterface |
makeModel() |
String |
shortName() |
addTab, addTabs, addToggleAnimationButtonIcon, addToggleAnimationButtonText, addToggleGISButtonText, buildAnimator, buildSimpleAnimator, buildSimpleAnimator, getAppearance, getColorer, getDemoPanel, getPanel, getProperties, getTabCount, getUserModifiedProperties, hideAnimationClass, hideGISLayer, rebuildSimulator, setAppearance, setNextReplication, setupDemo, showAnimationClass, showGISLayer, stopTimersThreads, toggleAnimationClass, toggleGISLayer
static final org.djunits.value.vdouble.scalar.Time WARMUP
static final org.djunits.value.vdouble.scalar.Time SIMEND
org.opentrafficsim.kpi.sampling.Sampler<org.opentrafficsim.road.network.sampling.GtuData> sampler
public AHFEAnimation(Integer replication, String anticipationStrategy, org.djunits.value.vdouble.scalar.Duration reactionTime, org.djunits.value.vdouble.scalar.Duration anticipationTime, double truckFraction, double distanceError, double speedError, double accelerationError, org.djunits.value.vdouble.scalar.Frequency leftDemand, org.djunits.value.vdouble.scalar.Frequency rightDemand, double leftFraction)
replication
- replicationanticipationStrategy
- anticipation strategyreactionTime
- reaction timeanticipationTime
- anticipation timetruckFraction
- truck fractiondistanceError
- distance errorspeedError
- speed erroraccelerationError
- acceleration errorleftFraction
- left demandrightDemand
- right demandleftDemand
- left fraction, per roadpublic Integer getReplication()
public String getAnticipationStrategy()
public org.djunits.value.vdouble.scalar.Duration getReactionTime()
public org.djunits.value.vdouble.scalar.Duration getAnticipationTime()
public double getTruckFraction()
public double getDistanceError()
public double getSpeedError()
public double getAccelerationError()
public org.djunits.value.vdouble.scalar.Frequency getLeftDemand()
public org.djunits.value.vdouble.scalar.Frequency getRightDemand()
public double getLeftFraction()
public static void main(String[] args) throws nl.tudelft.simulation.dsol.SimRuntimeException
args
- String[]; the command line argumentsnl.tudelft.simulation.dsol.SimRuntimeException
- should never happenpublic final String shortName()
public final String description()
protected final org.opentrafficsim.core.dsol.OTSModelInterface makeModel() throws org.opentrafficsim.simulationengine.OTSSimulationException
makeModel
in class org.opentrafficsim.simulationengine.AbstractWrappableAnimation
org.opentrafficsim.simulationengine.OTSSimulationException
protected final void addAnimationToggles()
addAnimationToggles
in class org.opentrafficsim.simulationengine.AbstractWrappableAnimation
protected final Rectangle2D.Double makeAnimationRectangle()
makeAnimationRectangle
in class org.opentrafficsim.simulationengine.AbstractWrappableAnimation
public final nl.tudelft.simulation.dsol.simulators.SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,nl.tudelft.simulation.dsol.simtime.SimTimeDoubleUnit> getSimulator()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.