Package jmri.jmrix.powerline
Class DmxSequence
- java.lang.Object
-
- jmri.jmrix.powerline.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 classDmxSequence.CmdRepresent a single Dmx commandstatic interfaceDmxSequence.CommandRepresent 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 voidaddCommand(int unit, byte value)Append a new "do command" operation to the sequenceDmxSequence.CommandgetCommand()Retrieve the next command in the sequencevoidreset()Next getCommand will be the first in the sequence
-
-
-
Constructor Detail
-
DmxSequence
public DmxSequence()
-
-
Method Detail
-
addCommand
public void addCommand(int unit, byte value)
Append a new "do command" operation to the sequence- Parameters:
unit- 1st id valuevalue- 2nd id value
-
reset
public void reset()
Next getCommand will be the first in the sequence
-
getCommand
public DmxSequence.Command getCommand()
Retrieve the next command in the sequence- Returns:
- single DMx cmd
-
-