Class SurroundingVehicle

  • All Implemented Interfaces:
    Serializable

    @Immutable
    public class SurroundingVehicle
    extends Object
    implements Serializable
    A container class holding basic information about a surrounding or detected vehicle object.
    See Also:
    Serialized Form
    • Constructor Detail

      • SurroundingVehicle

        public SurroundingVehicle​(String id,
                                  Position position,
                                  double speed,
                                  double heading,
                                  String edgeId,
                                  int laneIndex,
                                  double length,
                                  double width,
                                  double height)
    • Method Detail

      • getId

        public String getId()
        Returns the id of the surrounding vehicle.
      • getProjectedPosition

        public CartesianPoint getProjectedPosition()
        Returns the cartesian position of the surrounding vehicle.
      • getGeographicPosition

        public GeoPoint getGeographicPosition()
        Returns the geographical position of the surrounding vehicle.
      • getSpeed

        public double getSpeed()
        Returns the current speed of the surrounding vehicle. Unit: [m/s]
      • getHeading

        public double getHeading()
        Returns the current heading of the surrounding vehicle. Unit: [degrees from north clockwise]
      • getEdgeId

        public String getEdgeId()
        Returns the current edge of the surrounding vehicle.
      • getLaneIndex

        public int getLaneIndex()
        Returns the current lane index of the surrounding vehicle.
      • getLength

        public double getLength()
        Returns the length of the surrounding vehicle. Unit: [m]
      • getWidth

        public double getWidth()
        Returns the width of the surrounding vehicle. Unit: [m]
      • getHeight

        public double getHeight()
        Returns the height of the surrounding vehicle. Unit: [m]
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object