Exemplo n.º 1
0
  public NOM(SystemObject system) {
    classesMap = new HashMap<String, Double>();

    Set<ClassObject> classes = system.getClassObjects();

    for (ClassObject classObject : classes) {
      double methods = computeMethods(classObject);
      if (methods != -1) {
        classesMap.put(classObject.getName(), methods);
      }
    }
  }
Exemplo n.º 2
0
  private int computeMethods(ClassObject classObject) {

    List<MethodObject> methods = classObject.getMethodList();
    return (methods.size());
  }