Class FirmataCommand
- java.lang.Object
-
- org.apache.plc4x.java.firmata.readwrite.FirmataCommand
-
- All Implemented Interfaces:
Message,Serializable
- Direct Known Subclasses:
FirmataCommandProtocolVersion,FirmataCommandSetDigitalPinValue,FirmataCommandSetPinMode,FirmataCommandSysex,FirmataCommandSystemReset
public abstract class FirmataCommand extends Object implements Message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFirmataCommand.FirmataCommandBuilder
-
Constructor Summary
Constructors Constructor Description FirmataCommand()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)abstract BytegetCommandCode()intgetLengthInBits()intgetLengthInBytes()inthashCode()voidserialize(WriteBuffer writeBuffer)protected abstract voidserializeFirmataCommandChild(WriteBuffer writeBuffer)static FirmataCommandstaticParse(ReadBuffer readBuffer, Boolean response)static FirmataCommandstaticParse(ReadBuffer readBuffer, Object... args)StringtoString()
-
-
-
Method Detail
-
getCommandCode
public abstract Byte getCommandCode()
-
serializeFirmataCommandChild
protected abstract void serializeFirmataCommandChild(WriteBuffer writeBuffer) throws SerializationException
- Throws:
SerializationException
-
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 FirmataCommand staticParse(ReadBuffer readBuffer, Object... args) throws ParseException
- Throws:
ParseException
-
staticParse
public static FirmataCommand staticParse(ReadBuffer readBuffer, Boolean response) throws ParseException
- Throws:
ParseException
-
-