Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2XB3FinalProject
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Schankula
2XB3FinalProject
Commits
8467749e
Commit
8467749e
authored
7 years ago
by
Winnie
Browse files
Options
Downloads
Patches
Plain Diff
- Improve variable naming
parent
d4f8828f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/biotree/Record.java
+4
-4
4 additions, 4 deletions
src/biotree/Record.java
src/biotree/TaxonNode.java
+5
-5
5 additions, 5 deletions
src/biotree/TaxonNode.java
with
9 additions
and
9 deletions
src/biotree/Record.java
+
4
−
4
View file @
8467749e
...
...
@@ -4,7 +4,7 @@ public class Record {
private
final
int
eventId
;
private
final
String
occurId
;
private
final
int
taxonId
;
private
final
int
c
ount
;
private
final
int
individualC
ount
;
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
c
ount
,
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
individualC
ount
,
float
latitude
,
float
longitude
,
int
year
,
int
month
,
int
day
)
{
this
.
eventId
=
eventId
;
this
.
occurId
=
occurId
;
this
.
taxonId
=
taxonId
;
this
.
count
=
c
ount
;
this
.
individualCount
=
individualC
ount
;
this
.
latitude
=
latitude
;
this
.
longitude
=
longitude
;
...
...
@@ -62,7 +62,7 @@ public class Record {
* @return The individual count of the record
*/
public
int
getCount
()
{
return
c
ount
;
return
individualC
ount
;
}
/**
* Gets latitude of the record
...
...
This diff is collapsed.
Click to expand it.
src/biotree/TaxonNode.java
+
5
−
5
View file @
8467749e
...
...
@@ -18,7 +18,7 @@ public class TaxonNode {
private
TaxonNode
parent
;
private
ArrayList
<
TaxonNode
>
children
=
new
ArrayList
<
TaxonNode
>();
private
int
count
;
private
int
c
hildrenC
ount
;
/**
...
...
@@ -34,7 +34,7 @@ public class TaxonNode {
this
.
name
=
name
;
this
.
parent
=
null
;
this
.
children
=
new
ArrayList
<
TaxonNode
>();
this
.
count
=
0
;
this
.
c
hildrenC
ount
=
0
;
}
/**
...
...
@@ -89,7 +89,7 @@ public class TaxonNode {
* @return Children Count
*/
public
int
getCount
()
{
return
this
.
count
;
return
this
.
c
hildrenC
ount
;
}
...
...
@@ -115,7 +115,7 @@ public class TaxonNode {
* Increments the children count
*/
public
void
incCount
()
{
this
.
count
++;
this
.
c
hildrenC
ount
++;
}
/**
...
...
@@ -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:"
,
c
hildrenC
ount
);
return
s
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment