Package jmri.jmrix.powerline
Class DmxSequence
java.lang.Object
jmri.jmrix.powerline.DmxSequence
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 ClassesModifier and TypeClassDescriptionstatic classRepresent a single Dmx commandstatic interfaceRepresent a single Dmx command, which is a unit and intensity pair -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommand(int unit, byte value) Append a new "do command" operation to the sequenceRetrieve the next command in the sequencevoidreset()Next getCommand will be the first in the sequence
-
Constructor Details
-
DmxSequence
public DmxSequence()
-
-
Method Details
-
addCommand
Append a new "do command" operation to the sequence- Parameters:
unit- 1st id valuevalue- 2nd id value
-
reset
Next getCommand will be the first in the sequence -
getCommand
Retrieve the next command in the sequence- Returns:
- single DMx cmd
-