Class DmxSequence

java.lang.Object
jmri.jmrix.powerline.DmxSequence

public class DmxSequence extends 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.

  • Constructor Details

  • Method Details

    • 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
    • getCommand

      Retrieve the next command in the sequence
      Returns:
      single DMx cmd