Class StateMachine.TransitionNeedsTargetStage
java.lang.Object
org.wpilib.command3.StateMachine.TransitionNeedsTargetStage
- Enclosing class:
StateMachine
-
Method Summary
Modifier and TypeMethodDescriptionto(Supplier<StateMachine.State> dynamic) Specifies a dynamic target state to transition to.to(StateMachine.State to) Specifies the target state to transition to.Specifies the transition will exit the state machine when triggered, rather than moving to a different state.
-
Method Details
-
to
Specifies the target state to transition to.- Parameters:
to- The state to transition to. Cannot be null.- Returns:
- A builder to specify the transition condition.
-
to
Specifies a dynamic target state to transition to. The supplier will be evaluated at the time the transition condition is met.- Parameters:
dynamic- A dynamic supplier for next states. Cannot be null.- Returns:
- A builder to specify the transition condition.
-
toExitStateMachine
Specifies the transition will exit the state machine when triggered, rather than moving to a different state.- Returns:
- A builder to specify the transition condition.
-