Skip to content

Commit

Permalink
Mise à jour du Parser xml (Changement du typage int en String pour l'id)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael committed Mar 4, 2014
1 parent dfa5030 commit 85c2cd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/ise/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

public class Node {
private HashMap<Flow, Integer> capacity;
private int id;
private String id;

public int getId() {
public String getId() {
return id;
}
public void setId(int id) {
public void setId(String id) {
this.id = id;
}
public Node() {
super();
}
public Node(int id) {
public Node(String id) {
this.id = id;
}
public Node(HashMap<Flow, Integer> capacity) {
Expand Down
2 changes: 1 addition & 1 deletion src/xml/XmlParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void parse() {
tempFlow.setJitter(Integer.parseInt(e.getChildText("jitter")));
for(Element e1 : e.getChild("path").getChildren()) {
Node node = new Node();
node.setId(Integer.parseInt(e1.getText()));
node.setId(e1.getText());
}
// Période = Deadline
tempFlow.setDeadline(Integer.parseInt(e.getChildText("deadline")));
Expand Down

0 comments on commit 85c2cd4

Please sign in to comment.