Package actuator
Class PhaseTransition
- java.lang.Object
-
- actuator.PhaseTransition
-
- All Implemented Interfaces:
Comparable<PhaseTransition>
public class PhaseTransition extends Object implements Comparable<PhaseTransition>
-
-
Field Summary
Fields Modifier and Type Field Description float
cycle_time
SignalPhase.BulbColor
from_color
SignalPhase.BulbColor
to_color
-
Constructor Summary
Constructors Constructor Description PhaseTransition(float cycle_time, SignalPhase.BulbColor from_color, SignalPhase.BulbColor to_color)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
are_equal(PhaseTransition p1, PhaseTransition p2)
int
compareTo(PhaseTransition other)
String
toString()
-
-
-
Field Detail
-
cycle_time
public float cycle_time
-
from_color
public SignalPhase.BulbColor from_color
-
to_color
public SignalPhase.BulbColor to_color
-
-
Constructor Detail
-
PhaseTransition
public PhaseTransition(float cycle_time, SignalPhase.BulbColor from_color, SignalPhase.BulbColor to_color)
-
-
Method Detail
-
compareTo
public int compareTo(PhaseTransition other)
- Specified by:
compareTo
in interfaceComparable<PhaseTransition>
-
are_equal
public static boolean are_equal(PhaseTransition p1, PhaseTransition p2)
-
-