Class LocalConx
- java.lang.Object
-
- All Implemented Interfaces:
DataContext
,CipReplyConsumer
,AppLinkBase
,AppOwner
,AppProducer
,AttributeHolder
,LinkConsumer
,java.lang.Comparable<CipInstance>
- Direct Known Subclasses:
IOConx
,MsgTargetConx
public abstract class LocalConx extends ConxInstance
This class for local connections sits in the port that has the final target. The local connection's internal peer can be any kind of connection, but must take the link side.
-
-
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 inherited from class com.automation_pros.odva.cip.core.ConxInstance
appConsumer, connSN, consapi, consid, conssize, consumer, cxstate, deadline, dirtrigcls, DNconsid, DNmsggrps, DNprodid, insttype, linkProducer, O2Tapi, O2TconnID, O2TconnIDrq, O2Tparams, O2Trpi, oport, origSN, pktrate, prodapi, prodid, prodinh, prodsize, producer, T2Oapi, T2OconnID, T2OconnIDrq, T2Oparams, T2Orpi, timeoutMult, tport, vendor, WDTDeadline, WDTnsec, wdtoact
-
Fields inherited from class com.automation_pros.odva.cip.core.CipInstance
attr_all
-
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 LocalConx(ConxClass parent, FwdOpenReq request, java.lang.String name)
LocalConx(InstanceSeg inst, ConxClass parent, FwdOpenReq outreq, java.lang.String name)
Unlike other connections, which may have unknown delays in remote processing, local connections either succeed or fail synchronously.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isOrigin()
Generic CIP connections are either originators or targets.-
Methods inherited from class com.automation_pros.odva.cip.core.ConxInstance
accept, appProduce, disconnect, getConsumer, getConsumerID, getConsumerSize, getConsumeRTF, getConxData, getCXState, getDeadline, getDirTrigCls, getDNConsumerID, getDNMsgGroups, getDNProducerID, getInhibit, getInstanceType, getPacketRate, getParent, getProducer, getProducerID, getProducerSize, getProduceRTF, getRealTimeMode, isDisconnected, linkConsume, setRealTimeMode, shutdown, toString
-
Methods inherited from class com.automation_pros.odva.cip.core.CipInstance
compareTo, getAttribute, getEPathImpl, getSegment, isPrivate, number, service, setParent
-
Methods inherited from class com.automation_pros.odva.cip.types.CipObject
executor, getChild, getDevice, getDisplayName, getName, isShutdown, logger, onReplacement, removeChildSymbol, scheduler, setChild, setChildSymbol, setName
-
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, isShutdown, logger, scheduler
-
Methods inherited from interface com.automation_pros.odva.cip.data.DataContext
fromEnum, getCtxData, getCtxDataOrNull, getTypes, makeHosted, makeUnhosted, toEnum
-
-
-
-
Constructor Detail
-
LocalConx
public LocalConx(InstanceSeg inst, ConxClass parent, FwdOpenReq outreq, java.lang.String name)
Unlike other connections, which may have unknown delays in remote processing, local connections either succeed or fail synchronously.- Parameters:
inst
- Instance segment, or null to auto-select when parent is presentparent
-outreq
-
-
LocalConx
public LocalConx(ConxClass parent, FwdOpenReq request, java.lang.String name)
-
-
Method Detail
-
isOrigin
public boolean isOrigin()
Description copied from class:ConxInstance
Generic CIP connections are either originators or targets. In messaging connections, originators produce requests while targets produce replies.Within this protocol implementation, originators produce on the link side with the O2T timing and parameters, and consume on the link side with the T2O timing and parameters.
When a connection is obtained from a successful Forward Open Response, the recipient must examine whether it is an originator or a target. If an originator, the recipient must assign to the appConsumer field and use the appProduce() method. If a target, the recipient must assign to the linkProducer field and use the linkConsume() method.
- Specified by:
isOrigin
in classConxInstance
- Returns:
-
-