Class TriggerDetector
java.lang.Object
org.djutils.event.LocalEventProducer
org.opentrafficsim.core.object.StaticObject
org.opentrafficsim.road.network.lane.object.AbstractLaneBasedObject
org.opentrafficsim.road.network.lane.object.detector.LaneDetector
org.opentrafficsim.road.network.lane.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
-
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
ConstructorDescriptionTriggerDetector
(Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, RelativePosition.Type positionType, String name, OtsSimulatorInterface simulator) -
Method Summary
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 sensorlongitudinalPosition
- position of the sensor on the lanepositionType
- trigger position of the GTUname
- name of the sensorsimulator
- the simulator- Throws:
NetworkException
- in case position is out of bounds
-
-
Method Details
-
triggerResponse
- Specified by:
triggerResponse
in classLaneDetector
-