Class POSPowerService

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.pospower.POSPowerService
All Implemented Interfaces:
jpos.loader.JposServiceInstance, jpos.services.BaseService, jpos.services.POSPowerService110, jpos.services.POSPowerService111, jpos.services.POSPowerService112, jpos.services.POSPowerService113, jpos.services.POSPowerService114, jpos.services.POSPowerService115, jpos.services.POSPowerService116, jpos.services.POSPowerService15, jpos.services.POSPowerService16, jpos.services.POSPowerService17, jpos.services.POSPowerService18, jpos.services.POSPowerService19

public class POSPowerService extends JposBase implements jpos.services.POSPowerService116
POSPower service implementation. For more details about getter, setter and method implementations, see JposBase.
  • Field Details

    • POSPowerInterface

      public POSPowerInterface POSPowerInterface
      Instance of a class implementing the POSPowerInterface for POS power device specific setter and method calls bound to the property set. Almost always the same object as Data.
  • Constructor Details

    • POSPowerService

      public POSPowerService(POSPowerProperties props, JposDevice device)
      Constructor. Stores given property set and device implementation object.
      Parameters:
      props - Property set.
      device - Device implementation object.
  • Method Details

    • getCapBatteryCapacityRemaining

      public boolean getCapBatteryCapacityRemaining() throws jpos.JposException
      Specified by:
      getCapBatteryCapacityRemaining in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • getCapFanAlarm

      public boolean getCapFanAlarm() throws jpos.JposException
      Specified by:
      getCapFanAlarm in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • getCapHeatAlarm

      public boolean getCapHeatAlarm() throws jpos.JposException
      Specified by:
      getCapHeatAlarm in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • getCapQuickCharge

      public boolean getCapQuickCharge() throws jpos.JposException
      Specified by:
      getCapQuickCharge in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • getCapRestartPOS

      public boolean getCapRestartPOS() throws jpos.JposException
      Specified by:
      getCapRestartPOS in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • getCapShutdownPOS

      public boolean getCapShutdownPOS() throws jpos.JposException
      Specified by:
      getCapShutdownPOS in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • getCapStandbyPOS

      public boolean getCapStandbyPOS() throws jpos.JposException
      Specified by:
      getCapStandbyPOS in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • getCapSuspendPOS

      public boolean getCapSuspendPOS() throws jpos.JposException
      Specified by:
      getCapSuspendPOS in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • getCapUPSChargeState

      public int getCapUPSChargeState() throws jpos.JposException
      Specified by:
      getCapUPSChargeState in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • getCapVariableBatteryCriticallyLowThreshold

      public boolean getCapVariableBatteryCriticallyLowThreshold() throws jpos.JposException
      Specified by:
      getCapVariableBatteryCriticallyLowThreshold in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • getCapVariableBatteryLowThreshold

      public boolean getCapVariableBatteryLowThreshold() throws jpos.JposException
      Specified by:
      getCapVariableBatteryLowThreshold in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • getBatteryCapacityRemaining

      public int getBatteryCapacityRemaining() throws jpos.JposException
      Specified by:
      getBatteryCapacityRemaining in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • getBatteryCriticallyLowThreshold

      public int getBatteryCriticallyLowThreshold() throws jpos.JposException
      Specified by:
      getBatteryCriticallyLowThreshold in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • setBatteryCriticallyLowThreshold

      public void setBatteryCriticallyLowThreshold(int threshold) throws jpos.JposException
      Specified by:
      setBatteryCriticallyLowThreshold in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • getBatteryLowThreshold

      public int getBatteryLowThreshold() throws jpos.JposException
      Specified by:
      getBatteryLowThreshold in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • setBatteryLowThreshold

      public void setBatteryLowThreshold(int threshold) throws jpos.JposException
      Specified by:
      setBatteryLowThreshold in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • getEnforcedShutdownDelayTime

      public int getEnforcedShutdownDelayTime() throws jpos.JposException
      Specified by:
      getEnforcedShutdownDelayTime in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • setEnforcedShutdownDelayTime

      public void setEnforcedShutdownDelayTime(int delay) throws jpos.JposException
      Specified by:
      setEnforcedShutdownDelayTime in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • getPowerFailDelayTime

      public int getPowerFailDelayTime() throws jpos.JposException
      Specified by:
      getPowerFailDelayTime in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • getPowerSource

      public int getPowerSource() throws jpos.JposException
      Specified by:
      getPowerSource in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • getQuickChargeMode

      public boolean getQuickChargeMode() throws jpos.JposException
      Specified by:
      getQuickChargeMode in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • getQuickChargeTime

      public int getQuickChargeTime() throws jpos.JposException
      Specified by:
      getQuickChargeTime in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • getUPSChargeState

      public int getUPSChargeState() throws jpos.JposException
      Specified by:
      getUPSChargeState in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • restartPOS

      public void restartPOS() throws jpos.JposException
      Specified by:
      restartPOS in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • shutdownPOS

      public void shutdownPOS() throws jpos.JposException
      Specified by:
      shutdownPOS in interface jpos.services.POSPowerService15
      Throws:
      jpos.JposException
    • standbyPOS

      public void standbyPOS(int reason) throws jpos.JposException
      Specified by:
      standbyPOS in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • suspendPOS

      public void suspendPOS(int reason) throws jpos.JposException
      Specified by:
      suspendPOS in interface jpos.services.POSPowerService19
      Throws:
      jpos.JposException
    • getBatteryCapacityRemainingInSeconds

      public int getBatteryCapacityRemainingInSeconds() throws jpos.JposException
      Specified by:
      getBatteryCapacityRemainingInSeconds in interface jpos.services.POSPowerService116
      Throws:
      jpos.JposException
    • getBatteryCriticallyLowThresholdInSeconds

      public int getBatteryCriticallyLowThresholdInSeconds() throws jpos.JposException
      Specified by:
      getBatteryCriticallyLowThresholdInSeconds in interface jpos.services.POSPowerService116
      Throws:
      jpos.JposException
    • getBatteryLowThresholdInSeconds

      public int getBatteryLowThresholdInSeconds() throws jpos.JposException
      Specified by:
      getBatteryLowThresholdInSeconds in interface jpos.services.POSPowerService116
      Throws:
      jpos.JposException
    • getCapBatteryCapacityRemainingInSeconds

      public boolean getCapBatteryCapacityRemainingInSeconds() throws jpos.JposException
      Specified by:
      getCapBatteryCapacityRemainingInSeconds in interface jpos.services.POSPowerService116
      Throws:
      jpos.JposException
    • getCapChargeTime

      public boolean getCapChargeTime() throws jpos.JposException
      Specified by:
      getCapChargeTime in interface jpos.services.POSPowerService116
      Throws:
      jpos.JposException
    • getCapVariableBatteryCriticallyLowThresholdInSeconds

      public boolean getCapVariableBatteryCriticallyLowThresholdInSeconds() throws jpos.JposException
      Specified by:
      getCapVariableBatteryCriticallyLowThresholdInSeconds in interface jpos.services.POSPowerService116
      Throws:
      jpos.JposException
    • getCapVariableBatteryLowThresholdInSeconds

      public boolean getCapVariableBatteryLowThresholdInSeconds() throws jpos.JposException
      Specified by:
      getCapVariableBatteryLowThresholdInSeconds in interface jpos.services.POSPowerService116
      Throws:
      jpos.JposException
    • getChargeTime

      public int getChargeTime() throws jpos.JposException
      Specified by:
      getChargeTime in interface jpos.services.POSPowerService116
      Throws:
      jpos.JposException
    • setBatteryCriticallyLowThresholdInSeconds

      public void setBatteryCriticallyLowThresholdInSeconds(int seconds) throws jpos.JposException
      Specified by:
      setBatteryCriticallyLowThresholdInSeconds in interface jpos.services.POSPowerService116
      Throws:
      jpos.JposException
    • setBatteryLowThresholdInSeconds

      public void setBatteryLowThresholdInSeconds(int seconds) throws jpos.JposException
      Specified by:
      setBatteryLowThresholdInSeconds in interface jpos.services.POSPowerService116
      Throws:
      jpos.JposException