Methods Summary |
---|
public void | clear()
if (mTargetPort != null) {
mTargetPort.clear();
}
|
public void | close()
super.close();
if (mTargetPort != null && mTargetPort.isOpen()) {
mTargetPort.close();
}
|
public void | connectTo(InputPort target)
if (mTargetPort != null) {
throw new RuntimeException(this + " already connected to " + mTargetPort + "!");
}
mTargetPort = target;
mTargetPort.setSourcePort(this);
|
public boolean | filterMustClose()
return !isOpen() && isBlocking();
|
public InputPort | getBasePort()
return mBasePort;
|
public Filter | getTargetFilter()
return mTargetPort == null ? null : mTargetPort.getFilter();
|
public InputPort | getTargetPort()
return mTargetPort;
|
public boolean | hasFrame()
return mTargetPort == null ? false : mTargetPort.hasFrame();
|
public boolean | isConnected()
return mTargetPort != null;
|
public boolean | isReady()
return (isOpen() && mTargetPort.acceptsFrame()) || !isBlocking();
|
public void | open()
super.open();
if (mTargetPort != null && !mTargetPort.isOpen()) {
mTargetPort.open();
}
|
public Frame | pullFrame()
throw new RuntimeException("Cannot pull frame on " + this + "!");
|
public void | pushFrame(Frame frame)
if (mTargetPort == null) {
throw new RuntimeException(
"Attempting to push frame on unconnected port: " + this + "!");
}
mTargetPort.pushFrame(frame);
|
public void | setBasePort(InputPort basePort)
mBasePort = basePort;
|
public void | setFrame(Frame frame)
assertPortIsOpen();
if (mTargetPort == null) {
throw new RuntimeException(
"Attempting to set frame on unconnected port: " + this + "!");
}
mTargetPort.setFrame(frame);
|
public java.lang.String | toString()
return "output " + super.toString();
|