public DataflowInputPort createDataflowInputPort(String name, int depth, int granularDepth, Dataflow dataflow) { return new DataflowInputPortImpl(name, depth, granularDepth, dataflow); }
public DataflowInputPort createDataflowInputPort(String name, int depth, int granularDepth, Dataflow dataflow) { return new DataflowInputPortImpl(name, depth, granularDepth, dataflow); }
/** * Build a new dataflow input port, the granular depth is set for the input * port so it can be copied onto the internal output port * * @param name * name of the dataflow input port to build * @param depth * input depth * @param granularDepth * granular depth to copy to the internal output port * @throws NamingException * in the event of a duplicate or invalid name * @return the newly created input port */ protected synchronized DataflowInputPort createInputPort(String name, int depth, int granularDepth) throws NamingException { for (DataflowInputPort dip : inputs) { if (dip.getName().equals(name)) { throw new NamingException("Duplicate input port name '" + name + "' in dataflow already."); } } DataflowInputPortImpl dipi = new DataflowInputPortImpl(name, depth, granularDepth, this); inputs.add(dipi); return dipi; }
/** * Build a new dataflow input port, the granular depth is set for the input * port so it can be copied onto the internal output port * * @param name * name of the dataflow input port to build * @param depth * input depth * @param granularDepth * granular depth to copy to the internal output port * @throws NamingException * in the event of a duplicate or invalid name * @return the newly created input port */ protected synchronized DataflowInputPort createInputPort(String name, int depth, int granularDepth) throws NamingException { for (DataflowInputPort dip : inputs) { if (dip.getName().equals(name)) { throw new NamingException("Duplicate workflow input port name '" + name + "' in workflow already."); } } DataflowInputPortImpl dipi = new DataflowInputPortImpl(name, depth, granularDepth, this); inputs.add(dipi); return dipi; }
/** * Build a new dataflow input port, the granular depth is set for the input * port so it can be copied onto the internal output port * * @param name * name of the dataflow input port to build * @param depth * input depth * @param granularDepth * granular depth to copy to the internal output port * @throws NamingException * in the event of a duplicate or invalid name * @return the newly created input port */ protected synchronized DataflowInputPort createInputPort(String name, int depth, int granularDepth) throws NamingException { for (DataflowInputPort dip : inputs) { if (dip.getName().equals(name)) { throw new NamingException("Duplicate input port name '" + name + "' in dataflow already."); } } DataflowInputPortImpl dipi = new DataflowInputPortImpl(name, depth, granularDepth, this); inputs.add(dipi); return dipi; }
@Before public void setUp() throws Exception { source = new BasicEventForwardingOutputPort("output", 0, 0); sink = new DataflowInputPortImpl("input", 0, 0, null); datalink = new DatalinkImpl(source, sink); }