Class ConxClass
- 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.core.ConxClass
-
- All Implemented Interfaces:
DataContext
,AttributeHolder
,InstanceHolder
public class ConxClass extends CipClass
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConxClass.CxParams
protected class
ConxClass.CxWatchdog
-
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 Modifier and Type Field Description static java.util.concurrent.atomic.AtomicInteger
newConnectionID
protected AbstractPort
port
protected java.lang.Thread
servicer
-
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
-
-
Constructor Summary
Constructors Constructor Description ConxClass(CipDevice parent, AbstractPort port)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bgPing()
static int
claimConxSerial()
ConxInstance
findConsumer(int connid)
ConxInstance
findTriad(short connSN, short vendor, int origSN)
java.util.List<ConxInstance>
getConnections()
ConxInstance
getInstance(int inst)
AbstractPort
getPort()
static void
returnConxSerial(int cxsn)
void
shutdown()
-
Methods inherited from class com.automation_pros.odva.cip.core.CipClass
getAttribute, getAutoInstanceNumber, getEPathImpl, getInstances, getMaxInstance, getNumInstances, getRevision, getSegment, service
-
Methods inherited from class com.automation_pros.odva.cip.types.CipObject
executor, getChild, 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, getChild, getDisplayName, getEPath, getParent, isShutdown, logger, scheduler
-
Methods inherited from interface com.automation_pros.odva.cip.data.DataContext
fromEnum, getCtxData, getCtxDataOrNull, getTypes, makeHosted, makeUnhosted, toEnum
-
-
-
-
Field Detail
-
newConnectionID
public static final java.util.concurrent.atomic.AtomicInteger newConnectionID
-
servicer
protected java.lang.Thread servicer
-
port
protected final AbstractPort port
-
-
Constructor Detail
-
ConxClass
public ConxClass(CipDevice parent, AbstractPort port)
-
-
Method Detail
-
claimConxSerial
public static int claimConxSerial()
-
returnConxSerial
public static void returnConxSerial(int cxsn)
-
getPort
public AbstractPort getPort()
-
bgPing
public void bgPing()
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceAttributeHolder
- Overrides:
shutdown
in classCipClass
-
findConsumer
public ConxInstance findConsumer(int connid)
-
findTriad
public ConxInstance findTriad(short connSN, short vendor, int origSN)
-
getConnections
public java.util.List<ConxInstance> getConnections()
-
getInstance
public ConxInstance getInstance(int inst)
- Specified by:
getInstance
in interfaceInstanceHolder
- Overrides:
getInstance
in classCipClass
-
-