Skip to content
Snippets Groups Projects
Commit 8467749e authored by Winnie's avatar Winnie
Browse files

- Improve variable naming

parent d4f8828f
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ public class Record {
private final int eventId;
private final String occurId;
private final int taxonId;
private final int count;
private final int individualCount;
private final float latitude;
private final float longitude;
......@@ -17,11 +17,11 @@ public class Record {
/**
* Initialize Record abstract object
*/
public Record( int eventId, String occurId, int taxonId, int count, float latitude, float longitude, String locality, int depth , int year, int month, int day, int hour, int minute ) {
public Record( int eventId, String occurId, int taxonId, int individualCount, float latitude, float longitude, int year, int month, int day) {
this.eventId = eventId;
this.occurId = occurId;
this.taxonId = taxonId;
this.count = count;
this.individualCount = individualCount;
this.latitude = latitude;
this.longitude = longitude;
......@@ -62,7 +62,7 @@ public class Record {
* @return The individual count of the record
*/
public int getCount() {
return count;
return individualCount;
}
/**
* Gets latitude of the record
......
......@@ -18,7 +18,7 @@ public class TaxonNode {
private TaxonNode parent;
private ArrayList<TaxonNode> children = new ArrayList<TaxonNode>();
private int count;
private int childrenCount;
/**
......@@ -34,7 +34,7 @@ public class TaxonNode {
this.name = name;
this.parent = null;
this.children = new ArrayList<TaxonNode>();
this.count = 0;
this.childrenCount = 0;
}
/**
......@@ -89,7 +89,7 @@ public class TaxonNode {
* @return Children Count
*/
public int getCount() {
return this.count;
return this.childrenCount;
}
......@@ -115,7 +115,7 @@ public class TaxonNode {
* Increments the children count
*/
public void incCount() {
this.count ++;
this.childrenCount ++;
}
/**
......@@ -134,7 +134,7 @@ public class TaxonNode {
s += String.format("%d ", tx.getTaxonId());
}
s += "\n";
s += String.format("%-20s%d\n", "Count:", count);
s += String.format("%-20s%d\n", "Count:", childrenCount);
return s;
}
}
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