Class InstanceSegment
- java.lang.Object
-
- org.apache.plc4x.java.eip.readwrite.InstanceSegment
-
- All Implemented Interfaces:
Message,Serializable
public class InstanceSegment extends Object implements Message
-
-
Field Summary
Fields Modifier and Type Field Description protected shortinstanceprotected bytelogicalSegmentFormatprotected bytelogicalSegmentTypeprotected bytepathSegmentType
-
Constructor Summary
Constructors Constructor Description InstanceSegment(byte pathSegmentType, byte logicalSegmentType, byte logicalSegmentFormat, short instance)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)shortgetInstance()intgetLengthInBits()intgetLengthInBytes()bytegetLogicalSegmentFormat()bytegetLogicalSegmentType()bytegetPathSegmentType()inthashCode()voidserialize(WriteBuffer writeBuffer)static InstanceSegmentstaticParse(ReadBuffer readBuffer)static InstanceSegmentstaticParse(ReadBuffer readBuffer, Object... args)StringtoString()
-
-
-
Method Detail
-
getPathSegmentType
public byte getPathSegmentType()
-
getLogicalSegmentType
public byte getLogicalSegmentType()
-
getLogicalSegmentFormat
public byte getLogicalSegmentFormat()
-
getInstance
public short getInstance()
-
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 InstanceSegment staticParse(ReadBuffer readBuffer, Object... args) throws ParseException
- Throws:
ParseException
-
staticParse
public static InstanceSegment staticParse(ReadBuffer readBuffer) throws ParseException
- Throws:
ParseException
-
-