-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBackendPlaceholder.java
More file actions
31 lines (22 loc) · 1.08 KB
/
Copy pathBackendPlaceholder.java
File metadata and controls
31 lines (22 loc) · 1.08 KB
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
29
30
31
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
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 List<String> findShortestPathVia(String startLocation, String via, String endLocation) {
return Arrays.asList("Memorial Union", "Science Hall", "Radio Hall");
}
public List<Double> getTravelTimesOnPathVia(String startLocation, String via, String endLocation) {
return Arrays.asList(146.0, 30.0);
}
}