public class Transmission
extends java.lang.Object
Constructor and Description |
---|
Transmission(short sourceAddr,
short destAddr,
byte[] buf)
Constructor for Transmission.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuf()
Returns a reference to the buffer held by the Transmission instance.
|
short |
getDestAddr() |
short |
getSourceAddr() |
void |
setBuf(byte[] buf)
Takes a reference to an array of bytes and sets it to be the buffer used by the
Transmission instance.
|
void |
setDestAddr(short destAddr) |
void |
setSourceAddr(short sourceAddr) |
public Transmission(short sourceAddr, short destAddr, byte[] buf)
sourceAddr
- The transmission's source addressdestAddr
- The transmission's destination addressbuf
- The data carried by the transmissionpublic byte[] getBuf()
public void setBuf(byte[] buf)
buf
, it
links to it (shares it).buf
- the data buffer to setpublic short getDestAddr()
public void setDestAddr(short destAddr)
destAddr
- the destination address to setpublic short getSourceAddr()
public void setSourceAddr(short sourceAddr)
sourceAddr
- the source address to set