Skip to content

Commit

Permalink
Generator: first generator candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoxmed committed Oct 30, 2017
1 parent 48999e2 commit 40699f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/fr/tpt/s3/ls_mxc/bench/MainBench.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fr.tpt.s3.ls_mxc.bench;

import java.io.IOException;

public class MainBench {

public static void main (String[] args) throws IOException {

}
}
2 changes: 1 addition & 1 deletion src/fr/tpt/s3/ls_mxc/parser/MCParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void readXML () {
if (n.getNodeType() == Node.ELEMENT_NODE) {
Element e = (Element) n;
if (e.getAttribute("type").contains("voter")) {
Actor a = new Actor(nb_actors++, e.getAttribute("name"),
Actor a = new Actor(nb_actors++, "D"+d+"N"+e.getAttribute("name"),
Integer.parseInt(e.getElementsByTagName("clo").item(0).getTextContent()),
Integer.parseInt(e.getElementsByTagName("chi").item(0).getTextContent()));
a.setfMechanism(true);
Expand Down

0 comments on commit 40699f0

Please sign in to comment.