public class ActivityRecordGps extends ActivityRecord
Modifier and Type | Field and Description |
---|---|
float |
unknownFloat1 |
float |
unknownFloat2 |
int |
unknownInt1 |
int |
unknownInt2 |
int |
unknownInt3 |
int |
unknownInt4 |
int |
unknownInt5 |
int |
unknownInt6 |
batteryLevel, dateTime, INVALID, localTimeZone, utcTimeZone
Constructor and Description |
---|
ActivityRecordGps() |
Modifier and Type | Method and Description |
---|---|
void |
dumpRecord()
Dump the record for debugging purposes
|
void |
dumpRecordCsv(Writer writer)
Dump all the record fields of this record
|
void |
dumpRecordCsvHeader(Writer writer)
Dump the header containing all record fields
|
boolean |
equals(ActivityRecord record)
Checks if this record equals the record passed
|
double |
getCalories()
This method returns the energy burned
|
double |
getCumulativeAscend()
Get cumulative ascend
|
double |
getCumulativeDecend()
Get cumulative decend
|
double |
getCycles()
This method returns the cycles
|
double |
getDerivedElevation() |
double |
getDistance()
This method returns the cumulative distance
|
int |
getEhpe()
Returns the estimated horizontal precision error
|
double |
getElevation1()
Get elevation
|
double |
getElevation2()
Get elevation
|
int |
getElevationStatus()
Get the elevation status
|
int |
getEvpe()
Returns the estimated horizontal vertical error
|
int |
getFitnessPoints()
Returns the fitness point counter value
|
int |
getHdop()
Returns the horizontal dilution of precision
|
double |
getHeading()
This method returns the heading
|
int |
getHeartRate()
Returns the heart rate value
|
double |
getInstantaneousSpeed()
Returns the instantaneous speed
|
double |
getLatitude()
This method returns the latitude
|
double |
getLongitude()
This method returns the latitude
|
int |
getMovementState()
Gets the movement state
|
double |
getRawLatitude()
Returns the unprocessed latitude value
|
double |
getRawLongitude()
Returns the unprocessed longitude value
|
double |
getSpeed()
Returns the speed
|
int |
getTemperature()
Gets the value of the temperature
|
boolean |
hasHeightValue()
Returns whether this record contains height values
|
void |
setCalories(double calories)
This method sets the calories
|
void |
setCoordinate(double lat,
double lon)
This method sets the coordinate
|
void |
setCumulativeAscend(double ascend)
Set barometric cumulative ascend
|
void |
setCumulativeDecend(double descend)
Set cumulative decend
|
void |
setCycles(double cycles)
This method sets number of cycles
|
void |
setDerivedElevation(double elevation) |
void |
setDistance(double distance)
This method sets the cumulative distance since the start
of the activity
|
void |
setElevation1(double elevation)
Set barometric elevation
|
void |
setElevation2(double elevation)
Set gps(?) elevation
|
void |
setElevationStatus(int status)
Set the elevation status.
|
void |
setFitnessPoints(int time,
int points)
Sets the Fitness points.
|
void |
setHeading(double heading)
This method sets the heading
|
void |
setHeartRate(int time,
int heartRate)
Sets the heart rate
|
void |
setInstantaneousSpeed(double speed)
Sets the instantaneous speed at the sample time
|
void |
setMovementState(int state)
Sets the value of the movement state, some state derived from
speed
|
void |
setPrecision(int ehpe,
int evpe,
int hdop)
Sets the precision of the measurement
|
void |
setRawCoordinate(double lat,
double lon)
If the lat and lon as set with setCoordinate() have been processed,
for example smoothed, this raw lat and raw lon can be set to the
original, non-processed value
|
void |
setSpeed(double speed)
Sets the speed averaged over the sample period
|
void |
setTemperature(int temperature)
Sets the value of the temperature
|
compareTo, getBatteryLevel, setBatteryLevel, setLocalTimeZone, setUtcTime
public int unknownInt1
public int unknownInt2
public int unknownInt3
public int unknownInt4
public int unknownInt5
public int unknownInt6
public float unknownFloat1
public float unknownFloat2
public void setCoordinate(double lat, double lon)
lat
- Latitudelon
- Longitudepublic double getLatitude()
public double getLongitude()
public void setRawCoordinate(double lat, double lon)
lat
- Non-processed latitude valuelon
- Non-processed longitude valuepublic double getRawLatitude()
public double getRawLongitude()
public void setSpeed(double speed)
speed
- The speed in m/spublic double getSpeed()
public void setTemperature(int temperature)
temperature
- The temperature in deg. Cpublic int getTemperature()
public void setInstantaneousSpeed(double speed)
speed
- The speed in m/spublic double getInstantaneousSpeed()
public void setCalories(double calories)
calories
- Calories in kCal;public double getCalories()
public void setHeading(double heading)
heading
- The heading in degrees (0-360);public double getHeading()
public void setDistance(double distance)
distance
- The distance in m;public double getDistance()
public void setCycles(double cycles)
cycles
- Cycles. For running:, for cycling:public double getCycles()
public void setElevation1(double elevation)
elevation
- Elevation in mpublic double getElevation1()
public void setElevation2(double elevation)
elevation
- Elevation in mpublic double getElevation2()
public boolean hasHeightValue()
public void setDerivedElevation(double elevation)
public double getDerivedElevation()
public void setCumulativeAscend(double ascend)
ascend
- Elevation gain in mpublic double getCumulativeAscend()
public void setCumulativeDecend(double descend)
descend
- Elevation gain in mpublic double getCumulativeDecend()
public void setElevationStatus(int status)
status
- The status bytepublic int getElevationStatus()
public void setHeartRate(int time, int heartRate)
time
- Time stamp of heart rate (epoch), UTCheartRate
- The heart rate in bpmpublic int getHeartRate()
public void setFitnessPoints(int time, int points)
time
- Time stamp of heart rate (epoch), UTCpoints
- The fitness pointspublic int getFitnessPoints()
public void setPrecision(int ehpe, int evpe, int hdop)
ehpe
- Estimated horizontal precision error in cmevpe
- Estimated vertical precision error in cmhdop
- Horizontal Dilution of Precision (https://en.wikipedia.org/wiki/Dilution_of_precision_(navigation)#Meaning_of_DOP_Values))public int getEhpe()
public int getEvpe()
public int getHdop()
public void setMovementState(int state)
state
- 0-standing still, 1-reduced speed, 2-movingpublic int getMovementState()
public boolean equals(ActivityRecord record)
equals
in class ActivityRecord
record
- Record to compare topublic void dumpRecord()
public void dumpRecordCsvHeader(Writer writer) throws IOException
dumpRecordCsvHeader
in class ActivityRecord
writer
- Writer to dump toIOException
- Thrown when an error occurs during writingpublic void dumpRecordCsv(Writer writer) throws IOException
dumpRecordCsv
in class ActivityRecord
writer
- Writer to dump toIOException
- Thrown when an error occurs during writingCopyright © 2020. All rights reserved.