Class BridgeOutConx
- java.lang.Object
-
- All Implemented Interfaces:
DataContext
,CipReplyConsumer
,AppLinkBase
,AppOwner
,AppProducer
,AttributeHolder
,LinkConsumer
,java.lang.Comparable<CipInstance>
public class BridgeOutConx extends ConxInstance
-
-
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 BridgeOutConx(ConxClass parent, FwdOpenReq request, FwdOpenRsp reply)
BridgeOutConx(InstanceSeg seg, ConxClass parent, FwdOpenReq outreq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(CipReply t)
Unlike other connections, the reply is accepted here in the transport before passing on to the actual requester.boolean
isOrigin()
Generic CIP connections are either originators or targets.-
Methods inherited from class com.automation_pros.odva.cip.core.ConxInstance
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
-
BridgeOutConx
public BridgeOutConx(InstanceSeg seg, ConxClass parent, FwdOpenReq outreq)
-
BridgeOutConx
public BridgeOutConx(ConxClass parent, FwdOpenReq request, FwdOpenRsp reply)
-
-
Method Detail
-
accept
public void accept(CipReply t)
Unlike other connections, the reply is accepted here in the transport before passing on to the actual requester. Because this will be the connection in the reply. The transport is responsible for setting the link producer, and the requester will set the application consumer.- Specified by:
accept
in interfaceCipReplyConsumer
- Overrides:
accept
in classConxInstance
- Parameters:
t
- Any CipReply. If a Forward Open Response, apply the final connection parameters.
-
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:
-
-