Class AbstractLaneBasedObject

    • Constructor Detail

      • AbstractLaneBasedObject

        protected AbstractLaneBasedObject​(String id,
                                          Lane lane,
                                          LongitudinalDirectionality direction,
                                          Length longitudinalPosition,
                                          Polygon3d geometry,
                                          Length height)
                                   throws NetworkException
        Construct a new AbstractLanebasedObject.
        Parameters:
        id - String; the id of the new object
        lane - Lane; The lane on which the new object resides. If the new object is a Sensor; it is automatically registered on the lane
        direction - LongitudinalDirectionality; the directionality in which this is valid.
        longitudinalPosition - Length; The position (between 0.0 and the length of the Lane) of the sensor on the design line of the lane
        geometry - Polygon3d; the geometry of the object relative to the position on the lane
        height - Length; additional elevation above the position on the lane of the object
        Throws:
        NetworkException - when the position on the lane is out of bounds
      • AbstractLaneBasedObject

        protected AbstractLaneBasedObject​(String id,
                                          Lane lane,
                                          LongitudinalDirectionality direction,
                                          Length longitudinalPosition,
                                          Polygon3d geometry,
                                          Length height,
                                          boolean geometryIsAbsolute)
                                   throws NetworkException
        Construct a new AbstractLanebasedObject.
        Parameters:
        id - String; the id of the new object
        lane - Lane; The lane on which the new object resides. If the new object is a Sensor; it is automatically registered on the lane
        direction - LongitudinalDirectionality; the directionality in which this is valid.
        longitudinalPosition - Length; The position (between 0.0 and the length of the Lane) of the sensor on the design line of the lane
        geometry - Polygon3d; the geometry of the object relative to the position on the lane
        height - Length; additional elevation above the position on the lane of the object
        geometryIsAbsolute - boolean; if true; the geometry is already positioned and rotated to the indicated position on the lane; if false; the geometry is relative to the indicated position and not rotated to match the location on the lane
        Throws:
        NetworkException - when the position on the lane is out of bounds
      • AbstractLaneBasedObject

        protected AbstractLaneBasedObject​(String id,
                                          Lane lane,
                                          Length longitudinalPosition,
                                          Polygon3d geometry,
                                          Length height)
                                   throws NetworkException
        Construct a new AbstractLanebasedObject that is applies to both driving directions.
        Parameters:
        id - String; the id of the new object
        lane - Lane; The lane on which the new object resides. If the new object is a Sensor; it is automatically registered on the lane
        longitudinalPosition - Length; The position (between 0.0 and the length of the Lane) of the sensor on the design line of the lane
        geometry - Polygon3d; the geometry of the object relative to the position on the lane
        height - Length; additional elevation above the position on the lane of the object
        Throws:
        NetworkException - when the position on the lane is out of bounds
      • AbstractLaneBasedObject

        protected AbstractLaneBasedObject​(String id,
                                          Lane lane,
                                          LongitudinalDirectionality direction,
                                          Length longitudinalPosition,
                                          Polygon3d geometry)
                                   throws NetworkException
        Construct a new LaneBasedObject that has zero additional elevation.
        Parameters:
        id - String; the id of the new AbstractLaneBasedObject
        lane - Lane; The lane for which this is a sensor
        direction - LongitudinalDirectionality; the directionality in which this is valid.
        longitudinalPosition - Length; The position (between 0.0 and the length of the Lane) of the sensor on the design line of the lane
        geometry - Polygon3d; the geometry of the object relative to the position on the lane
        Throws:
        NetworkException - when the position on the lane is out of bounds
      • AbstractLaneBasedObject

        protected AbstractLaneBasedObject​(String id,
                                          Lane lane,
                                          LongitudinalDirectionality direction,
                                          Length longitudinalPosition,
                                          Polygon3d geometry,
                                          boolean geometryIsAbsolute)
                                   throws NetworkException
        Construct a new LaneBasedObject that has zero additional elevation.
        Parameters:
        id - String; the id of the new AbstractLaneBasedObject
        lane - Lane; The lane for which this is a sensor
        direction - LongitudinalDirectionality; the directionality in which this is valid.
        longitudinalPosition - Length; The position (between 0.0 and the length of the Lane) of the sensor on the design line of the lane
        geometry - Polygon3d; the geometry of the object relative to the position on the lane
        geometryIsAbsolute - boolean; if true; the geometry is already positioned and rotated to the indicated position on the lane; if false; the geometry is relative to the indicated position and not rotated to match the location on the lane
        Throws:
        NetworkException - when the position on the lane is out of bounds
      • AbstractLaneBasedObject

        protected AbstractLaneBasedObject​(String id,
                                          Lane lane,
                                          Length longitudinalPosition,
                                          Polygon3d geometry)
                                   throws NetworkException
        Construct a new LaneBasedObject that has zero additional elevation and applies to both driving directions.
        Parameters:
        id - String; the id of the new AbstractLaneBasedObject
        lane - Lane; The lane for which this is a sensor
        longitudinalPosition - Length; The position (between 0.0 and the length of the Lane) of the sensor on the design line of the lane
        geometry - Polygon3d; the geometry of the object relative to the position on the lane
        Throws:
        NetworkException - when the position on the lane is out of bounds