Exemple #1
0
  public Nucleus getNucleus(String cdNucleus) {
    List nuclei = getNuclei();
    Nucleus nucleus = null;

    for (int x = 0; x < nuclei.size(); x++) {
      nucleus = (Nucleus) nuclei.get(x);

      if (nucleus.getCd().equals(cdNucleus)) return nucleus;
    }
    // System.out.println("nucleus: " + nucleus);
    return nucleus;
  }
Exemple #2
0
  public List getNuclei(String layer) {
    List nuclei = getNuclei();
    List ret = new ArrayList();

    for (int x = 0; x < nuclei.size(); x++) {
      Nucleus nucleus = (Nucleus) nuclei.get(x);

      if (layer == null || nucleus.getLayer().equals(layer)) ret.add(nucleus);
    }

    return ret;
  }