Rectification de la classe Launch
This commit is contained in:
parent
a9cfc4d635
commit
df25330f67
1 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,7 @@ import org.insa.graphs.gui.drawing.components.BasicDrawing;
|
||||||
import org.insa.graphs.model.Graph;
|
import org.insa.graphs.model.Graph;
|
||||||
import org.insa.graphs.model.Path;
|
import org.insa.graphs.model.Path;
|
||||||
import org.insa.graphs.model.io.BinaryGraphReader;
|
import org.insa.graphs.model.io.BinaryGraphReader;
|
||||||
|
import org.insa.graphs.model.io.BinaryPathReader;
|
||||||
import org.insa.graphs.model.io.GraphReader;
|
import org.insa.graphs.model.io.GraphReader;
|
||||||
import org.insa.graphs.model.io.PathReader;
|
import org.insa.graphs.model.io.PathReader;
|
||||||
|
|
||||||
|
@ -68,7 +69,9 @@ public class Launch {
|
||||||
// TODO: draw the graph on the drawing
|
// TODO: draw the graph on the drawing
|
||||||
drawing.drawGraph(graph);
|
drawing.drawGraph(graph);
|
||||||
// TODO: create a path reader
|
// TODO: create a path reader
|
||||||
try (final PathReader pathReader = null) {
|
// Je suis là et c'est là que je dois faire les changements nécessaires
|
||||||
|
try (final PathReader pathReader = new BinaryPathReader(new DataInputStream(
|
||||||
|
new BufferedInputStream(new FileInputStream(pathName))))) {
|
||||||
|
|
||||||
// TODO: read the path
|
// TODO: read the path
|
||||||
path = pathReader.readPath(graph);
|
path = pathReader.readPath(graph);
|
||||||
|
|
Loading…
Reference in a new issue