예제 #1
0
  public ClassModelSet hasEnumerations(Object value) {
    ObjectSet neighbors = new ObjectSet();

    if (value instanceof Collection) {
      neighbors.addAll((Collection<?>) value);
    } else {
      neighbors.add(value);
    }

    ClassModelSet answer = new ClassModelSet();

    for (ClassModel obj : this) {
      if (!Collections.disjoint(neighbors, obj.getEnumerations())) {
        answer.add(obj);
      }
    }

    return answer;
  }
예제 #2
0
  public ModelCloudProxySet hasRoot(Object value) {
    ObjectSet neighbors = new ObjectSet();

    if (value instanceof Collection) {
      neighbors.addAll((Collection<?>) value);
    } else {
      neighbors.add(value);
    }

    ModelCloudProxySet answer = new ModelCloudProxySet();

    for (ModelCloudProxy obj : this) {
      if (neighbors.contains(obj.getRoot())) {
        answer.add(obj);
      }
    }

    return answer;
  }
예제 #3
0
  public ModelCloudProxySet hasProvidedSpaces(Object value) {
    ObjectSet neighbors = new ObjectSet();

    if (value instanceof Collection) {
      neighbors.addAll((Collection<?>) value);
    } else {
      neighbors.add(value);
    }

    ModelCloudProxySet answer = new ModelCloudProxySet();

    for (ModelCloudProxy obj : this) {
      if (!Collections.disjoint(neighbors, obj.getProvidedSpaces())) {
        answer.add(obj);
      }
    }

    return answer;
  }
예제 #4
0
  public GraphSet hasGcs(Object value) {
    ObjectSet neighbors = new ObjectSet();

    if (value instanceof Collection) {
      neighbors.addAll((Collection<?>) value);
    } else {
      neighbors.add(value);
    }

    GraphSet answer = new GraphSet();

    for (Graph obj : this) {
      if (!Collections.disjoint(neighbors, obj.getGcs())) {
        answer.add(obj);
      }
    }

    return answer;
  }