Class FixedTimeController.Flank
java.lang.Object
org.opentrafficsim.trafficcontrol.FixedTimeController.Flank
- All Implemented Interfaces:
Comparable<FixedTimeController.Flank>
- Enclosing class:
- FixedTimeController
Storage of an offset within a cycle and the new traffic light color. Used to sort the flanks. The term 'flank' refers to
the 'side' of the shape of an electronic signal impulse.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
double
Retrieve the offset.Retrieve the color after this transition.toString()
-
Constructor Details
-
Flank
Flank(double offset, TrafficLightColor newColor) Construct a new Flank.- Parameters:
offset
- double; offset within the cycle timenewColor
- TrafficLightColor; color to show after this transition
-
-
Method Details
-
getOffset
public double getOffset()Retrieve the offset.- Returns:
- double; the offset
-
getTrafficLightColor
Retrieve the color after this transition.- Returns:
- TrafficLightColor; the color after this transition
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FixedTimeController.Flank>
-