|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tractrac.ResultAPI.LiveResultItem
public class LiveResultItem
Class representing a competitor at any given point in time, including information about rank etc.
| Constructor Summary | |
|---|---|
LiveResultItem()
|
|
| Method Summary | |
|---|---|
long |
getAfterAtFinish()
Get the time after at finish. |
java.lang.String |
getDescription()
Get the description of the competitor |
double |
getDistanceBehind()
Get the distance to the leader. |
double |
getDistNextMark()
Get the distance to the next mark. |
double |
getDistToFinish()
Get the distance to the finish: On current leg: Using either distance projected onto straigh line between previous and next mark or The distance projected onto the wind vector passing through the next mark On the following legs: The direct distance between the marks |
double |
getHeading()
Get the heading of the competitor |
double |
getLatitude()
Get the latitude of the competitor |
double |
getLongitude()
Get the longitude of the competitor |
java.lang.String |
getName()
Get the name of the competitor |
java.lang.String |
getNationality()
Get the nationality of the competitor. |
int |
getRank()
Get the rank of the competitor |
java.lang.String |
getShortName()
Get the sail-number (short name) of the competitor |
double |
getSpeed()
Get the speed of the boat |
java.lang.String |
getTeam()
Get the name of the competitors team |
java.util.UUID |
getUuid()
Get the UUID of the competitor |
double |
getVmg()
Get VMG in knots measured at a point |
double |
getVmgAverage30s()
Get the in knots VMG averaged over 30 seconds |
boolean |
isHasFinished()
Check whether the competitor has finished the course |
void |
setAfterAtFinish(long afterAtFinish)
Set the time after at finish. |
void |
setDescription(java.lang.String description)
Set the description of the competitor |
void |
setDistanceBehind(double distanceBehind)
Set the distance behind the leader |
void |
setDistNextMark(double distNextMark)
Set the distance to the next mark |
void |
setDistToFinish(double distToFinish)
Set the distance to the finish |
void |
setHasFinished(boolean hasFinished)
Set whether the competitor has finished the course |
void |
setHeading(double heading)
Set the heading of the competitor |
void |
setLatitude(double latitude)
Set the latutide of the competitor |
void |
setLongitude(double longitude)
Set the longitude of the competitor |
void |
setName(java.lang.String name)
' Set the name of the competitor |
void |
setNationality(java.lang.String nationality)
Set the nationality of the competitor |
void |
setRank(int rank)
Set the rank of the competitor |
void |
setShortName(java.lang.String shortName)
Set the short name of the competitor |
void |
setSpeed(double speed)
Set the speed of the boat |
void |
setTeam(java.lang.String team)
Set the name of the competitors team |
void |
setUuid(java.util.UUID uuid)
Set the UUID of the competitor |
void |
setVmg(double vmg)
Set VMG in knots measured at a point |
void |
setVmgAverage30s(double vmgAverage30s)
Set the VMG in knots averaged over 30 seconds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LiveResultItem()
| Method Detail |
|---|
public int getRank()
public void setRank(int rank)
rank - Set the rank from 1 to npublic java.util.UUID getUuid()
public void setUuid(java.util.UUID uuid)
uuid - the uuid of the competitor to setpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the competitor to setpublic java.lang.String getShortName()
public void setShortName(java.lang.String shortName)
shortName - the short name or sail number of the competitor to setpublic java.lang.String getNationality()
public void setNationality(java.lang.String nationality)
nationality - the nationality of the competitor to setpublic java.lang.String getTeam()
public void setTeam(java.lang.String team)
team - the competitor's team to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description if the competitor to setpublic boolean isHasFinished()
public void setHasFinished(boolean hasFinished)
hasFinished - set whether competitor has finishedpublic long getAfterAtFinish()
public void setAfterAtFinish(long afterAtFinish)
afterAtFinish - set the time in milliseconds the competitor is after at finishpublic double getDistanceBehind()
public void setDistanceBehind(double distanceBehind)
distanceBehind - set the distance behind the leaderpublic double getSpeed()
public void setSpeed(double speed)
speed - the speed of the competitor in knotspublic double getDistToFinish()
public void setDistToFinish(double distToFinish)
distToFinish - set the distance to the finishpublic double getDistNextMark()
public void setDistNextMark(double distNextMark)
distNextMark - set the distance to the next markpublic double getHeading()
public void setHeading(double heading)
heading - set the heading of the competitorpublic double getLatitude()
public void setLatitude(double latitude)
latitude - set of the competitor in (degrees).(decimal degrees)public double getLongitude()
public void setLongitude(double longitude)
longitude - set the longitude of the competitor in (degrees).(decimal degrees)public double getVmg()
public void setVmg(double vmg)
vmg - the vmg to setpublic double getVmgAverage30s()
public void setVmgAverage30s(double vmgAverage30s)
vmgAverage30s - the vmgAverage30s to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||