Class Identity
- java.lang.Object
-
- com.automation_pros.odva.cip.types.CipTree
-
- com.automation_pros.odva.cip.types.CipTreeCtx
-
- com.automation_pros.odva.cip.types.CipObject
-
- com.automation_pros.odva.cip.core.CipInstance
-
- com.automation_pros.odva.cip.core.Identity
-
- All Implemented Interfaces:
DataContext
,AttributeHolder
,java.lang.Comparable<CipInstance>
public class Identity extends CipInstance
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.types.CipObject
CipObject.FutureMultipleReply
-
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.types.CipTree
CipTree.ChildMap
-
-
Field Summary
Fields Modifier and Type Field Description protected CipUINT
device
static CipPath
IDENTITYPATH
protected CipUSINT
majmin
protected CipShortSTRING
prodname
protected CipUINT
product
protected CipUDINT
serial
protected CipUSINT
state
protected CipUINT
status
protected CipUINT
vendor
-
Fields inherited from class com.automation_pros.odva.cip.core.CipInstance
attr_all
-
Fields inherited from class com.automation_pros.odva.cip.types.CipTree
children, objEPath, parent, segment
-
Fields inherited from interface com.automation_pros.odva.cip.data.DataContext
emptyContext
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Identity(IdentityMgr parent, int inst, EKeySeg key, int ser, java.lang.String name)
protected
Identity(InstanceSeg seg, IdentityMgr parent, java.lang.String name)
Identity(java.nio.ByteBuffer source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkKey(EKeySeg requestedKey)
Determine if a given electronic key segment is acceptable for this device.short
getDeviceId()
byte
getMajor()
byte
getMinor()
IdentityMgr
getParent()
short
getProduct()
java.lang.String
getProductName()
int
getSerial()
byte
getState()
short
getStatus()
short
getVendor()
void
setSerial(int serial)
void
setState(byte state)
void
setStatus(short status)
-
Methods inherited from class com.automation_pros.odva.cip.core.CipInstance
compareTo, getAttribute, getEPathImpl, getSegment, isPrivate, number, service, setParent, toString
-
Methods inherited from class com.automation_pros.odva.cip.types.CipObject
executor, getChild, getDevice, getDisplayName, getName, isShutdown, logger, onReplacement, removeChildSymbol, scheduler, setChild, setChildSymbol, setName, shutdown
-
Methods inherited from class com.automation_pros.odva.cip.types.CipTreeCtx
getCtxDataImpl, getNamedDef, getParentDataCtx, getTypeByCRC, getTypeByName, getTypesImpl
-
Methods inherited from class com.automation_pros.odva.cip.types.CipTree
cleanup, entrySet, follow, getChildren, getEPath, keySet, removeChild, setSegment
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.automation_pros.odva.cip.types.AttributeHolder
executor, getChild, getDisplayName, getEPath, isShutdown, logger, scheduler, shutdown
-
Methods inherited from interface com.automation_pros.odva.cip.data.DataContext
fromEnum, getCtxData, getCtxDataOrNull, getTypes, makeHosted, makeUnhosted, toEnum
-
-
-
-
Field Detail
-
IDENTITYPATH
public static final CipPath IDENTITYPATH
-
vendor
protected CipUINT vendor
-
device
protected CipUINT device
-
product
protected CipUINT product
-
majmin
protected CipUSINT majmin
-
status
protected CipUINT status
-
serial
protected CipUDINT serial
-
prodname
protected CipShortSTRING prodname
-
state
protected CipUSINT state
-
-
Constructor Detail
-
Identity
protected Identity(InstanceSeg seg, IdentityMgr parent, java.lang.String name)
-
Identity
protected Identity(IdentityMgr parent, int inst, EKeySeg key, int ser, java.lang.String name)
-
Identity
public Identity(java.nio.ByteBuffer source)
-
-
Method Detail
-
getStatus
public short getStatus()
-
setStatus
public void setStatus(short status)
-
getState
public byte getState()
-
setState
public void setState(byte state)
-
getVendor
public short getVendor()
-
getDeviceId
public short getDeviceId()
-
getProduct
public short getProduct()
-
getMajor
public byte getMajor()
-
getMinor
public byte getMinor()
-
getSerial
public int getSerial()
-
setSerial
public void setSerial(int serial)
-
getProductName
public java.lang.String getProductName()
-
checkKey
public boolean checkKey(EKeySeg requestedKey)
Determine if a given electronic key segment is acceptable for this device. By default, compatible mode requires an exact match or requests an earlier version of an otherwise exact match.Devices that can emulate other devices must override this method with the necessary comparisons.
- Parameters:
requestedKey
-- Returns:
-
getParent
public IdentityMgr getParent()
- Specified by:
getParent
in interfaceAttributeHolder
- Overrides:
getParent
in classCipObject
-
-