Class LightsService

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.lights.LightsService
All Implemented Interfaces:
jpos.loader.JposServiceInstance, jpos.services.BaseService, jpos.services.LightsService112, jpos.services.LightsService113, jpos.services.LightsService114, jpos.services.LightsService115, jpos.services.LightsService116

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

    • LightsInterface

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

    • LightsService

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

    • getCapAlarm

      public int getCapAlarm() throws jpos.JposException
      Specified by:
      getCapAlarm in interface jpos.services.LightsService112
      Throws:
      jpos.JposException
    • getCapBlink

      public boolean getCapBlink() throws jpos.JposException
      Specified by:
      getCapBlink in interface jpos.services.LightsService112
      Throws:
      jpos.JposException
    • getCapColor

      public int getCapColor() throws jpos.JposException
      Specified by:
      getCapColor in interface jpos.services.LightsService112
      Throws:
      jpos.JposException
    • getMaxLights

      public int getMaxLights() throws jpos.JposException
      Specified by:
      getMaxLights in interface jpos.services.LightsService112
      Throws:
      jpos.JposException
    • getCapPattern

      public int getCapPattern() throws jpos.JposException
      Specified by:
      getCapPattern in interface jpos.services.LightsService116
      Throws:
      jpos.JposException
    • switchOff

      public void switchOff(int lightNumber) throws jpos.JposException
      Specified by:
      switchOff in interface jpos.services.LightsService112
      Throws:
      jpos.JposException
    • switchOn

      public void switchOn(int lightNumber, int blinkOnCycle, int blinkOffCycle, int color, int alarm) throws jpos.JposException
      Specified by:
      switchOn in interface jpos.services.LightsService112
      Throws:
      jpos.JposException
    • switchOnMultiple

      public void switchOnMultiple(String lightNumbers, int blinkOnCycle, int blinkOffCycle, int color, int alarm) throws jpos.JposException
      Specified by:
      switchOnMultiple in interface jpos.services.LightsService116
      Throws:
      jpos.JposException
    • switchOnPattern

      public void switchOnPattern(int pattern, int alarm) throws jpos.JposException
      Specified by:
      switchOnPattern in interface jpos.services.LightsService116
      Throws:
      jpos.JposException
    • switchOffPattern

      public void switchOffPattern() throws jpos.JposException
      Specified by:
      switchOffPattern in interface jpos.services.LightsService116
      Throws:
      jpos.JposException