Class CipIdentity
- java.lang.Object
-
- org.apache.plc4x.java.eip.readwrite.CommandSpecificDataItem
-
- org.apache.plc4x.java.eip.readwrite.CipIdentity
-
- All Implemented Interfaces:
Message,Serializable
public class CipIdentity extends CommandSpecificDataItem implements Message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCipIdentity.CipIdentityBuilderImpl-
Nested classes/interfaces inherited from class org.apache.plc4x.java.eip.readwrite.CommandSpecificDataItem
CommandSpecificDataItem.CommandSpecificDataItemBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected intdeviceTypeprotected intencapsulationProtocolVersionprotected intproductCodeprotected StringproductNameprotected shortrevisionMajorprotected shortrevisionMinorprotected longserialNumberprotected List<Short>socketAddressAddressprotected intsocketAddressFamilyprotected intsocketAddressPortprotected shortstateprotected intstatusprotected intvendorIdstatic LongZEROES1static LongZEROES2
-
Constructor Summary
Constructors Constructor Description CipIdentity(int encapsulationProtocolVersion, int socketAddressFamily, int socketAddressPort, List<Short> socketAddressAddress, int vendorId, int deviceType, int productCode, short revisionMajor, short revisionMinor, int status, long serialNumber, String productName, short state)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetDeviceType()intgetEncapsulationProtocolVersion()IntegergetItemType()intgetLengthInBits()intgetLengthInBytes()intgetProductCode()StringgetProductName()shortgetRevisionMajor()shortgetRevisionMinor()longgetSerialNumber()List<Short>getSocketAddressAddress()intgetSocketAddressFamily()intgetSocketAddressPort()shortgetState()intgetStatus()intgetVendorId()longgetZeroes1()longgetZeroes2()inthashCode()protected voidserializeCommandSpecificDataItemChild(WriteBuffer writeBuffer)static CommandSpecificDataItem.CommandSpecificDataItemBuilderstaticParseCommandSpecificDataItemBuilder(ReadBuffer readBuffer)StringtoString()-
Methods inherited from class org.apache.plc4x.java.eip.readwrite.CommandSpecificDataItem
serialize, staticParse, staticParse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.plc4x.java.spi.utils.Serializable
serialize
-
-
-
-
Field Detail
-
ZEROES1
public static final Long ZEROES1
-
ZEROES2
public static final Long ZEROES2
-
encapsulationProtocolVersion
protected final int encapsulationProtocolVersion
-
socketAddressFamily
protected final int socketAddressFamily
-
socketAddressPort
protected final int socketAddressPort
-
vendorId
protected final int vendorId
-
deviceType
protected final int deviceType
-
productCode
protected final int productCode
-
revisionMajor
protected final short revisionMajor
-
revisionMinor
protected final short revisionMinor
-
status
protected final int status
-
serialNumber
protected final long serialNumber
-
productName
protected final String productName
-
state
protected final short state
-
-
Constructor Detail
-
CipIdentity
public CipIdentity(int encapsulationProtocolVersion, int socketAddressFamily, int socketAddressPort, List<Short> socketAddressAddress, int vendorId, int deviceType, int productCode, short revisionMajor, short revisionMinor, int status, long serialNumber, String productName, short state)
-
-
Method Detail
-
getItemType
public Integer getItemType()
- Specified by:
getItemTypein classCommandSpecificDataItem
-
getEncapsulationProtocolVersion
public int getEncapsulationProtocolVersion()
-
getSocketAddressFamily
public int getSocketAddressFamily()
-
getSocketAddressPort
public int getSocketAddressPort()
-
getVendorId
public int getVendorId()
-
getDeviceType
public int getDeviceType()
-
getProductCode
public int getProductCode()
-
getRevisionMajor
public short getRevisionMajor()
-
getRevisionMinor
public short getRevisionMinor()
-
getStatus
public int getStatus()
-
getSerialNumber
public long getSerialNumber()
-
getProductName
public String getProductName()
-
getState
public short getState()
-
getZeroes1
public long getZeroes1()
-
getZeroes2
public long getZeroes2()
-
serializeCommandSpecificDataItemChild
protected void serializeCommandSpecificDataItemChild(WriteBuffer writeBuffer) throws SerializationException
- Specified by:
serializeCommandSpecificDataItemChildin classCommandSpecificDataItem- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()
- Specified by:
getLengthInBytesin interfaceMessage- Overrides:
getLengthInBytesin classCommandSpecificDataItem
-
getLengthInBits
public int getLengthInBits()
- Specified by:
getLengthInBitsin interfaceMessage- Overrides:
getLengthInBitsin classCommandSpecificDataItem
-
staticParseCommandSpecificDataItemBuilder
public static CommandSpecificDataItem.CommandSpecificDataItemBuilder staticParseCommandSpecificDataItemBuilder(ReadBuffer readBuffer) throws ParseException
- Throws:
ParseException
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCommandSpecificDataItem
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCommandSpecificDataItem
-
toString
public String toString()
- Overrides:
toStringin classCommandSpecificDataItem
-
-