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 AssyMgrassembliesprotected java.lang.ObjectguidLockprotected IdentityMgridentityprotected java.util.UUIDinternalGuidprotected PortMgrports-
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.UUIDcurrentGuid()AssyMgrgetAssemblyMgr()ConxClassgetConnectionsMgr()ConxMgrMgrgetConxMgrMgr()CxManagergetCxManager()CipDevicegetDevice()CipObjects are expected to be organized as a tree, typically with a CipDevice at the root.protected CipPathgetEPathImpl()Retrieve the application path that leads to this object starting at the root (no parent).IdentitygetIdentity()IdentityMgrgetIdentityMgr()PortMgrgetPortMgr()voidrefreshSettings()java.util.UUIDresetGuid()voidshutdown()-
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:
currentGuidin interfaceHasGuid
-
getDevice
public CipDevice getDevice()
Description copied from class:CipObjectCipObjects 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:CipTreeRetrieve 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:
getEPathImplin classCipTree- Returns:
-
refreshSettings
public void refreshSettings()
-
-