[dev] Fetch changes from public folder.
This commit is contained in:
@@ -686,7 +686,7 @@ public class BasicDrawing extends JPanel implements Drawing {
|
||||
// Draw arcs only if there are one-way arcs or if origin is lower than
|
||||
// destination, avoid drawing two-ways arc twice.
|
||||
if (arc.getRoadInformation().isOneWay()
|
||||
|| arc.getOrigin().compareTo(arc.getDestination()) < 0) {
|
||||
|| arc.getOrigin().getId() < arc.getDestination().getId()) {
|
||||
drawArc(arc, palette, false);
|
||||
}
|
||||
}
|
||||
|
@@ -21,9 +21,8 @@ public class Launch {
|
||||
|
||||
/**
|
||||
* Create a new Drawing inside a JFrame an return it.
|
||||
*
|
||||
*
|
||||
* @return The created drawing.
|
||||
*
|
||||
* @throws Exception if something wrong happens when creating the graph.
|
||||
*/
|
||||
public static Drawing createDrawing() throws Exception {
|
||||
@@ -45,29 +44,36 @@ public class Launch {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
// Visit these directory to see the list of available files on Commetud.
|
||||
final String mapName = "/home/commetud/3eme Annee MIC/Graphes-et-Algorithmes/Maps/insa.mapgr";
|
||||
final String pathName = "/home/commetud/3eme Annee MIC/Graphes-et-Algorithmes/Paths/path_fr31insa_rangueil_r2.path";
|
||||
// visit these directory to see the list of available files on commetud.
|
||||
final String mapName =
|
||||
"/mnt/commetud/3eme Annee MIC/Graphes-et-Algorithmes/Maps/insa.mapgr";
|
||||
final String pathName =
|
||||
"/mnt/commetud/3eme Annee MIC/Graphes-et-Algorithmes/Paths/path_fr31insa_rangueil_r2.path";
|
||||
|
||||
// Create a graph reader.
|
||||
final GraphReader reader = new BinaryGraphReader(
|
||||
new DataInputStream(new BufferedInputStream(new FileInputStream(mapName))));
|
||||
final Graph graph;
|
||||
final Path path;
|
||||
|
||||
// TODO: Read the graph.
|
||||
final Graph graph = null;
|
||||
// create a graph reader
|
||||
try (final GraphReader reader = new BinaryGraphReader(new DataInputStream(
|
||||
new BufferedInputStream(new FileInputStream(mapName))))) {
|
||||
|
||||
// Create the drawing:
|
||||
// TODO: read the graph
|
||||
graph = null;
|
||||
}
|
||||
|
||||
// create the drawing
|
||||
final Drawing drawing = createDrawing();
|
||||
|
||||
// TODO: Draw the graph on the drawing.
|
||||
// TODO: draw the graph on the drawing
|
||||
|
||||
// TODO: Create a PathReader.
|
||||
final PathReader pathReader = null;
|
||||
// TODO: create a path reader
|
||||
try (final PathReader pathReader = null) {
|
||||
|
||||
// TODO: Read the path.
|
||||
final Path path = null;
|
||||
// TODO: read the path
|
||||
path = null;
|
||||
}
|
||||
|
||||
// TODO: Draw the path.
|
||||
// TODO: draw the path on the drawing
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -59,10 +59,10 @@ public class FileUtils {
|
||||
static {
|
||||
// Populate folderToEntry
|
||||
folderToEntry.put(FolderType.Map, new PreferencesEntry("DefaultMapFolder",
|
||||
"/home/commetud/3eme Annee MIC/Graphes-et-Algorithmes/Maps"));
|
||||
"/mnt/commetud/3eme Annee MIC/Graphes-et-Algorithmes/Maps"));
|
||||
folderToEntry.put(FolderType.PathInput,
|
||||
new PreferencesEntry("DefaultPathInputFolder",
|
||||
"/home/commetud/3eme Annee MIC/Graphes-et-Algorithmes/Paths"));
|
||||
"/mnt/commetud/3eme Annee MIC/Graphes-et-Algorithmes/Paths"));
|
||||
folderToEntry.put(FolderType.PathOutput,
|
||||
new PreferencesEntry("DefaultPathOutputsFolder", "paths"));
|
||||
|
||||
|
Reference in New Issue
Block a user