public final class PortConnection extends Object
FlowElementPort
s.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 null
public void disconnect()
public boolean isValid()
true
if this connection is valid, or false
if this is disposed
public FlowElementOutput getUpstream()
public FlowElementInput getDownstream()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.