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
d332a9d7
Commit
d332a9d7
authored
7 years ago
by
Christopher Schankula
Browse files
Options
Downloads
Patches
Plain Diff
add TaxonType enumeration and field to Record ADT.
parent
d500dcd3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/record/Record.java
+28
-18
28 additions, 18 deletions
src/record/Record.java
src/record/TaxonType.java
+11
-0
11 additions, 0 deletions
src/record/TaxonType.java
with
39 additions
and
18 deletions
src/record/Record.java
+
28
−
18
View file @
d332a9d7
...
...
@@ -4,6 +4,7 @@ public class Record {
private
final
int
eventId
;
private
final
String
occurId
;
private
final
int
taxonId
;
private
final
TaxonType
taxon
;
private
final
int
count
;
private
final
float
latitude
;
...
...
@@ -17,10 +18,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
,
TaxonType
taxon
,
int
count
,
float
latitude
,
float
longitude
,
String
locality
,
int
depth
,
int
year
,
int
month
,
int
day
,
int
hour
,
int
minute
)
{
this
.
eventId
=
eventId
;
this
.
occurId
=
occurId
;
this
.
taxonId
=
taxonId
;
this
.
taxon
=
taxon
;
this
.
count
=
count
;
this
.
latitude
=
latitude
;
...
...
@@ -35,7 +37,7 @@ public class Record {
/**
* Gets the event ID
*
* @return The eventid of the
object
* @return The eventid of the
record
*/
public
int
getEventId
()
{
return
eventId
;
...
...
@@ -43,57 +45,65 @@ public class Record {
/**
* Gets the occurrence ID
*
* @return The occurence ID of the
object
* @return The occurence ID of the
record
*/
public
String
getOccurId
()
{
return
occurId
;
}
/**
* Gets the
species
ID
* Gets the
taxon
ID
*
* @return The
species
ID of the
object
* @return The
taxon
ID of the
record
*/
public
int
get
Species
Id
()
{
public
int
get
Taxon
Id
()
{
return
taxonId
;
}
/**
* Gets the
count of the object
* Gets the
taxon type.
*
* @return The count of the object
* @return The taxon type of the record
*/
public
TaxonType
getTaxonType
()
{
return
taxon
;
}
/**
* Gets the individual count of the record
*
* @return The individual count of the record
*/
public
int
getCount
()
{
return
count
;
}
/**
* Gets latitude of the
object
* Gets latitude of the
record
*
* @return The latitude of the
object
* @return The latitude of the
record
*/
public
float
getLatitude
()
{
return
latitude
;
}
/**
* Gets longitude of the
object
* Gets longitude of the
record
*
* @return The longitude of the
object
* @return The longitude of the
record
*/
public
float
getLongitude
()
{
return
longitude
;
}
/**
* Gets year of the
object
* Gets year of the
record
*
* @return The year of the
object
* @return The year of the
record
*/
public
int
getYear
()
{
return
year
;
}
/**
* Gets month of the
object
* Gets month of the
record
*
* @return The month of the
object
* @return The month of the
record
*/
public
int
getMonth
()
{
return
month
;
...
...
@@ -101,9 +111,9 @@ public class Record {
/**
* Gets day of the
object
* Gets day of the
record
*
* @return The day of the
object
* @return The day of the
record
*/
public
int
getDay
()
{
return
day
;
...
...
This diff is collapsed.
Click to expand it.
src/record/TaxonType.java
0 → 100644
+
11
−
0
View file @
d332a9d7
package
record
;
/**
* Enumeration of classifications of Taxa.
* @author Christopher W. Schankula
*
*/
public
enum
TaxonType
{
KINGDOM
,
SUBKINGDOM
,
PHYLUM
,
CLASS
,
ORDER
,
FAMILY
,
SUBFAMILY
,
GENUS
,
SUBGENUS
,
SPECIES
;
}
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