Class CipDevice
- 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.CipDevice
-
- All Implemented Interfaces:
DataContext
,HasGuid
- Direct Known Subclasses:
CipDeviceMirror
,LgxDevice
public class CipDevice extends CipObject implements HasGuid
-
-
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 AssyMgr
assemblies
protected java.lang.Object
guidLock
protected IdentityMgr
identity
protected java.util.UUID
internalGuid
protected PortMgr
ports
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.UUID
currentGuid()
AssyMgr
getAssemblyMgr()
ConxClass
getConnectionsMgr()
ConxMgrMgr
getConxMgrMgr()
CxManager
getCxManager()
CipDevice
getDevice()
CipObjects are expected to be organized as a tree, typically with a CipDevice at the root.protected CipPath
getEPathImpl()
Retrieve the application path that leads to this object starting at the root (no parent).Identity
getIdentity()
IdentityMgr
getIdentityMgr()
PortMgr
getPortMgr()
void
refreshSettings()
java.util.UUID
resetGuid()
void
shutdown()
-
Methods inherited from class com.automation_pros.odva.cip.types.CipObject
executor, getChild, getDisplayName, getName, getParent, isShutdown, logger, onReplacement, removeChildSymbol, scheduler, service, setChild, setChildSymbol, setName, setParent, toString
-
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, getSegment, 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.data.DataContext
fromEnum, getCtxData, getCtxDataOrNull, getTypes, makeHosted, makeUnhosted, toEnum
-
-
-
-
Field Detail
-
identity
protected IdentityMgr identity
-
assemblies
protected AssyMgr assemblies
-
ports
protected PortMgr ports
-
guidLock
protected java.lang.Object guidLock
-
internalGuid
protected java.util.UUID internalGuid
-
-
Constructor Detail
-
CipDevice
protected CipDevice(java.lang.String name)
-
CipDevice
public CipDevice(EKeySeg ekey, int serial, java.lang.String name)
-
-
Method Detail
-
currentGuid
public java.util.UUID currentGuid()
- Specified by:
currentGuid
in interfaceHasGuid
-
getDevice
public CipDevice getDevice()
Description copied from class:CipObject
CipObjects are expected to be organized as a tree, typically with a CipDevice at the root. (CipDevices can have a parent too, if an implementer chooses to represent a virtual chassis that way.)By default, any CipObject will simply ask its parent for the device if asked for the device. A CipDevice returns itself.
-
getIdentityMgr
public IdentityMgr getIdentityMgr()
-
getIdentity
public Identity getIdentity()
-
getAssemblyMgr
public AssyMgr getAssemblyMgr()
-
getPortMgr
public PortMgr getPortMgr()
-
getConnectionsMgr
public ConxClass getConnectionsMgr()
-
getConxMgrMgr
public ConxMgrMgr getConxMgrMgr()
-
getCxManager
public CxManager getCxManager()
-
getEPathImpl
protected CipPath getEPathImpl()
Description copied from class:CipTree
Retrieve the application path that leads to this object starting at the root (no parent). Will be called by getEPath() and the result cached by default.Root elements must override this to return an empty CipPath.
- Overrides:
getEPathImpl
in classCipTree
- Returns:
-
refreshSettings
public void refreshSettings()
-
-