Skip to content
Snippets Groups Projects
Commit d2004c92 authored by Christopher Schankula's avatar Christopher Schankula :earth_africa:
Browse files

Merge branch 'web' of git@gitlab.cas.mcmaster.ca:schankuc/2XB3.git into

web

Conflicts:
	src/search/BasicSearchResult.java
parents 35c79667 0187e9f4
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,11 @@ package search; ...@@ -3,7 +3,11 @@ package search;
import java.util.ArrayList; import java.util.ArrayList;
import data.Record; import data.Record;
<<<<<<< HEAD
import sort.GeneralRange; import sort.GeneralRange;
=======
import java.lang.Math;
>>>>>>> branch 'web' of git@gitlab.cas.mcmaster.ca:schankuc/2XB3.git
public class BasicSearchResult { public class BasicSearchResult {
private ArrayList<Record> results; private ArrayList<Record> results;
...@@ -12,13 +16,18 @@ public class BasicSearchResult { ...@@ -12,13 +16,18 @@ public class BasicSearchResult {
private Integer sum; private Integer sum;
private private
public static void main(String[] args) {
//Graph g = new Graph();
}
public BasicSearchResult(ArrayList<Record> results, double time) { public BasicSearchResult(ArrayList<Record> results, double time) {
this.results = results; this.results = results;
this.time = time; this.time = time;
} }
public Iterable<Record> results() { public Iterable<Record> results() {
return (Iterable<Record>) results; return (Iterable<Record>) results;
} }
public int n() { public int n() {
...@@ -44,6 +53,7 @@ public class BasicSearchResult { ...@@ -44,6 +53,7 @@ public class BasicSearchResult {
return this.sum; return this.sum;
} }
<<<<<<< HEAD
/** /**
* *
* @param area * @param area
...@@ -55,4 +65,14 @@ public class BasicSearchResult { ...@@ -55,4 +65,14 @@ public class BasicSearchResult {
private ArrayList<GeneralRange> ranges(double lat, double lon, double area){ private ArrayList<GeneralRange> ranges(double lat, double lon, double area){
ArrayList<GeneralRange>() ArrayList<GeneralRange>()
} }
=======
private double lngRange(double dist, double lat){
return dist/(Math.cos(lat)*222);
}
private double latRange(double dist){
return (dist/111)/2;
}
>>>>>>> branch 'web' of git@gitlab.cas.mcmaster.ca:schankuc/2XB3.git
} }
...@@ -8,13 +8,7 @@ public class Graph { ...@@ -8,13 +8,7 @@ public class Graph {
public static void main(String[] args) { public static void main(String[] args) {
Graph g = new Graph(5);
g.addEdge(4, 3);
g.addEdge(2, 3);
g.addEdge(1, 2);
g.addEdge(0, 2);
for(int i = 0; i < 5; i++)
System.out.println(g.adj(i));
} }
public Graph(int V){ public Graph(int V){
......
...@@ -33,11 +33,18 @@ function callUpdateSci(object){ ...@@ -33,11 +33,18 @@ function callUpdateSci(object){
function populateDropdown(childTagID, nodeList, subnode){ function populateDropdown(childTagID, nodeList, subnode){
var x, y, content=""; var x, y, content="";
for (var i in nodeList[subnode]["taxonName"]){ console.log(nodeList[subnode]);
x = nodeList[subnode]["taxonId"][i]; if(nodeList[subnode] != null){
y = nodeList[subnode]["taxonName"][i]; for (var i in nodeList[subnode]["taxonName"]){
content += '"<option value="' + x + '">' + y + '</option>'; x = nodeList[subnode]["taxonId"][i];
y = nodeList[subnode]["taxonName"][i];
content += '"<option value="' + x + '">' + y + '</option>';
}
} }
// else {
// content
// }
document.getElementById(childTagID).innerHTML = content; document.getElementById(childTagID).innerHTML = content;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment