Class Latch


  • public class Latch
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Latch()
      Creates a Latch object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void feed​(boolean x)  
      boolean get()  
      void reset()
      Resets the state of the Latch
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Latch

        public Latch()
        Creates a Latch object. Latch is used as a sticky boolean for the robot.
    • Method Detail

      • feed

        public void feed​(boolean x)
        Parameters:
        x - The state of the Latch
      • get

        public boolean get()
      • reset

        public void reset()
        Resets the state of the Latch