예제 #1
0
  /**
   * Constructor Pipe creates a new Pipe instance with the given name and previous Pipe instance.
   * This is useful for naming a branch in a pipe assembly. Or renaming the branch mid-way down.
   *
   * @param name name for this branch of Pipes
   * @param previous previous Pipe to receive input Tuples from
   */
  @ConstructorProperties({"name", "previous"})
  public Pipe(String name, Pipe previous) {
    this.name = name;
    this.previous = previous;

    verifyPipe();
  }
예제 #2
0
  @ConstructorProperties({"previous"})
  protected Pipe(Pipe previous) {
    this.previous = previous;

    verifyPipe();
  }