Skip to content

Commit

Permalink
Correções na operação de listar operações em C.
Browse files Browse the repository at this point in the history
  • Loading branch information
braully committed Oct 24, 2024
1 parent 06735e9 commit 9c3ff54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/main/java/com/github/braully/graph/CBInaryOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,10 @@ private String getExecuteCommand(UndirectedSparseGraphTO<Integer, Integer> graph
}
return tmpExec;
}

@Override
public String toString() {
return "CBInaryOperation{" + "type=" + type + ", name=" + name + ", exec=" + exec + ", format=" + format + ", process=" + process + '}';
}

}
5 changes: 4 additions & 1 deletion src/main/java/com/github/braully/graph/UtilCProjects.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public static void main(String... args) {
System.out.println("Make all c-projects...Done");
break;
}
listOperations();
}

public static void makeAllProjects() {
Expand Down Expand Up @@ -134,7 +135,9 @@ static Collection<IGraphOperation> listOperations() {
}
if (binaryExec != null && !Strings.isNullOrEmpty(type) && !Strings.isNullOrEmpty(operation) && !Strings.isNullOrEmpty(format)) {
operation = OBS + operation;
operations.add(new CBInaryOperation(binaryExec.getAbsolutePath(), type, operation, format));
CBInaryOperation op = new CBInaryOperation(binaryExec.getAbsolutePath(), type, operation, format);
operations.add(op);
System.out.println("Operção criada: " + op);
}
}
}
Expand Down

0 comments on commit 9c3ff54

Please sign in to comment.