Пример #1
0
  /**
   * Copy constructor.
   *
   * @param d
   */
  public DiscoverInfo(DiscoverInfo d) {
    super(d);

    // Set node
    setNode(d.getNode());

    // Copy features
    for (Feature f : d.features) {
      addFeature(f.clone());
    }

    // Copy identities
    for (Identity i : d.identities) {
      addIdentity(i.clone());
    }
  }
Пример #2
0
 public Feature buildFeature(String id) {
   Feature x = (Feature) definitions.get(id);
   if (x != null) return (Feature) x.clone();
   Debug.byebye("Feature " + id + " not found");
   return null;
 }