Class CANOpenFrame
- java.lang.Object
-
- org.apache.plc4x.java.canopen.readwrite.CANOpenFrame
-
- All Implemented Interfaces:
Message,Serializable
public class CANOpenFrame extends Object implements Message
-
-
Field Summary
Fields Modifier and Type Field Description static ByteALIGNMENTprotected shortnodeIdprotected CANOpenPayloadpayloadprotected CANOpenServiceservice
-
Constructor Summary
Constructors Constructor Description CANOpenFrame(short nodeId, CANOpenService service, CANOpenPayload payload)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)bytegetAlignment()intgetLengthInBits()intgetLengthInBytes()shortgetNodeId()CANOpenPayloadgetPayload()CANOpenServicegetService()inthashCode()voidserialize(WriteBuffer writeBuffer)static CANOpenFramestaticParse(ReadBuffer readBuffer)static CANOpenFramestaticParse(ReadBuffer readBuffer, Object... args)StringtoString()
-
-
-
Field Detail
-
ALIGNMENT
public static final Byte ALIGNMENT
-
nodeId
protected final short nodeId
-
service
protected final CANOpenService service
-
payload
protected final CANOpenPayload payload
-
-
Constructor Detail
-
CANOpenFrame
public CANOpenFrame(short nodeId, CANOpenService service, CANOpenPayload payload)
-
-
Method Detail
-
getNodeId
public short getNodeId()
-
getService
public CANOpenService getService()
-
getPayload
public CANOpenPayload getPayload()
-
getAlignment
public byte getAlignment()
-
serialize
public void serialize(WriteBuffer writeBuffer) throws SerializationException
- Specified by:
serializein interfaceSerializable- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()
- Specified by:
getLengthInBytesin interfaceMessage
-
getLengthInBits
public int getLengthInBits()
- Specified by:
getLengthInBitsin interfaceMessage
-
staticParse
public static CANOpenFrame staticParse(ReadBuffer readBuffer, Object... args) throws ParseException
- Throws:
ParseException
-
staticParse
public static CANOpenFrame staticParse(ReadBuffer readBuffer) throws ParseException
- Throws:
ParseException
-
-