Class GPiston

  • All Implemented Interfaces:
    Piston

    public class GPiston
    extends java.lang.Object
    implements Piston
    • Constructor Summary

      Constructors 
      Constructor Description
      GPiston​(edu.wpi.first.wpilibj.Solenoid solenoid)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void extend()
      Extend the piston.
      boolean isExtended()
      Determines if the piston is extended.
      boolean isInverted()
      Determines if the piston is inverted.
      boolean isRetracted()
      Determines if the piston is retracted.
      void retract()
      Retract the piston.
      void setInverted​(boolean inverted)
      Invert the piston.
      • Methods inherited from class java.lang.Object

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

      • GPiston

        public GPiston​(edu.wpi.first.wpilibj.Solenoid solenoid)
    • Method Detail

      • extend

        public void extend()
        Description copied from interface: Piston
        Extend the piston.
        Specified by:
        extend in interface Piston
      • retract

        public void retract()
        Description copied from interface: Piston
        Retract the piston.
        Specified by:
        retract in interface Piston
      • isExtended

        public boolean isExtended()
        Description copied from interface: Piston
        Determines if the piston is extended.
        Specified by:
        isExtended in interface Piston
        Returns:
        True if the piston is extended.
      • isRetracted

        public boolean isRetracted()
        Description copied from interface: Piston
        Determines if the piston is retracted.
        Specified by:
        isRetracted in interface Piston
        Returns:
        True if the piston is retracted.
      • setInverted

        public void setInverted​(boolean inverted)
        Description copied from interface: Piston
        Invert the piston.
        Specified by:
        setInverted in interface Piston
        Parameters:
        inverted - True if the piston is inverted.
      • isInverted

        public boolean isInverted()
        Description copied from interface: Piston
        Determines if the piston is inverted.
        Specified by:
        isInverted in interface Piston
        Returns:
        True if the piston is inverted.