Class AnticipationInfo

    • Constructor Detail

      • AnticipationInfo

        public AnticipationInfo​(Duration duration,
                                Speed endSpeed)
        Parameters:
        duration - Duration; duration of movement
        endSpeed - Speed; end speed of movement
    • Method Detail

      • getDuration

        public Duration getDuration()
        Returns:
        duration.
      • getEndSpeed

        public Speed getEndSpeed()
        Returns:
        endSpeed.
      • anticipateMovement

        public static AnticipationInfo anticipateMovement​(Length distance,
                                                          Speed initialSpeed,
                                                          Acceleration acceleration)
        Returns info of the anticipation assuming constant acceleration.
        Parameters:
        distance - Length; distance to cover
        initialSpeed - Speed; initial speed
        acceleration - Acceleration; (assumed) acceleration
        Returns:
        duration to cover given distance with given initial speed and acceleration
      • anticipateMovementSpeedLimited

        public static AnticipationInfo anticipateMovementSpeedLimited​(Length distance,
                                                                      Speed initialSpeed,
                                                                      Acceleration acceleration,
                                                                      Speed maxSpeed)
        Returns info of the anticipation assuming constant acceleration, without exceeding maximum speed.
        Parameters:
        distance - Length; distance to cover
        initialSpeed - Speed; initial speed
        acceleration - Acceleration; (assumed) acceleration
        maxSpeed - Speed; maximum speed
        Returns:
        duration to cover given distance with given initial speed and acceleration, without exceeding maximum speed
      • anticipateMovementFreeAcceleration

        public static AnticipationInfo anticipateMovementFreeAcceleration​(Length distance,
                                                                          Speed initialSpeed,
                                                                          Parameters parameters,
                                                                          CarFollowingModel carFollowingModel,
                                                                          SpeedLimitInfo speedLimitInfo,
                                                                          Duration timeStep)
                                                                   throws ParameterException
        Returns info of the anticipation using free acceleration from car-following model.
        Parameters:
        distance - Length; distance to cover
        initialSpeed - Speed; initial speed
        parameters - Parameters; parameters of the anticipated GTU
        carFollowingModel - CarFollowingModel; car-following model of the anticipated GTU
        speedLimitInfo - SpeedLimitInfo; speed limit info of the anticipated GTU
        timeStep - Duration; time step to use
        Returns:
        info regarding anticipation of movement
        Throws:
        ParameterException - if parameter is not defined