Class AbstractTrafficController
java.lang.Object
nl.tudelft.simulation.event.EventProducer
org.opentrafficsim.trafficcontrol.AbstractTrafficController
- All Implemented Interfaces:
java.io.Serializable
,java.util.EventListener
,nl.tudelft.simulation.event.EventListenerInterface
,nl.tudelft.simulation.event.EventProducerInterface
,Identifiable
,Drawable
,InvisibleObjectInterface
,TrafficController
- Direct Known Subclasses:
FixedTimeController
,TrafCOD
public abstract class AbstractTrafficController extends nl.tudelft.simulation.event.EventProducer implements TrafficController
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 21 feb. 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
Fields inherited from interface org.opentrafficsim.trafficcontrol.TrafficController
BEING_CLONED, NO_STREAM, OFF, RUNNING, SHUTTING_DOWN, STARTING_UP, TRAFFIC_LIGHT_CHANGED, TRAFFICCONTROL_CONFLICT_GROUP_CHANGED, TRAFFICCONTROL_CONTROLLER_CREATED, TRAFFICCONTROL_CONTROLLER_EVALUATING, TRAFFICCONTROL_CONTROLLER_WARNING, TRAFFICCONTROL_SET_TRACING, TRAFFICCONTROL_STATE_CHANGED, TRAFFICCONTROL_TRACED_VARIABLE_UPDATED, TRAFFICCONTROL_VARIABLE_CREATED
-
Constructor Summary
Constructors Constructor Description AbstractTrafficController(java.lang.String id, OTSSimulatorInterface simulator)
Constructor for traffic controller. -
Method Summary
Modifier and Type Method Description java.lang.String
getId()
Retrieve the Id of the traffic light controller.Methods inherited from class nl.tudelft.simulation.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, removeListener
Methods inherited from interface org.opentrafficsim.core.object.InvisibleObjectInterface
clone, getFullId
-
Constructor Details
-
AbstractTrafficController
Constructor for traffic controller.- Parameters:
id
- String; idsimulator
- OTSSimulatorInterface; simulator
-
-
Method Details
-
getId
public java.lang.String getId()Description copied from interface:TrafficController
Retrieve the Id of the traffic light controller.- Specified by:
getId
in interfaceIdentifiable
- Specified by:
getId
in interfaceTrafficController
- Returns:
- id.
-