Class AbstractTrafficController
java.lang.Object
nl.tudelft.simulation.event.EventProducer
org.opentrafficsim.trafficcontrol.AbstractTrafficController
- All Implemented Interfaces:
java.io.Serializable,java.util.EventListener,EventListenerInterface,EventProducerInterface,Identifiable,Drawable,InvisibleObjectInterface,TrafficController
- Direct Known Subclasses:
FixedTimeController,TrafCOD
public abstract class AbstractTrafficController extends EventProducer implements TrafficController
Copyright (c) 2013-2019 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_POSITIONFields 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.StringgetId()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, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, removeListenerMethods 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:TrafficControllerRetrieve the Id of the traffic light controller.- Specified by:
getIdin interfaceIdentifiable- Specified by:
getIdin interfaceTrafficController- Returns:
- id.
-