DataflowInputPortImpl(String name, int depth, int granularDepth, Dataflow df) { super(name, depth); granularInputDepth = granularDepth; dataflow = df; internalOutput = new BasicEventForwardingOutputPort(name, depth, granularDepth); }
@Override protected void undoEditAction(ProcessorImpl processor) { outputPort.removeOutgoingLink(newLink); if (target instanceof AbstractEventHandlingInputPort) { ((AbstractEventHandlingInputPort)target).setIncomingLink(null); } }
void setDepth(int depth) { this.depth = depth; internalOutput.setDepth(depth); }
@Override protected void doEditAction(ProcessorImpl processor) throws EditException { for (BasicEventForwardingOutputPort popi : processor.outputPorts) { if (popi.getName().equals(outputName)) { newLink = new DatalinkImpl(popi, target); popi.addOutgoingLink(newLink); if (target instanceof AbstractEventHandlingInputPort) { ((AbstractEventHandlingInputPort)target).setIncomingLink(newLink); } outputPort = popi; return; } } throw new EditException("Cannot locate output port with name '" + outputName + "'"); }
@Override protected void doEditAction(DatalinkImpl datalink) throws EditException { EventForwardingOutputPort source = datalink.getSource(); EventHandlingInputPort sink = datalink.getSink(); if (source instanceof BasicEventForwardingOutputPort) { ((BasicEventForwardingOutputPort) source).addOutgoingLink(datalink); } if (sink instanceof AbstractEventHandlingInputPort) { ((AbstractEventHandlingInputPort) sink).setIncomingLink(datalink); } }
/** * Receive an input event, relay it through the internal output port to all * connected entities */ public void receiveEvent(WorkflowDataToken t) { WorkflowDataToken transformedToken = t.pushOwningProcess(dataflow.getLocalName()); // I'd rather avoid casting to the implementation but in this // case we're in the same package - the only reason to do this // is to allow dummy implementations of parts of this // infrastructure during testing, in 'real' use this should // always be a dataflowimpl if (dataflow instanceof DataflowImpl) { ((DataflowImpl) dataflow).tokenReceived(transformedToken .getOwningProcess(), t.getContext()); } for (Datalink dl : internalOutput.getOutgoingLinks()) { dl.getSink().receiveEvent(transformedToken); } }
+ output.getDepth());
void setGranularDepth(int granularDepth) { this.granularInputDepth = granularDepth; internalOutput.setGranularDepth(granularDepth); }
public void setName(String newName) { this.name = newName; internalOutput.setName(newName); }
@Override protected void doEditAction(ProcessorImpl processor) throws EditException { for (BasicEventForwardingOutputPort popi : processor.outputPorts) { if (popi.getName().equals(outputName)) { newLink = new DatalinkImpl(popi, target); popi.addOutgoingLink(newLink); if (target instanceof AbstractEventHandlingInputPort) { ((AbstractEventHandlingInputPort)target).setIncomingLink(newLink); } outputPort = popi; return; } } throw new EditException("Cannot locate output port with name '" + outputName + "'"); }
@Override protected void doEditAction(DatalinkImpl datalink) throws EditException { EventForwardingOutputPort source = datalink.getSource(); EventHandlingInputPort sink = datalink.getSink(); if (source instanceof BasicEventForwardingOutputPort) { ((BasicEventForwardingOutputPort) source).addOutgoingLink(datalink); } if (sink instanceof AbstractEventHandlingInputPort) { ((AbstractEventHandlingInputPort) sink).setIncomingLink(datalink); } }
/** * Receive an input event, relay it through the internal output port to all * connected entities */ public void receiveEvent(WorkflowDataToken t) { WorkflowDataToken transformedToken = t.pushOwningProcess(dataflow.getLocalName()); // I'd rather avoid casting to the implementation but in this // case we're in the same package - the only reason to do this // is to allow dummy implementations of parts of this // infrastructure during testing, in 'real' use this should // always be a dataflowimpl if (dataflow instanceof DataflowImpl) { ((DataflowImpl) dataflow).tokenReceived(transformedToken .getOwningProcess(), t.getContext()); } for (Datalink dl : internalOutput.getOutgoingLinks()) { dl.getSink().receiveEvent(transformedToken); } }
void setGranularDepth(int granularDepth) { this.granularInputDepth = granularDepth; internalOutput.setGranularDepth(granularDepth); }
public void setName(String newName) { this.name = newName; internalOutput.setName(newName); }
@Override protected void doEditAction(ProcessorImpl processor) throws EditException { for (BasicEventForwardingOutputPort popi : processor.outputPorts) { if (popi.getName().equals(outputName)) { newLink = new DatalinkImpl(popi, target); popi.addOutgoingLink(newLink); if (target instanceof AbstractEventHandlingInputPort) { ((AbstractEventHandlingInputPort)target).setIncomingLink(newLink); } outputPort = popi; return; } } throw new EditException("Cannot locate output port with name '" + outputName + "'"); }
@Override protected void undoEditAction(ProcessorImpl processor) { outputPort.removeOutgoingLink(newLink); if (target instanceof AbstractEventHandlingInputPort) { ((AbstractEventHandlingInputPort)target).setIncomingLink(null); } }
@Override protected void undoEditAction(DatalinkImpl datalink) { EventForwardingOutputPort source = datalink.getSource(); EventHandlingInputPort sink = datalink.getSink(); if (source instanceof BasicEventForwardingOutputPort) { ((BasicEventForwardingOutputPort) source).addOutgoingLink(datalink); } if (sink instanceof AbstractEventHandlingInputPort) { ((AbstractEventHandlingInputPort) sink).setIncomingLink(datalink); } }