public final class PortConnection extends Object
FlowElementPorts.| Modifier and Type | Method and Description |
|---|---|
static void |
connect(FlowElementOutput upstream,
FlowElementInput downstream)
Connects between the two ports.
|
void |
disconnect()
Disposes this connection.
|
FlowElementInput |
getDownstream()
Returns the downstream port.
|
FlowElementOutput |
getUpstream()
Returns the upstream port.
|
boolean |
isValid()
Returns whether this connection is valid or not.
|
String |
toString() |
public static void connect(FlowElementOutput upstream, FlowElementInput downstream)
upstream - the upstream portdownstream - the downstream portIllegalArgumentException - if the data type is not consistent, or some parameters are nullpublic void disconnect()
public boolean isValid()
true if this connection is valid, or false if this is disposedpublic FlowElementOutput getUpstream()
public FlowElementInput getDownstream()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.