public abstract class Terminal
extends java.lang.Object
implements java.io.Serializable
The abstract superclass that represents all possible terminal types for a node.
There are two terminal types, InputTerminal and OutputTerminal. Each node will contain zero or more InputTerminals and zero or more OutputTerminals. An input node is a node which contains no input terminals, as it forms the point from which messages are generated.
Terminals form the logical connection points between nodes. Messages flow from the output terminal of one node to the input terminal of another node.
To work with terminals, gain handles to them from the owning node. For example:
File msgFlow1 = new File("Test.msgflow"); MessageFlow mf1 = FlowRendererMSGFLOW.read(msgFlow1); Node inputNode = mf1.getNodeByName("input from queue"); Terminal t = inputNode.getOutputTerminal("out");
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 Terminal
is equivalent to the current Terminal
|
java.lang.String |
getName()
Returns the name of the Terminal
|
Node |
getOwningNode()
Returns the Node instance to which this terminal
is logically attached.
|
java.lang.String |
toString() |
public static final java.lang.String copyright
public java.lang.String getName()
public Node getOwningNode()
public boolean equals(java.lang.Object compare)
equals
in class java.lang.Object
compare
- Terminal for comparisonpublic java.lang.String toString()
toString
in class java.lang.Object