Class TriggerDetector

All Implemented Interfaces:
Serializable, Comparable<LaneDetector>, Remote, nl.tudelft.simulation.dsol.animation.Locatable, org.djutils.base.Identifiable, org.djutils.event.EventProducer, org.opentrafficsim.base.geometry.OtsLocatable, org.opentrafficsim.base.HierarchicallyTyped<DetectorType,Detector>, org.opentrafficsim.core.animation.Drawable, LocatedObject, Detector, LaneBasedObject

class TriggerDetector extends LaneDetector
  • Field Summary

    Fields inherited from class org.opentrafficsim.road.network.lane.object.detector.LaneDetector

    DEFAULT_DETECTOR_ELEVATION, DETECTOR_TRIGGER_EVENT

    Fields inherited from interface org.djutils.event.EventProducer

    FIRST_POSITION, LAST_POSITION
  • Constructor Summary

    Constructors
    Constructor
    Description
    TriggerDetector(Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, RelativePosition.Type positionType, String name, OtsSimulatorInterface simulator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void

    Methods inherited from class org.opentrafficsim.road.network.lane.object.detector.LaneDetector

    compareTo, equals, getPositionType, getSimulator, getType, hashCode, isCompatible, toString, trigger

    Methods inherited from class org.opentrafficsim.road.network.lane.object.AbstractLaneBasedObject

    getFullId, getLane, getLongitudinalPosition, init

    Methods inherited from class org.opentrafficsim.core.object.StaticObject

    create, create, getBounds, getGeometry, getHeight, getId, getLocation

    Methods inherited from class org.djutils.event.LocalEventProducer

    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 class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    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.HierarchicallyTyped

    isOfType

    Methods inherited from interface org.djutils.base.Identifiable

    getId

    Methods inherited from interface org.opentrafficsim.road.network.lane.object.LaneBasedObject

    getLane, getLength, getLocation, getLongitudinalPosition

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

    getDirZ, getZ

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

    getFullId, getGeometry, getHeight

    Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable

    getBounds
  • Constructor Details

    • TriggerDetector

      TriggerDetector(Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, RelativePosition.Type positionType, String name, OtsSimulatorInterface simulator) throws NetworkException
      Parameters:
      lane - lane of the sensor
      longitudinalPosition - position of the sensor on the lane
      positionType - trigger position of the GTU
      name - name of the sensor
      simulator - the simulator
      Throws:
      NetworkException - in case position is out of bounds
  • Method Details