Package com.automation_pros.odva.encap
Class Register
- java.lang.Object
-
- com.automation_pros.odva.encap.Encap
-
- com.automation_pros.odva.encap.Register
-
- All Implemented Interfaces:
CpfWrapper
public class Register extends Encap
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Register.Decoder
Decode bytes expected to contain one encapsulated Ethernet/IP packet-
Nested classes/interfaces inherited from class com.automation_pros.odva.encap.Encap
Encap.EncapException
-
-
Field Summary
-
Fields inherited from class com.automation_pros.odva.encap.Encap
CMD_CANCEL, CMD_LIST_ID, CMD_LIST_IFACE, CMD_LIST_SVC, CMD_LIST_TARG, CMD_NOP, CMD_REGISTER, CMD_SEND_RR, CMD_SEND_UNIT, CMD_STATUS, CMD_UNREGISTER, command, context, decodeTS, extralen, options, session, ST_EBUSY, ST_ECMD, ST_EDATA, ST_ELENGTH, ST_EPERM, ST_EREVISION, ST_ESESSION, ST_SUCCESS, status
-
-
Constructor Summary
Constructors Constructor Description Register(short version, short flags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getFlags()
short
getVersion()
boolean
isValid()
void
putPayload(java.nio.ByteBuffer dest)
void
setFlags(short flags)
void
setPayload(java.nio.ByteBuffer source)
void
setVersion(short version)
-
Methods inherited from class com.automation_pros.odva.encap.Encap
decode, decode, getAddressItem, getCommand, getContext, getDataItem, getError, getExtralen, getItem, getItemCount, getOptions, getSession, getStatus, putBytes, registerDecoder, setBytes, setContext, setError, setSession, setStatus, toString, writeBytes, writePayload
-
-
-
-
Method Detail
-
putPayload
public void putPayload(java.nio.ByteBuffer dest)
- Overrides:
putPayload
in classEncap
-
setPayload
public void setPayload(java.nio.ByteBuffer source)
- Overrides:
setPayload
in classEncap
-
getVersion
public short getVersion()
-
setVersion
public void setVersion(short version)
-
getFlags
public short getFlags()
-
setFlags
public void setFlags(short flags)
-
-