Class SimplePowerSupply

java.lang.Object
org.myls.powersupply.SimplePowerSupply
All Implemented Interfaces:
IPowerSupply

public class SimplePowerSupply extends Object implements IPowerSupply
  • Field Details

    • on

      protected boolean on
  • Constructor Details

    • SimplePowerSupply

      public SimplePowerSupply()
  • Method Details

    • getOn

      public boolean getOn()
      Specified by:
      getOn in interface IPowerSupply
      Returns:
      True is the psu is on
    • setOn

      public void setOn(boolean on)
      Specified by:
      setOn in interface IPowerSupply
      Parameters:
      on -
    • toString

      public String toString()
      Overrides:
      toString in class Object