コード例 #1
0
ファイル: TargetModule.java プロジェクト: dcavey/Clustering
  public void showComposition(boolean tocsv, boolean toStdOut) {

    Iterator<Table> tableIterator = this.getAssignedTables().iterator();
    while (tableIterator.hasNext()) {
      Table moduleTable = tableIterator.next();
      signalModuleTableCompositionLine(this.getName(), moduleTable.getName(), tocsv, toStdOut);
    }

    Iterator<Program> programIterator = this.getPrograms().iterator();
    while (programIterator.hasNext()) {
      Program moduleProgram = programIterator.next();
      signalModuleProgramCompositionLine(
          this.getName(), moduleProgram.getName(), moduleProgram.getPgmType(), tocsv, toStdOut);
    }

    Iterator<Interface> interfaceIterator = this.getInterfaces().iterator();
    while (interfaceIterator.hasNext()) {
      Interface moduleInterface = interfaceIterator.next();
      signalModuleInterfaceCompositionLine(
          this.getName(),
          moduleInterface.getName(),
          moduleInterface.getProgramName(),
          tocsv,
          toStdOut);
    }
  }