be.lassi.lanbox.udp
Class DmxMessage
java.lang.Object
be.lassi.lanbox.udp.DmxMessage
- All Implemented Interfaces:
- Message
public class DmxMessage
- extends java.lang.Object
- implements Message
Information about one buffer in a UDP packet that is received
from the Lanbox.
Constructor Summary |
DmxMessage(int bufferId,
int channelOffset,
int[] values)
Constructs a new buffer. |
Method Summary |
void |
append(java.lang.StringBuilder b)
Appends a textual representation of this message to given
string builder. |
int |
getBufferId()
Gets the buffer identifier |
int |
getChannelOffset()
Gets the index of the first channel. |
int[] |
getValues()
Gets the level values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DmxMessage
public DmxMessage(int bufferId,
int channelOffset,
int[] values)
- Constructs a new buffer.
- Parameters:
bufferId
- the buffer identifierchannelOffset
- the index of the first channel in the buffervalues
- the level values
append
public void append(java.lang.StringBuilder b)
- Description copied from interface:
Message
- Appends a textual representation of this message to given
string builder.
- Specified by:
append
in interface Message
- Parameters:
b
- the string builder to append to
getBufferId
public int getBufferId()
- Gets the buffer identifier
- Returns:
- the buffer identifier
getChannelOffset
public int getChannelOffset()
- Gets the index of the first channel.
- Returns:
- the index of the first channel
getValues
public int[] getValues()
- Gets the level values.
- Returns:
- the level values