Class AssyMgr
- 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.CipClass
-
- com.automation_pros.odva.cip.application.AssyMgr
-
- All Implemented Interfaces:
DataContext
,AttributeHolder
,InstanceHolder
public class AssyMgr extends CipClass
-
-
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
-
Nested classes/interfaces inherited from interface com.automation_pros.odva.cip.types.InstanceHolder
InstanceHolder.InstanceHolderDelegate, InstanceHolder.MaxInstData, InstanceHolder.NumInstData
-
-
Field Summary
-
Fields inherited from class com.automation_pros.odva.cip.core.CipClass
attr_all, classCode, delegate, mxclsattr, mxinstattr, revision
-
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.List<Assembly>
getAssemblies()
int
getAutoInstanceNumber()
Instance holders may have specific rules for instance IDs for dynamically created instances (null InstanceSeg).CipObject
getChild(PathSegment seg)
Lookup a child for a particular segment.Assembly
getInstance(int inst)
void
service(CipObject appContext, CipRequest request, int nesting)
Execute a CIP service on the object, using the request supplied.-
Methods inherited from class com.automation_pros.odva.cip.core.CipClass
getAttribute, getEPathImpl, getInstances, getMaxInstance, getNumInstances, getRevision, getSegment, shutdown
-
Methods inherited from class com.automation_pros.odva.cip.types.CipObject
executor, getDevice, getDisplayName, getName, getParent, isShutdown, logger, onReplacement, removeChildSymbol, scheduler, 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, 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, getDisplayName, getEPath, getParent, isShutdown, logger, scheduler
-
Methods inherited from interface com.automation_pros.odva.cip.data.DataContext
fromEnum, getCtxData, getCtxDataOrNull, getTypes, makeHosted, makeUnhosted, toEnum
-
-
-
-
Constructor Detail
-
AssyMgr
public AssyMgr(CipDevice parent)
-
-
Method Detail
-
getChild
public CipObject getChild(PathSegment seg)
Description copied from class:CipTree
Lookup a child for a particular segment.- Specified by:
getChild
in interfaceAttributeHolder
- Overrides:
getChild
in classCipObject
-
service
public void service(CipObject appContext, CipRequest request, int nesting)
Description copied from class:CipObject
Execute a CIP service on the object, using the request supplied. Supply a reply to the request and/or throw an appropriate CipException. Replies are not required before this routine returns.
Direct service() calls MUST NOT BLOCK. Any operation that will take any significant time must be delegated to an executor. "Significant" may vary by application, but typically would be in the fractional millisecond range.
- Specified by:
service
in interfaceAttributeHolder
- Overrides:
service
in classCipClass
- Parameters:
appContext
- Root object for application path lookups. Generally aMirrored Device
from a port context.request
- What to do and where to reply. Services to be handled by child objects are to be passed to their service() method with nesting+1.nesting
- How many leading path segments items to skip when processing this request. Avoids copying the balance of an application path into a new request when passing a request to a child object.
-
getAutoInstanceNumber
public int getAutoInstanceNumber()
Description copied from interface:InstanceHolder
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.- Specified by:
getAutoInstanceNumber
in interfaceInstanceHolder
- Overrides:
getAutoInstanceNumber
in classCipClass
- Returns:
-
getInstance
public Assembly getInstance(int inst)
- Specified by:
getInstance
in interfaceInstanceHolder
- Overrides:
getInstance
in classCipClass
-
getAssemblies
public java.util.List<Assembly> getAssemblies()
-
-