public class Command extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
commandId |
protected int |
commandLength |
protected int |
commandStatus |
protected int |
sequenceNumber |
Constructor and Description |
---|
Command()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getCommandId()
Get the command_id.
|
String |
getCommandIdAsHex()
Get the command_id as hex string value.
|
int |
getCommandLength()
Get the command_length.
|
int |
getCommandStatus()
Get the command_status.
|
String |
getCommandStatusAsHex()
Get the command_status as hex string.
|
int |
getSequenceNumber()
Get the sequence_number.
|
int |
hashCode() |
void |
setCommandId(int commandId)
Set the command_id.
|
void |
setCommandLength(int commandLength)
Ser the command_length.
|
void |
setCommandStatus(int commandStatus)
Set value of command_status.
|
void |
setSequenceNumber(int sequenceNumber)
Set value of sequence_number.
|
String |
toString() |
protected int commandLength
protected int commandId
protected int commandStatus
protected int sequenceNumber
public int getCommandId()
public String getCommandIdAsHex()
public void setCommandId(int commandId)
commandId
- is the new value of command_id..public int getCommandLength()
public void setCommandLength(int commandLength)
commandLength
- is the new value of command_length.public int getCommandStatus()
public String getCommandStatusAsHex()
public void setCommandStatus(int commandStatus)
commandStatus
- is the new value of command_status.public int getSequenceNumber()
public void setSequenceNumber(int sequenceNumber)
sequenceNumber
- is the new value of sequece_number.