/** Insert the method's description here. Creation date: (7/20/2003 12:48:35 PM) */
  public void disconnectDistributor(PipeDistributor p) {
    if (p == null) return;

    connectedDistributors =
        (VectorPipeDistributor[]) ProcessingTools.removeAllFromArray(connectedDistributors, p);

    if (connectedDistributors.length > 0) {
      getElement().predecessorElement = connectedDistributors[0].getElement();
    } else {
      getElement().predecessorElement = null;
    }
  }
  /** Insert the method's description here. Creation date: (7/20/2003 12:48:35 PM) */
  public void connectDistributor(PipeDistributor p) {
    if (p == null) return;

    connectedDistributors =
        (VectorPipeDistributor[]) ProcessingTools.appendArray(connectedDistributors, p);
  }