Class COTPParameter
- java.lang.Object
-
- org.apache.plc4x.java.s7.readwrite.COTPParameter
-
- All Implemented Interfaces:
Message,Serializable
- Direct Known Subclasses:
COTPParameterCalledTsap,COTPParameterCallingTsap,COTPParameterChecksum,COTPParameterDisconnectAdditionalInformation,COTPParameterTpduSize
public abstract class COTPParameter extends Object implements Message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCOTPParameter.COTPParameterBuilder
-
Constructor Summary
Constructors Constructor Description COTPParameter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetLengthInBits()intgetLengthInBytes()abstract ShortgetParameterType()inthashCode()voidserialize(WriteBuffer writeBuffer)protected abstract voidserializeCOTPParameterChild(WriteBuffer writeBuffer)static COTPParameterstaticParse(ReadBuffer readBuffer, Object... args)static COTPParameterstaticParse(ReadBuffer readBuffer, Short rest)StringtoString()
-
-
-
Method Detail
-
getParameterType
public abstract Short getParameterType()
-
serializeCOTPParameterChild
protected abstract void serializeCOTPParameterChild(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 COTPParameter staticParse(ReadBuffer readBuffer, Object... args) throws ParseException
- Throws:
ParseException
-
staticParse
public static COTPParameter staticParse(ReadBuffer readBuffer, Short rest) throws ParseException
- Throws:
ParseException
-
-