|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeak.canlight.CANMessage
public class CANMessage
Defines a CAN message.
Constructor Summary | |
---|---|
CANMessage()
Default constructor |
|
CANMessage(int id,
byte type,
byte length,
byte[] data)
Constructs a new message object. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones this message object. |
byte[] |
getData()
Gets the data of this message. |
int |
getID()
Gets the id of this message. |
byte |
getLength()
Gets the length of this message. |
byte |
getType()
Gets the type of this message. |
void |
setData(byte[] data,
byte length)
Sets the data and length of this message. |
void |
setID(int id)
Sets the id of this message. |
void |
setLength(byte length)
Sets the length of this message. |
void |
setType(byte type)
Sets the type of this message. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CANMessage()
public CANMessage(int id, byte type, byte length, byte[] data)
id
- the message idtype
- the message typelength
- the message lengthdata
- the message dataMethod Detail |
---|
public void setID(int id)
id
- the message idpublic void setData(byte[] data, byte length)
data
- the message datalength
- the message lengthpublic void setLength(byte length)
length
- the length of the messagepublic void setType(byte type)
type
- the message typepublic int getID()
public byte[] getData()
public byte getLength()
public byte getType()
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |