Class S7AddressAny
- java.lang.Object
-
- org.apache.plc4x.java.s7.readwrite.S7Address
-
- org.apache.plc4x.java.s7.readwrite.S7AddressAny
-
- All Implemented Interfaces:
Message,Serializable
public class S7AddressAny extends S7Address implements Message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classS7AddressAny.S7AddressAnyBuilderImpl-
Nested classes/interfaces inherited from class org.apache.plc4x.java.s7.readwrite.S7Address
S7Address.S7AddressBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected MemoryAreaareaprotected bytebitAddressprotected intbyteAddressprotected intdbNumberprotected intnumberOfElementsprotected TransportSizetransportSize
-
Constructor Summary
Constructors Constructor Description S7AddressAny(TransportSize transportSize, int numberOfElements, int dbNumber, MemoryArea area, int byteAddress, byte bitAddress)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ShortgetAddressType()MemoryAreagetArea()bytegetBitAddress()intgetByteAddress()intgetDbNumber()intgetLengthInBits()intgetLengthInBytes()intgetNumberOfElements()TransportSizegetTransportSize()inthashCode()protected voidserializeS7AddressChild(WriteBuffer writeBuffer)static S7Address.S7AddressBuilderstaticParseS7AddressBuilder(ReadBuffer readBuffer)StringtoString()-
Methods inherited from class org.apache.plc4x.java.s7.readwrite.S7Address
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
-
transportSize
protected final TransportSize transportSize
-
numberOfElements
protected final int numberOfElements
-
dbNumber
protected final int dbNumber
-
area
protected final MemoryArea area
-
byteAddress
protected final int byteAddress
-
bitAddress
protected final byte bitAddress
-
-
Constructor Detail
-
S7AddressAny
public S7AddressAny(TransportSize transportSize, int numberOfElements, int dbNumber, MemoryArea area, int byteAddress, byte bitAddress)
-
-
Method Detail
-
getAddressType
public Short getAddressType()
- Specified by:
getAddressTypein classS7Address
-
getTransportSize
public TransportSize getTransportSize()
-
getNumberOfElements
public int getNumberOfElements()
-
getDbNumber
public int getDbNumber()
-
getArea
public MemoryArea getArea()
-
getByteAddress
public int getByteAddress()
-
getBitAddress
public byte getBitAddress()
-
serializeS7AddressChild
protected void serializeS7AddressChild(WriteBuffer writeBuffer) throws SerializationException
- Specified by:
serializeS7AddressChildin classS7Address- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()
- Specified by:
getLengthInBytesin interfaceMessage- Overrides:
getLengthInBytesin classS7Address
-
getLengthInBits
public int getLengthInBits()
- Specified by:
getLengthInBitsin interfaceMessage- Overrides:
getLengthInBitsin classS7Address
-
staticParseS7AddressBuilder
public static S7Address.S7AddressBuilder staticParseS7AddressBuilder(ReadBuffer readBuffer) throws ParseException
- Throws:
ParseException
-
-