public class Connection
extends java.lang.Object
implements java.io.Serializable
Represents a logical connection between an output terminal and an input terminal in a message flow.
Connection instances are logically owned by a MessageFlow parent and are returned by the MessageFlow.getConnections() method. New connections are formed using MessageFlow.connect() and removed using MessageFlow.disconnect(). For example:
Here is an example implementation that demonstrates how to use the Message Flow class to connect two existing nodes together:
File msgFlow1 = new File("Test.msgflow"); MessageFlow mf1 = FlowRendererMSGFLOW.read(msgFlow1); Node inputNode = mf1.getNodeByName("input from queue"); Node outputNode = mf1.getNodeByName("output from queue"); mf1.connect(inputNode.getOutputTerminal("out"), outputNode.getInputTerminal("in"));
Change Activity: -------- ----------- ------------- ------------------------------------ Reason: Date: Originator: Comments: -------- ----------- ------------- ------------------------------------ xxxxx.x 2010-07-28 HDMPL creation xxxxx.x 2010-08-10 dstorey v7.0.0.2 Release xxxxx.x 2011-07-06 dstorey v8.0.0.0 Release
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
copyright |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object compare)
Returns true if and only if the supplied connection
is equivalent to the current Connection
|
OutputTerminal |
getSource()
Returns this connections OutputTerminal
|
InputTerminal |
getTarget()
Returns this connections InputTerminal
|
java.lang.String |
toString() |
public static final java.lang.String copyright
public OutputTerminal getSource()
public InputTerminal getTarget()
public boolean equals(java.lang.Object compare)
equals
in class java.lang.Object
compare
- Connection for comparisonpublic java.lang.String toString()
toString
in class java.lang.Object