-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/LucasChezToi/ISE
- Loading branch information
Showing
281 changed files
with
36,944 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Binary file not shown.
22 changes: 22 additions & 0 deletions
22
.metadata/.plugins/org.eclipse.core.resources/.history/1/a08e4d407f98001317dabf6edc21b377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package ise; | ||
|
||
import java.util.HashMap; | ||
|
||
public class Node { | ||
HashMap<Flow, Integer> capacity; | ||
|
||
public HashMap<Flow, Integer> getCapacity() { | ||
return capacity; | ||
} | ||
|
||
public void setCapacity(HashMap<Flow, Integer> capacity) { | ||
this.capacity = capacity; | ||
} | ||
|
||
public Node(HashMap<Flow, Integer> capacity) { | ||
super(); | ||
this.capacity = capacity; | ||
} | ||
|
||
|
||
} |
38 changes: 38 additions & 0 deletions
38
.metadata/.plugins/org.eclipse.core.resources/.history/12/802a3ee67b98001317dabf6edc21b377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import java.io.*; | ||
|
||
import org.jdom2.*; | ||
import org.jdom2.input.*; | ||
import org.jdom2.filter.*; | ||
import org.jdom2.input.SAXBuilder; | ||
|
||
import java.util.List; | ||
import java.util.Iterator; | ||
|
||
public class XmlParser { | ||
private static org.jdom2.Document document; | ||
private static Element racine; | ||
private SAXBuilder sxb; | ||
|
||
public XmlParser(String file) { | ||
sxb = new SAXBuilder(); | ||
try { | ||
document = sxb.build(new File("file")); | ||
} catch(Exception e){} | ||
} | ||
|
||
|
||
/*racine = document.getRootElement(); | ||
|
||
List firstStep = racine.getChildren("??"); | ||
|
||
Iterator i = firstStep.iterator(); | ||
while(i.hasNext()) { | ||
//On recrée l'Element courant à chaque tour de boucle afin de | ||
//pouvoir utiliser les méthodes propres aux Element comme : | ||
//sélectionner un nœud fils, modifier du texte, etc... | ||
Element courant = (Element)i.next(); | ||
//On affiche le nom de l’élément courant | ||
System.out.println(courant.getChild("??").getText()); | ||
} | ||
}*/ | ||
} |
Empty file.
10 changes: 10 additions & 0 deletions
10
.metadata/.plugins/org.eclipse.core.resources/.history/12/d058f36c8098001317dabf6edc21b377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package ise; | ||
|
||
import java.util.List; | ||
|
||
public class Algorithm { | ||
Network net; | ||
List<Integer> integer; | ||
|
||
|
||
} |
64 changes: 64 additions & 0 deletions
64
.metadata/.plugins/org.eclipse.core.resources/.history/19/d0354b4d7f98001317dabf6edc21b377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package ise; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class Flow { | ||
String path; | ||
int priority; | ||
int deadline; | ||
int periode; | ||
int jitter; | ||
|
||
public Flow(String path, int priority, int deadline, int periode, int jitter) { | ||
super(); | ||
this.path = path; | ||
this.priority = priority; | ||
this.deadline = deadline; | ||
this.periode = periode; | ||
this.jitter = jitter; | ||
} | ||
|
||
List<Flow> higherPriorityFlows() { | ||
return null; | ||
} | ||
|
||
List<Flow> samePriorityFlows() { | ||
return null; | ||
} | ||
|
||
List<Flow> LowerPriorityFlows() { | ||
return null; | ||
} | ||
|
||
public String getPath() { | ||
return path; | ||
} | ||
public void setPath(String path) { | ||
this.path = path; | ||
} | ||
public int getPriority() { | ||
return priority; | ||
} | ||
public void setPriority(int priority) { | ||
this.priority = priority; | ||
} | ||
public int getDeadline() { | ||
return deadline; | ||
} | ||
public void setDeadline(int deadline) { | ||
this.deadline = deadline; | ||
} | ||
public int getPeriode() { | ||
return periode; | ||
} | ||
public void setPeriode(int periode) { | ||
this.periode = periode; | ||
} | ||
public int getJitter() { | ||
return jitter; | ||
} | ||
public void setJitter(int jitter) { | ||
this.jitter = jitter; | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
.metadata/.plugins/org.eclipse.core.resources/.history/2/a017054f7b98001317dabf6edc21b377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import java.io.*; | ||
|
||
import org.jdom2.*; | ||
import org.jdom2.input.*; | ||
import org.jdom2.filter.*; | ||
import org.jdom2.input.SAXBuilder; | ||
|
||
import java.util.List; | ||
import java.util.Iterator; | ||
|
||
public class XmlParser { | ||
static org.jdom2.Document document; | ||
static Element racine; | ||
|
||
public XmlParser() { | ||
|
||
} | ||
|
||
//On crée une instance de SAXBuilder | ||
SAXBuilder sxb = new SAXBuilder(); | ||
try | ||
{ | ||
//On crée un nouveau document JDOM avec en argument le fichier XML | ||
//Le parsing est terminé ;) | ||
document = sxb.build(new File("file.xml")); | ||
} | ||
catch(Exception e){} | ||
|
||
//On initialise un nouvel élément racine avec l'élément racine du document. | ||
racine = document.getRootElement(); | ||
|
||
List firstStep = racine.getChildren("??"); | ||
|
||
//On crée un Iterator sur notre liste | ||
Iterator i = firstStep.iterator(); | ||
while(i.hasNext()) { | ||
//On recrée l'Element courant à chaque tour de boucle afin de | ||
//pouvoir utiliser les méthodes propres aux Element comme : | ||
//sélectionner un nœud fils, modifier du texte, etc... | ||
Element courant = (Element)i.next(); | ||
//On affiche le nom de l’élément courant | ||
System.out.println(courant.getChild("??").getText()); | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
.metadata/.plugins/org.eclipse.core.resources/.history/22/4087a74f7d98001317dabf6edc21b377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package xml; | ||
|
||
import java.io.*; | ||
|
||
import org.jdom2.*; | ||
import org.jdom2.input.*; | ||
import org.jdom2.filter.*; | ||
import org.jdom2.input.SAXBuilder; | ||
|
||
import java.util.List; | ||
import java.util.Iterator; | ||
|
||
public class XmlParser { | ||
private static org.jdom2.Document document; | ||
private static Element racine; | ||
private SAXBuilder sxb; | ||
|
||
public XmlParser(String file) { | ||
sxb = new SAXBuilder(); | ||
try { | ||
document = sxb.build(new File(file)); | ||
} catch(Exception e){} | ||
} | ||
|
||
|
||
racine = document.getRootElement(); | ||
|
||
List firstStep = racine.getChildren("??"); | ||
|
||
Iterator i = firstStep.iterator(); | ||
while(i.hasNext()) { | ||
//On recrée l'Element courant à chaque tour de boucle afin de | ||
//pouvoir utiliser les méthodes propres aux Element comme : | ||
//sélectionner un nœud fils, modifier du texte, etc... | ||
Element courant = (Element)i.next(); | ||
//On affiche le nom de l’élément courant | ||
System.out.println(courant.getChild("??").getText()); | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
.metadata/.plugins/org.eclipse.core.resources/.history/22/c05b5acc7b98001317dabf6edc21b377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import java.io.*; | ||
|
||
import org.jdom2.*; | ||
import org.jdom2.input.*; | ||
import org.jdom2.filter.*; | ||
import org.jdom2.input.SAXBuilder; | ||
|
||
import java.util.List; | ||
import java.util.Iterator; | ||
|
||
public class XmlParser { | ||
private static org.jdom2.Document document; | ||
private static Element racine; | ||
private SAXBuilder sxb; | ||
|
||
public XmlParser(String file) { | ||
sxb = new SAXBuilder(); | ||
try { | ||
document = sxb.build(new File("file.xml")); | ||
} catch(Exception e){} | ||
} | ||
|
||
|
||
|
||
|
||
/*racine = document.getRootElement(); | ||
|
||
List firstStep = racine.getChildren("??"); | ||
|
||
Iterator i = firstStep.iterator(); | ||
while(i.hasNext()) { | ||
//On recrée l'Element courant à chaque tour de boucle afin de | ||
//pouvoir utiliser les méthodes propres aux Element comme : | ||
//sélectionner un nœud fils, modifier du texte, etc... | ||
Element courant = (Element)i.next(); | ||
//On affiche le nom de l’élément courant | ||
System.out.println(courant.getChild("??").getText()); | ||
} | ||
}*/ | ||
} |
20 changes: 20 additions & 0 deletions
20
.metadata/.plugins/org.eclipse.core.resources/.history/28/90ba92897f98001317dabf6edc21b377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package ise; | ||
|
||
import java.util.HashMap; | ||
|
||
public class Node { | ||
private HashMap<Flow, Integer> capacity; | ||
|
||
public HashMap<Flow, Integer> getCapacity() { | ||
return capacity; | ||
} | ||
|
||
public void setCapacity(HashMap<Flow, Integer> capacity) { | ||
this.capacity = capacity; | ||
} | ||
|
||
public Node(HashMap<Flow, Integer> capacity) { | ||
super(); | ||
this.capacity = capacity; | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
.metadata/.plugins/org.eclipse.core.resources/.history/33/c09587a37e98001317dabf6edc21b377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package ise; | ||
|
||
import java.util.List; | ||
|
||
public class Flow { | ||
String path; | ||
int priority; | ||
int deadline; | ||
int periode; | ||
int jitter; | ||
|
||
public Flow(String path, int priority, int deadline, int periode, int jitter) { | ||
super(); | ||
this.path = path; | ||
this.priority = priority; | ||
this.deadline = deadline; | ||
this.periode = periode; | ||
this.jitter = jitter; | ||
} | ||
|
||
List<Flow> higherPriorityFlows() { | ||
|
||
} | ||
|
||
|
||
|
||
public String getPath() { | ||
return path; | ||
} | ||
public void setPath(String path) { | ||
this.path = path; | ||
} | ||
public int getPriority() { | ||
return priority; | ||
} | ||
public void setPriority(int priority) { | ||
this.priority = priority; | ||
} | ||
public int getDeadline() { | ||
return deadline; | ||
} | ||
public void setDeadline(int deadline) { | ||
this.deadline = deadline; | ||
} | ||
public int getPeriode() { | ||
return periode; | ||
} | ||
public void setPeriode(int periode) { | ||
this.periode = periode; | ||
} | ||
public int getJitter() { | ||
return jitter; | ||
} | ||
public void setJitter(int jitter) { | ||
this.jitter = jitter; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
.metadata/.plugins/org.eclipse.core.resources/.history/34/3025116f7f98001317dabf6edc21b377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package ise; | ||
|
||
public class Path { | ||
List<Nodes> | ||
} |
42 changes: 42 additions & 0 deletions
42
.metadata/.plugins/org.eclipse.core.resources/.history/34/600393d28198001317dabf6edc21b377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package xml; | ||
|
||
import java.io.*; | ||
|
||
import org.jdom2.*; | ||
import org.jdom2.input.*; | ||
import org.jdom2.filter.*; | ||
import org.jdom2.input.SAXBuilder; | ||
|
||
import java.util.List; | ||
import java.util.Iterator; | ||
|
||
public class XmlParser { | ||
private static org.jdom2.Document document; | ||
private static Element racine; | ||
private SAXBuilder sxb; | ||
|
||
public XmlParser(String file) { | ||
sxb = new SAXBuilder(); | ||
try { | ||
document = sxb.build(new File(file)); | ||
} catch(Exception e){} | ||
} | ||
|
||
public String getNode(String id) { | ||
racine = document.getRootElement(); | ||
return null; | ||
} | ||
|
||
List firstStep = racine.getChildren("??"); | ||
|
||
Iterator i = firstStep.iterator(); | ||
while(i.hasNext()) { | ||
//On recrée l'Element courant à chaque tour de boucle afin de | ||
//pouvoir utiliser les méthodes propres aux Element comme : | ||
//sélectionner un nœud fils, modifier du texte, etc... | ||
Element courant = (Element)i.next(); | ||
//On affiche le nom de l’élément courant | ||
System.out.println(courant.getChild("??").getText()); | ||
} | ||
} | ||
} |
Oops, something went wrong.