Class DmxSequence


  • public class DmxSequence
    extends java.lang.Object
    Represent a sequence of one or more Dmx commands (unit and intensity).

    These are Dmx specific, but not device/interface specific.

    A sequence should consist of addressing (1 or more), and then one or more commands. It can address multiple devices.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DmxSequence.Cmd
      Represent a single Dmx command
      static interface  DmxSequence.Command
      Represent a single Dmx command, which is a unit and intensity pair
    • Constructor Summary

      Constructors 
      Constructor Description
      DmxSequence()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCommand​(int unit, byte value)
      Append a new "do command" operation to the sequence
      DmxSequence.Command getCommand()
      Retrieve the next command in the sequence
      void reset()
      Next getCommand will be the first in the sequence
      • Methods inherited from class java.lang.Object

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

      • addCommand

        public void addCommand​(int unit,
                               byte value)
        Append a new "do command" operation to the sequence
        Parameters:
        unit - 1st id value
        value - 2nd id value
      • reset

        public void reset()
        Next getCommand will be the first in the sequence