Interface LaneBasedObject

    • Method Detail

      • getLane

        Lane getLane()
        Returns:
        The lane for which this is a sensor.
      • getLongitudinalPosition

        Length getLongitudinalPosition()
        Returns:
        the position (between 0.0 and the length of the Lane) of the sensor on the design line of the lane.
      • getLocation

        DirectedPoint getLocation()
        Return the location without throwing a RemoteException.
        Specified by:
        getLocation in interface Locatable
        Returns:
        DirectedPoint; the location
      • getBounds

        Bounds getBounds()
        Return the bounds without throwing a RemoteException.
        Specified by:
        getBounds in interface Locatable
        Specified by:
        getBounds in interface ObjectInterface
        Returns:
        Bounds; the (usually rectangular) bounds of the object
      • makeGeometry

        static OTSLine3D makeGeometry​(Lane lane,
                                      Length position)
        Make a geometry perpendicular to the center line of the lane at the given position.
        Parameters:
        lane - Lane; the lane where the sensor resides
        position - Length; The length of the object in the longitudinal direction, on the center line of the lane
        Returns:
        a geometry perpendicular to the center line that describes the sensor