public class DataChannelDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
kByteLength |
static int |
kChannelID |
static int |
kMemoryRegister |
Constructor and Description |
---|
DataChannelDescriptor(int channelID)
standard constructor for the DeviceOperator class
|
DataChannelDescriptor(int channelID,
int memReg,
int byteLen)
standard constructor for the DeviceOperator class
|
Modifier and Type | Method and Description |
---|---|
int |
getByteLength()
gets the byte length
|
int |
getChannelID()
returns its channel
|
int |
getMemoryRegister()
returns a specific memory register
|
void |
list()
list the record
|
void |
setByteLength(int itsByteLength)
sets the byte length
|
void |
setChannelID(int channelID)
sets a channel
|
void |
setMemoryRegister(int memoryRegister)
specifies a memory register
|
java.lang.String |
toString()
report the record as a string
|
public static final int kChannelID
public static final int kMemoryRegister
public static final int kByteLength
public DataChannelDescriptor(int channelID)
channelID
- the channel to usepublic DataChannelDescriptor(int channelID, int memReg, int byteLen)
channelID
- the channel to usememReg
- the data register to usebyteLen
- the length of the data valuepublic int getChannelID()
public void setChannelID(int channelID)
channelID
- the channel to usepublic int getMemoryRegister()
public void setMemoryRegister(int memoryRegister)
memoryRegister
- memory register to usepublic java.lang.String toString()
toString
in class java.lang.Object
public void list()
public int getByteLength()
public void setByteLength(int itsByteLength)
itsByteLength
- the byte lengthRH, 2017