java.lang.Object
io.github.tigerbotics7125.tigerlib.input.trigger.TriggerGroup
All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable

public class TriggerGroup extends Object implements edu.wpi.first.util.sendable.Sendable
This class is a container for all of the group managing features of this Trigger class.

This class provides a way to manage a group of Triggers.

  • Constructor Details

    • TriggerGroup

      public TriggerGroup()
      Create a new TriggerGroup Object.
  • Method Details

    • enable

      public void enable()
      Enable all Triggers withing this TriggerGroup.
    • disable

      public void disable()
      Disable all Triggers withing this TriggerGroup.
    • isEnabled

      public boolean isEnabled()
      Returns:
      If this TriggerGroup is enabled.
    • isDisabled

      public boolean isDisabled()
      Returns:
      If this TriggerGroup is disabled.
    • enroll

      public void enroll(Trigger trigger)
      Enroll a Trigger to follow this TriggerGroup.
      Parameters:
      trigger - The Trigger to enroll.
    • dismiss

      public void dismiss(Trigger trigger)
      Dissmiss a Trigger from following this TriggerGroup.
      Parameters:
      trigger - The {link Trigger} to dismiss.
    • initSendable

      public void initSendable(edu.wpi.first.util.sendable.SendableBuilder builder)
      Specified by:
      initSendable in interface edu.wpi.first.util.sendable.Sendable