-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBackendPlaceholder.java
More file actions
28 lines (20 loc) · 974 Bytes
/
BackendPlaceholder.java
File metadata and controls
28 lines (20 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.NoSuchElementException;
public class BackendPlaceholder implements BackendInterface {
public BackendPlaceholder(GraphADT<String,Double> graph) { }
public void loadGraphData(String filename) throws IOException {}
public List<String> getListOfAllLocations() {
return Arrays.asList("Union South", "Computer Sciences and Statistics", "Atmospheric, Oceanic and Space Sciences");
}
public List<String> findShortestPath(String startLocation, String endLocation) {
return Arrays.asList("Union South", "Computer Sciences and Statistics", "Atmospheric, Oceanic and Space Sciences");
}
public List<Double> getTravelTimesOnPath(String startLocation, String endLocation) {
return Arrays.asList(176.0, 80.0);
}
public String getMostDistantLocation(String location) throws NoSuchElementException {
return "Atmospheric, Oceanic and Space Sciences";
}
}