}
public void next() throws InterruptedException {
Object next = emittables.take();
if (next instanceof EPDataFlowSignal) {
EPDataFlowSignal signal = (EPDataFlowSignal) next;
graphContext.submitSignal(signal);
}
else if (next instanceof PortAndMessagePair) {
PortAndMessagePair pair = (PortAndMessagePair) next;
graphContext.submitPort(pair.getPort(), pair.getMessage());