public class FixedTimeController extends AbstractTrafficController
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.
Modifier and Type | Class and Description |
---|---|
static class |
FixedTimeController.SignalGroup
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
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 and Description |
---|
FixedTimeController(String id,
OTSSimulatorInterface simulator,
Network network,
Duration cycleTime,
Duration offset,
Set<FixedTimeController.SignalGroup> signalGroups)
Constructor for fixed time traffic controller.
|
Modifier and Type | Method and Description |
---|---|
InvisibleObjectInterface |
clone(OTSSimulatorInterface newSimulator,
Network newNetwork) |
Duration |
getCycleTime() |
String |
getFullId() |
Duration |
getOffset() |
Set<FixedTimeController.SignalGroup> |
getSignalGroups() |
void |
notify(nl.tudelft.simulation.event.EventInterface event) |
String |
toString() |
getId
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListener
public FixedTimeController(String id, OTSSimulatorInterface simulator, Network network, Duration cycleTime, Duration offset, Set<FixedTimeController.SignalGroup> signalGroups) throws SimRuntimeException
id
- String; idsimulator
- OTSSimulatorInterface; simulatornetwork
- Network; networkoffset
- Duration; off set from simulation start timecycleTime
- Duration; cycle timesignalGroups
- Set<SignalGroup>; signal groupsSimRuntimeException
- simulator is past zero timepublic void notify(nl.tudelft.simulation.event.EventInterface event) throws RemoteException
RemoteException
public InvisibleObjectInterface clone(OTSSimulatorInterface newSimulator, Network newNetwork) throws NetworkException
NetworkException
public String getFullId()
public final Duration getCycleTime()
public final Duration getOffset()
public final Set<FixedTimeController.SignalGroup> getSignalGroups()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.