Launch Java: insa map, rangueil path

This commit is contained in:
Clement Lacau 2024-04-03 13:50:26 +02:00
parent a75c0f18c9
commit cf4f368912

View file

@ -54,22 +54,22 @@ public class Launch {
final GraphReader reader = new BinaryGraphReader( final GraphReader reader = new BinaryGraphReader(
new DataInputStream(new BufferedInputStream(new FileInputStream(mapName)))); new DataInputStream(new BufferedInputStream(new FileInputStream(mapName))));
// TODO: Read the graph. X // Read the graph. X
final Graph graph = reader.read(); final Graph graph = reader.read();
// Create the drawing: // Create the drawing:
final Drawing drawing = createDrawing(); final Drawing drawing = createDrawing();
// TODO: Draw the graph on the drawing. X // Draw the graph on the drawing. X
drawing.drawGraph(graph); drawing.drawGraph(graph);
// TODO: Create a PathReader. // Create a PathReader.
final PathReader pathReader = new BinaryPathReader(new DataInputStream(new BufferedInputStream(new FileInputStream(pathName)))); final PathReader pathReader = new BinaryPathReader(new DataInputStream(new BufferedInputStream(new FileInputStream(pathName))));
// TODO: Read the path. // Read the path.
final Path path = pathReader.readPath(graph); final Path path = pathReader.readPath(graph);
// TODO: Draw the path. // Draw the path.
drawing.drawPath(path); drawing.drawPath(path);
} }