public class Record
extends java.lang.Object
Constructor and Description |
---|
Record() |
Record(int heartRate,
int timeStamp,
java.lang.String Artist,
java.lang.String Genre,
java.lang.String Song)
This constructor initializes the data members of the Record object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArtist()
This returns the Artist of the Record
|
java.lang.String |
getGenre()
This returns the Genre of the Record
|
int |
getHeartRate()
This returns the heart rate of the Record.
|
java.lang.String |
getSong()
This returns the Song of the Record
|
int |
getTimeStamp()
This returns the time stamp of the Record.
|
void |
setArtist(java.lang.String newArtist)
This sets the Artist of the Record
|
void |
setGenre(java.lang.String newGenre)
This sets the Genre of the Record
|
void |
setHeartRate(int newRate)
This sets the heart rate of the Record
|
void |
setSong(java.lang.String newSong)
This sets the Song of the Record
|
void |
setTimeStamp(int newStamp)
This sets the time stamp of the Record
|
public Record()
public Record(int heartRate, int timeStamp, java.lang.String Artist, java.lang.String Genre, java.lang.String Song)
heartRate
- : This is the heart rate retrieved from the chest straptimeStamp
- : This is the time stamp retrieved from the Android phoneArtist
- : The Artist name is provided by the Music ModuleGenre
- : The Genre is provided by the Music ModuleSong
- : The Song is provided by the Music Modulepublic java.lang.String getArtist()
public java.lang.String getGenre()
public int getHeartRate()
public java.lang.String getSong()
public int getTimeStamp()
public void setArtist(java.lang.String newArtist)
newArtist
- This is the new Artist to be setpublic void setGenre(java.lang.String newGenre)
newGenre
- This is the new genre to be setpublic void setHeartRate(int newRate)
newRate
- This is the new rate to be setpublic void setSong(java.lang.String newSong)
newSong
- This is the new song to be setpublic void setTimeStamp(int newStamp)
newStamp
- This is the new time stamp to be set