Launch Java: insa map, rangueil path
This commit is contained in:
parent
a75c0f18c9
commit
cf4f368912
1 changed files with 5 additions and 5 deletions
|
@ -54,22 +54,22 @@ public class Launch {
|
|||
final GraphReader reader = new BinaryGraphReader(
|
||||
new DataInputStream(new BufferedInputStream(new FileInputStream(mapName))));
|
||||
|
||||
// TODO: Read the graph. X
|
||||
// Read the graph. X
|
||||
final Graph graph = reader.read();
|
||||
|
||||
// Create the drawing:
|
||||
final Drawing drawing = createDrawing();
|
||||
|
||||
// TODO: Draw the graph on the drawing. X
|
||||
// Draw the graph on the drawing. X
|
||||
drawing.drawGraph(graph);
|
||||
|
||||
// TODO: Create a PathReader.
|
||||
// Create a PathReader.
|
||||
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);
|
||||
|
||||
// TODO: Draw the path.
|
||||
// Draw the path.
|
||||
drawing.drawPath(path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue