Interface InstanceHolder
-
- All Known Implementing Classes:
AssyMgr
,CipClass
,CipClassMirror
,ConxClass
,ConxMgrMgr
,EthernetMgr
,IdentityMgr
,LgxChangeMgr
,LgxTagMgr
,LgxTplMgr
,MsgRouterMgr
,ParamMgr
,PortMgr
,TcpIp
public interface InstanceHolder
Implemented by CipClass, but may also be implemented by any CipObject that can contain CipInstances as children.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
InstanceHolder.InstanceHolderDelegate
static class
InstanceHolder.MaxInstData
static class
InstanceHolder.NumInstData
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAutoInstanceNumber()
Instance holders may have specific rules for instance IDs for dynamically created instances (null InstanceSeg).CipInstance
getInstance(int inst)
int[]
getInstances()
int
getMaxInstance()
int
getNumInstances()
-
-
-
Method Detail
-
getAutoInstanceNumber
int getAutoInstanceNumber()
Instance holders may have specific rules for instance IDs for dynamically created instances (null InstanceSeg). The delegate uses the lowest open instance number. The caller should synchronize on the holder's public "children" field before calling this until after setting the child's segment.- Returns:
-
getMaxInstance
int getMaxInstance()
-
getNumInstances
int getNumInstances()
-
getInstances
int[] getInstances()
-
getInstance
CipInstance getInstance(int inst)
-
-