Class Edge<T>
java.lang.Object
org.firstinspires.ftc.teamcode.subsystems.fsm.Edge<T>
An edge in the state machine graph.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A callback to decide if a state machine should shift state. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the callback that decides if the transition should occur.getTo()
Gets the name of the state to transition to.
-
Constructor Details
-
Edge
Constructs a new edge.- Parameters:
to
- The state to transition to.callback
- The callback that decides if the transition should occur.
-
-
Method Details
-
getTo
Gets the name of the state to transition to.- Returns:
- Returns the state to transition to.
-
getCallback
Gets the callback that decides if the transition should occur.- Returns:
- Returns the callback.
-