Пример #1
0
  /** Shutdown all registerd convergence layers. */
  public static void shutdown_clayers() {

    Iterator<ConvergenceLayer> iter = CLVector.getInstance().iterator();

    while (iter.hasNext()) {
      iter.next().shutdown();
    }
  }
Пример #2
0
  /** Find the appropriate convergence layer for the given string. */
  public static ConvergenceLayer find_clayer(String proto) {

    Iterator<ConvergenceLayer> iter = CLVector.getInstance().iterator();

    while (iter.hasNext()) {
      ConvergenceLayer element = iter.next();
      if (proto.compareTo(element.name()) == 0) {
        return element;
      }
    }

    return null;
  }
Пример #3
0
  public static void add_clayer(ConvergenceLayer cl) {

    CLVector.getInstance().add(cl);
  }