public class AHFEAnimation extends 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.
exitOnClose, frameProperties, panel, properties, savedUserModifiedProperties| Constructor and Description |
|---|
AHFEAnimation(Integer replication,
String anticipationStrategy,
Duration reactionTime,
Duration anticipationTime,
double truckFraction,
double distanceError,
double speedError,
double accelerationError,
Frequency leftDemand,
Frequency rightDemand,
double leftFraction) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAnimationToggles() |
String |
description() |
double |
getAccelerationError() |
String |
getAnticipationStrategy() |
Duration |
getAnticipationTime() |
double |
getDistanceError() |
Frequency |
getLeftDemand() |
double |
getLeftFraction() |
Duration |
getReactionTime() |
Integer |
getReplication() |
Frequency |
getRightDemand() |
SimulatorInterface<Time,Duration,SimTimeDoubleUnit> |
getSimulator()
Retrieve the simulator.
|
double |
getSpeedError() |
double |
getTruckFraction() |
static void |
main(String[] args)
Main program.
|
protected Rectangle2D.Double |
makeAnimationRectangle() |
protected 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, toggleGISLayerpublic AHFEAnimation(Integer replication, String anticipationStrategy, Duration reactionTime, Duration anticipationTime, double truckFraction, double distanceError, double speedError, double accelerationError, Frequency leftDemand, 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 Duration getReactionTime()
public Duration getAnticipationTime()
public double getTruckFraction()
public double getDistanceError()
public double getSpeedError()
public double getAccelerationError()
public Frequency getLeftDemand()
public Frequency getRightDemand()
public double getLeftFraction()
public static void main(String[] args) throws SimRuntimeException
args - String[]; the command line argumentsSimRuntimeException - should never happenpublic final String shortName()
public final String description()
protected final OTSModelInterface makeModel() throws OTSSimulationException
makeModel in class AbstractWrappableAnimationOTSSimulationExceptionprotected final void addAnimationToggles()
addAnimationToggles in class AbstractWrappableAnimationprotected final Rectangle2D.Double makeAnimationRectangle()
makeAnimationRectangle in class AbstractWrappableAnimationpublic final SimulatorInterface<Time,Duration,SimTimeDoubleUnit> getSimulator()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.