Class FixedTimeController

java.lang.Object
org.djutils.event.LocalEventProducer
org.opentrafficsim.trafficcontrol.AbstractTrafficController
org.opentrafficsim.trafficcontrol.FixedTimeController
All Implemented Interfaces:
Serializable, Remote, EventListener, org.djutils.base.Identifiable, org.djutils.event.EventListener, org.djutils.event.EventProducer, org.opentrafficsim.core.animation.Drawable, org.opentrafficsim.core.object.NonLocatedObject, TrafficController

public class FixedTimeController extends AbstractTrafficController
Fixed time traffic light control.

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
See Also:
  • Constructor Details

    • FixedTimeController

      public FixedTimeController(String id, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, org.opentrafficsim.core.network.Network network, org.djunits.value.vdouble.scalar.Duration cycleTime, org.djunits.value.vdouble.scalar.Duration offset, Set<FixedTimeController.SignalGroup> signalGroups) throws nl.tudelft.simulation.dsol.SimRuntimeException
      Constructor for fixed time traffic controller.
      Parameters:
      id - String; id
      simulator - OtsSimulatorInterface; simulator
      network - Network; network
      offset - Duration; off set from simulation start time
      cycleTime - Duration; cycle time
      signalGroups - Set<SignalGroup>; signal groups
      Throws:
      nl.tudelft.simulation.dsol.SimRuntimeException - simulator is past zero time
  • Method Details

    • notify

      public void notify(org.djutils.event.Event event) throws RemoteException
      Throws:
      RemoteException
    • getFullId

      public String getFullId()
    • getCycleTime

      public final org.djunits.value.vdouble.scalar.Duration getCycleTime()
      Returns:
      cycleTime.
    • getOffset

      public final org.djunits.value.vdouble.scalar.Duration getOffset()
      Returns:
      offset.
    • getSignalGroups

      public final Set<FixedTimeController.SignalGroup> getSignalGroups()
      Returns:
      signalGroups.
    • toString

      public String toString()
      Overrides:
      toString in class Object