Package org.opentrafficsim.ahfe
Class AHFEAnimation.AHFEModel
- java.lang.Object
-
- org.djutils.event.EventProducer
-
- nl.tudelft.simulation.dsol.model.AbstractDSOLModel<Duration,org.opentrafficsim.core.dsol.OTSSimulatorInterface>
-
- org.opentrafficsim.core.dsol.AbstractOTSModel
-
- org.opentrafficsim.ahfe.AHFEAnimation.AHFEModel
-
- All Implemented Interfaces:
Serializable
,DSOLModel<Duration,org.opentrafficsim.core.dsol.OTSSimulatorInterface>
,EventProducerInterface
,org.opentrafficsim.core.dsol.OTSModelInterface
- Enclosing class:
- AHFEAnimation
static class AHFEAnimation.AHFEModel extends org.opentrafficsim.core.dsol.AbstractOTSModel
The AHFE simulation model.
-
-
Field Summary
-
Fields inherited from class nl.tudelft.simulation.dsol.model.AbstractDSOLModel
inputParameterMap, outputStatistics, simulator, streamInformation
-
Fields inherited from class org.djutils.event.EventProducer
eventProducerImpl
-
Fields inherited from interface org.djutils.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
-
-
Constructor Summary
Constructors Constructor Description AHFEModel(org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, Integer replication, String anticipationStrategy, Duration reactionTime, Duration anticipationTime, double truckFraction, double distanceError, double speedError, double accelerationError, Frequency leftDemand, Frequency rightDemand, double leftFraction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
constructModel()
double
getAccelerationError()
String
getAnticipationStrategy()
Duration
getAnticipationTime()
double
getDistanceError()
Frequency
getLeftDemand()
double
getLeftFraction()
OTSRoadNetwork
getNetwork()
Duration
getReactionTime()
Integer
getReplication()
Frequency
getRightDemand()
org.opentrafficsim.kpi.sampling.Sampler<GtuData>
getSampler()
Serializable
getSourceId()
double
getSpeedError()
double
getTruckFraction()
-
Methods inherited from class org.opentrafficsim.core.dsol.AbstractOTSModel
getDescription, getShortName, setDescription, setInitialStreams, setShortName
-
Methods inherited from class nl.tudelft.simulation.dsol.model.AbstractDSOLModel
addInputParameter, getInputParameter, getInputParameterMap, getOutputStatistics, getSimulator, getStreamInformation, setStreamInformation
-
Methods inherited from class org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface nl.tudelft.simulation.dsol.model.DSOLModel
getDefaultStream, getInputParameterMap, getOutputStatistics, getSimulator, getStream, getStreamInformation, getStreams, resetStreams, setStreamInformation
-
-
-
-
Constructor Detail
-
AHFEModel
AHFEModel(org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, Integer replication, String anticipationStrategy, Duration reactionTime, Duration anticipationTime, double truckFraction, double distanceError, double speedError, double accelerationError, Frequency leftDemand, Frequency rightDemand, double leftFraction)
- Parameters:
simulator
- OTSSimulatorInterface; the simulatorreplication
- Integer; replicationanticipationStrategy
- String; anticipation strategyreactionTime
- Duration; reaction timeanticipationTime
- Duration; anticipation timetruckFraction
- double; truck fractiondistanceError
- double; distance errorspeedError
- double; speed erroraccelerationError
- double; acceleration errorleftFraction
- double; left demandrightDemand
- Frequency; right demandleftDemand
- Frequency; left fraction, per road
-
-
Method Detail
-
constructModel
public void constructModel() throws SimRuntimeException
- Throws:
SimRuntimeException
-
getNetwork
public OTSRoadNetwork getNetwork()
-
getReplication
public Integer getReplication()
- Returns:
- replication.
-
getAnticipationStrategy
public String getAnticipationStrategy()
- Returns:
- anticipationStrategy.
-
getReactionTime
public Duration getReactionTime()
- Returns:
- reactionTime.
-
getAnticipationTime
public Duration getAnticipationTime()
- Returns:
- anticipationTime.
-
getTruckFraction
public double getTruckFraction()
- Returns:
- truckFraction.
-
getDistanceError
public double getDistanceError()
- Returns:
- distanceError.
-
getSpeedError
public double getSpeedError()
- Returns:
- speedError.
-
getAccelerationError
public double getAccelerationError()
- Returns:
- accelerationError.
-
getLeftDemand
public Frequency getLeftDemand()
- Returns:
- leftDemand.
-
getRightDemand
public Frequency getRightDemand()
- Returns:
- rightDemand.
-
getLeftFraction
public double getLeftFraction()
- Returns:
- leftFraction.
-
getSampler
public final org.opentrafficsim.kpi.sampling.Sampler<GtuData> getSampler()
- Returns:
- sampler
-
getSourceId
public Serializable getSourceId()
- Specified by:
getSourceId
in interfaceEventProducerInterface
- Specified by:
getSourceId
in classEventProducer
-
-