Interface LaneBasedObject

All Superinterfaces:
org.djutils.event.EventProducer, org.opentrafficsim.base.Identifiable, Locatable, LocatedObject, Remote, Serializable
All Known Implementing Classes:
AbstractLaneBasedObject, BusStop, Conflict, Conflict.ConflictEnd, DestinationDetector, Distraction, LaneDetector, LoopDetector, ReportingDetector, SinkDetector, SpeedSign, TrafficLight, TrafficLightDetector.StartEndDetector

public interface LaneBasedObject extends LocatedObject
Objects that can be encountered on a Lane like conflict areas, GTUs, traffic lights, stop lines, etc.

Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Field Summary

    Fields inherited from interface org.djutils.event.EventProducer

    FIRST_POSITION, LAST_POSITION
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the bounds without throwing a RemoteException.
     
    Return the location without throwing a RemoteException.
     
    static OtsLine3d
    makeGeometry(Lane lane, Length position)
    Make a geometry perpendicular to the center line of the lane at the given position.

    Methods inherited from interface org.djutils.event.EventProducer

    addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventListenerMap, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener

    Methods inherited from interface org.opentrafficsim.base.Identifiable

    getId

    Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable

    getDirZ, getZ

    Methods inherited from interface org.opentrafficsim.core.object.LocatedObject

    getFullId, getGeometry, getHeight
  • Method Details

    • 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 LocatedObject
      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