Class 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.
    • 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 simulator
        replication - Integer; replication
        anticipationStrategy - String; anticipation strategy
        reactionTime - Duration; reaction time
        anticipationTime - Duration; anticipation time
        truckFraction - double; truck fraction
        distanceError - double; distance error
        speedError - double; speed error
        accelerationError - double; acceleration error
        leftFraction - double; left demand
        rightDemand - Frequency; right demand
        leftDemand - Frequency; left fraction, per road
    • Method Detail

      • 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