public class AHFESimulation extends AbstractWrappableSimulation
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.
properties
Constructor and Description |
---|
AHFESimulation(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 |
---|---|
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 OTSModelInterface |
makeModel() |
String |
shortName() |
buildSimpleSimulator, buildSimpleSimulator, buildSimulator, getProperties, setNextReplication
public AHFESimulation(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 AbstractWrappableSimulation
OTSSimulationException
public final SimulatorInterface<Time,Duration,SimTimeDoubleUnit> getSimulator()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.