public class ArtDmxPacket extends ArtNetPacket
ART_EXT_HEADER, data, HEADER, logger, PROTOCOL_VERSION, type
Constructor and Description |
---|
ArtDmxPacket() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getDmxData() |
int |
getLength()
Returns the actually used length of the data buffer.
|
int |
getNumChannels() |
int |
getSequenceID() |
int |
getSubnetID() |
int |
getUniverseID() |
boolean |
parse(byte[] raw)
Parses the given byte array into semantic values and populates type
specific fields for each packet type.
|
void |
setDMX(byte[] dmxData,
int numChannels) |
void |
setNumChannels(int numChannels) |
void |
setSequenceID(int id) |
void |
setSubnetID(int subnetID) |
void |
setUniverse(int subnetID,
int universeID) |
void |
setUniverseID(int universeID) |
getData, getType, setData, setData, setHeader, setProtocol, toString
public byte[] getDmxData()
public int getLength()
ArtNetPacket
getLength
in class ArtNetPacket
public int getNumChannels()
public int getSequenceID()
public int getSubnetID()
public int getUniverseID()
public boolean parse(byte[] raw)
ArtNetPacket
parse
in class ArtNetPacket
raw
- Raw data.public void setDMX(byte[] dmxData, int numChannels)
public void setNumChannels(int numChannels)
numChannels
- the number of DMX channels to setpublic void setSequenceID(int id)
public void setSubnetID(int subnetID)
subnetID
- the subnetID to setpublic void setUniverse(int subnetID, int universeID)
public void setUniverseID(int universeID)
universeID
- the universeID to set