java.lang.Object
org.firstinspires.ftc.teamcode.subsystems.fsm.Edge<T>

public class Edge<T> extends Object
An edge in the state machine graph.
  • Constructor Details

    • Edge

      public Edge(Class<T> to, Edge.EdgeCallback callback)
      Constructs a new edge.
      Parameters:
      to - The state to transition to.
      callback - The callback that decides if the transition should occur.
  • Method Details

    • getTo

      public Class<T> getTo()
      Gets the name of the state to transition to.
      Returns:
      Returns the state to transition to.
    • getCallback

      public Edge.EdgeCallback getCallback()
      Gets the callback that decides if the transition should occur.
      Returns:
      Returns the callback.