Class BridgeInConx
- java.lang.Object
-
- All Implemented Interfaces:
DataContext
,CipReplyConsumer
,AppLinkBase
,AppOwner
,AppProducer
,AttributeHolder
,LinkConsumer
,java.lang.Comparable<CipInstance>
public class BridgeInConx extends ConxInstance
This class for inbound bridged connections sits in the port that received the originator's request. The bridge's internal peer is usually an outbound connection, but might be a port-specific local connection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BridgeInConx.BridgeAppConsumer
Provide application side bridging between outward-facing connections.class
BridgeInConx.BridgeAppToLink
Provide application side bridging from an inward-facing Bridging connection to another port's inward-facing local connection.class
BridgeInConx.BridgeLinkToApp
Provide application side bridging to an inward-facing Bridging connection from another port's inward-facing local connection.static class
BridgeInConx.Bridger
-
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 BridgeInConx(ConxClass parent, FwdOpenReq request)
BridgeInConx(InstanceSeg seg, ConxClass parent, FwdOpenReq outreq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(CipReply t)
Subclasses whose constructor defers replying to the forward open request must add the connection to the request's callback list, and call super.accept() to finalize the connection details.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
-
BridgeInConx
public BridgeInConx(InstanceSeg seg, ConxClass parent, FwdOpenReq outreq)
-
BridgeInConx
public BridgeInConx(ConxClass parent, FwdOpenReq request)
-
-
Method Detail
-
accept
public void accept(CipReply t)
Description copied from class:ConxInstance
Subclasses whose constructor defers replying to the forward open request must add the connection to the request's callback list, and call super.accept() to finalize the connection details. If not shutdown on return, proceed with subclass-specific finalization. That must include a call to getParent().bgPing().- 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:
-
-