/** * Returns the <code>InputProcessorPort</code> that the binding is for. * * @return the <code>InputProcessorPort</code> that the binding is for */ @Override public InputProcessorPort getBoundProcessorPort() { return super.getBoundProcessorPort(); }
/** * Sets the <code>OutputProcessorPort</code> that the binding is for. * * @param boundProcessorPort * the <code>OutputProcessorPort</code> that the binding is for */ @Override public void setBoundProcessorPort(OutputProcessorPort boundProcessorPort) { super.setBoundProcessorPort(boundProcessorPort); }
@Override public int compare(ProcessorBinding o1, ProcessorBinding o2) { return o1.getActivityPosition() - o2.getActivityPosition(); } }
public ProcessorBinding makeProcessorBinding() { ProcessorBinding processorBinding = new ProcessorBinding(); processorBinding.setName("Hello"); processorBinding.setBoundProcessor(processor); processorBinding.setBoundActivity(activity); new ProcessorInputPortBinding(processorBinding, processorName, personName); new ProcessorOutputPortBinding(processorBinding, hello, processorGreeting); return processorBinding; }
private void parseProcessorBinding(Scanner scanner) { level = Level.ProcessorBinding; processorBinding = new ProcessorBinding(); String bindingName = parseName(scanner); processorBinding.setName(bindingName); profile.getProcessorBindings().add(processorBinding); }
public Profile makeMainProfile() { Profile profile = new Profile(); profile.setName("tavernaWorkbench"); // FIXME: Can't set dc:creator/date/description // FIXME: Can't create recommendsEnvironment/requiresEnvironment makeActivity().setParent(profile); makeConfiguration().setParent(profile); makeProcessorBinding().setParent(profile); // profile.setProfilePosition(0); return profile; }
protected ProcessorPortBinding<?, ?> processorPortBindingInternalInBinding( Port port, ProcessorBinding procBinding) { Set<? extends ProcessorPortBinding<?, ?>> portBindings; if (port instanceof InputPort) portBindings = procBinding.getInputPortBindings(); else portBindings = procBinding.getOutputPortBindings(); for (ProcessorPortBinding<?, ?> portBinding : portBindings) { if (port instanceof ProcessorPort && portBinding.getBoundProcessorPort().equals(port)) return portBinding; if (port instanceof ActivityPort && portBinding.getBoundActivityPort().equals(port)) return portBinding; } return null; }
@Override public String toString() { return getBoundProcessorPort() + "->" + getBoundActivityPort(); } }
@Override public String toString() { return getBoundProcessorPort() + "<-" + getBoundActivityPort(); } }
@Override public void setParent(Profile parent) { if (this.parent != null && this.parent != parent) this.parent.getActivities().remove(this); this.parent = parent; if (parent != null) parent.getActivities().add(this); }
@Override public void setParent(ProcessorBinding parent) { if (this.parent != null && this.parent != parent) this.parent.getInputPortBindings().remove(this); this.parent = parent; if (parent != null) parent.getInputPortBindings().add(this); }
@Override public void setParent(ProcessorBinding parent) { if (this.parent != null && this.parent != parent) this.parent.getOutputPortBindings().remove(this); this.parent = parent; if (parent != null) parent.getOutputPortBindings().add(this); }
/** * Sets the <code>InputActivityPort</code> to which data is actually sent * when passed to the bound <code>InputProcessorPort</code>. * * @param boundActivityPort * the <code>InputActivityPort</code> to which data is actually * sent when passed to the bound <code>InputProcessorPort</code> */ @Override public void setBoundActivityPort(InputActivityPort boundActivityPort) { super.setBoundActivityPort(boundActivityPort); }
/** * Returns the <code>OutputActivityPort</code> from which data is received * for the bound <code>OutputProcessorPort</code>. * * @return the <code>OutputActivityPort</code> from which data is received * for the bound <code>OutputProcessorPort</code> */ @Override public OutputActivityPort getBoundActivityPort() { return super.getBoundActivityPort(); }
/** * Get the URI of this port binding. * * @return The absolute URI. * @see URITools#uriForBean(WorkflowBean) */ public URI getURI() { return getUriTools().uriForBean(this); }
protected ProfileDocument makeProfile(Profile pf, URI path) { ProfileDocument doc = objectFactory.createProfileDocument(); objectFactory.createProfile(); pf.accept(new ProfileSerialisationVisitor(doc) { }); return doc; }
/** * Returns the <code>OutputProcessorPort</code> that the binding is for. * * @return the <code>OutputProcessorPort</code> that the binding is for */ @Override public OutputProcessorPort getBoundProcessorPort() { return super.getBoundProcessorPort(); }
/** * Sets the InputProcessorPort that the binding is for. * * @param boundProcessorPort * the InputProcessorPort that the binding is for */ @Override public void setBoundProcessorPort(InputProcessorPort boundProcessorPort) { super.setBoundProcessorPort(boundProcessorPort); }
/** * Sets the <code>OutputActivityPort</code> from which data is received for * the bound <code>OutputProcessorPort</code>. * * @param boundActivityPort * the <code>OutputActivityPort</code> from which data is * received for the bound <code>OutputProcessorPort</code> */ @Override public void setBoundActivityPort(OutputActivityPort boundActivityPort) { super.setBoundActivityPort(boundActivityPort); }
/** * Returns the <code>InputActivityPort</code> to which data is actually sent * when passed to the bound <code>InputProcessorPort</code>. * * @return the <code>InputActivityPort</code> to which data is actually sent * when passed to the bound <code>InputProcessorPort</code> */ @Override public InputActivityPort getBoundActivityPort() { return super.getBoundActivityPort(); }