Interface Cooperation

    • Field Detail

      • PASSIVE

        static final Cooperation PASSIVE
        Simple passive cooperation.
      • PASSIVE_MOVING

        static final Cooperation PASSIVE_MOVING
        Same as passive cooperation, except that cooperation is fully ignored if the potential lane changer brakes heavily.
      • ACTIVE

        static final Cooperation ACTIVE
        Cooperation similar to the default, with nuanced differences of when to ignore.
    • Method Detail

      • cooperate

        Acceleration cooperate​(LanePerception perception,
                               org.opentrafficsim.base.parameters.Parameters params,
                               SpeedLimitInfo sli,
                               CarFollowingModel cfm,
                               LateralDirectionality lat,
                               Desire ownDesire)
                        throws org.opentrafficsim.base.parameters.ParameterException,
                               OperationalPlanException
        Determine acceleration for cooperation.
        Parameters:
        perception - LanePerception; perception
        params - Parameters; parameters
        sli - SpeedLimitInfo; speed limit info
        cfm - CarFollowingModel; car-following model
        lat - LateralDirectionality; lateral direction for cooperation
        ownDesire - Desire; own lane change desire
        Returns:
        acceleration for synchronization
        Throws:
        org.opentrafficsim.base.parameters.ParameterException - if a parameter is not defined
        OperationalPlanException - perception exception