Class CarFollowingUtil.CarFollowingHeadway

    • Constructor Detail

      • CarFollowingHeadway

        public CarFollowingHeadway​(Length headway,
                                   Speed speed)
                            throws GTUException
        Constructor.
        Parameters:
        headway - Length; distance to the leader
        speed - Speed; leader speed
        Throws:
        GTUException - on exception
    • Method Detail

      • getId

        public String getId()
        Returns:
        String; the id of the other object for comparison purposes, cannot be null.
      • getLength

        public Length getLength()
        Returns:
        Length; the length of the other object; can be null if unknown.
      • getSpeed

        public Speed getSpeed()
        Returns:
        Speed; the (perceived) speed of the other object; can be null if unknown.
      • getObjectType

        public Headway.ObjectType getObjectType()
        Returns:
        Length; the (perceived) object Type, can be null if no object type unknown.
      • getAcceleration

        public Acceleration getAcceleration()
        Returns:
        Acceleration; acceleration the (perceived) acceleration of the other object; can be null if unknown.