com.tractrac.ResultAPI
Class MarkResultItem

java.lang.Object
  extended by com.tractrac.ResultAPI.MarkResultItem

public class MarkResultItem
extends java.lang.Object

Contains all information about a mark-rounding per competitor per mark. Note that not all elements are relevant for the start mark.


Constructor Summary
MarkResultItem()
           
 
Method Summary
 long getAfter()
          Get the time after the leader
 int getDeltarank()
          Get the change (delta) in rank.
 java.lang.String getDescription()
          Get a description of the competitor
 int getLegrank()
          Get the leg-rank
 long getLegtime()
          Get the time used on last leg
 java.lang.String getName()
          Get the name of the competitor
 java.lang.String getNationality()
          Get the nationality of the compeittor.
 int getRank()
          Get the rank of the competitor (overall)
 java.lang.String getShortName()
          Get the short name of the competitor
 double getSOG()
          Get the Speed Over Ground of the last leg
 java.lang.String getTeam()
          Get the name of the team
 double getTopspeed()
          Get the topspeed of the last leg
 double getTraveledDistance()
          Get the travelled distance between last mark and this mark.
 java.util.UUID getUuid()
          Get the UUID of the competitor
 double getVMG()
          Get the VMG for the last leg
 void setAfter(long after)
          Set the time after the leader
 void setDeltarank(int deltarank)
          Set the change in rank.
 void setDescription(java.lang.String description)
          Set the description of the competitor
 void setLegrank(int legrank)
          Set the leg-rank
 void setLegtime(long legtime)
          Set the time used on last leg
 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 setSOG(double SOG)
          Set the speed over ground for the last leg
 void setTeam(java.lang.String team)
          Set the name of the team
 void setTopspeed(double topspeed)
          Set the topspeed of the last leg
 void setTraveledDistance(double traveledDistance)
          Set the travelled distance.
 void setUuid(java.util.UUID uuid)
          Set the UUID of the competitor
 void setVMG(double VMG)
          Set the VMG of the last leg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkResultItem

public MarkResultItem()
Method Detail

getRank

public int getRank()
Get the rank of the competitor (overall)

Returns:
the rank from 1 to N. 1 is returned for the start mark.

setRank

public void setRank(int rank)
Set the rank of the competitor

Parameters:
rank - set the rank from 0 to n

getUuid

public java.util.UUID getUuid()
Get the UUID of the competitor

Returns:
the uuid of the competitor

setUuid

public void setUuid(java.util.UUID uuid)
Set the UUID of the competitor

Parameters:
uuid - set the uuid of the competitor¨

getName

public java.lang.String getName()
Get the name of the competitor

Returns:
the name of the competitor

setName

public void setName(java.lang.String name)
Set the name of the competitor

Parameters:
name - set the name of the competitor

getShortName

public java.lang.String getShortName()
Get the short name of the competitor

Returns:
the short name of the competitor

setShortName

public void setShortName(java.lang.String shortName)
Set the short name of the competitor

Parameters:
shortName - set the short name of the competitor

getNationality

public java.lang.String getNationality()
Get the nationality of the compeittor. The nationality is a three letter code according to IOC standards.

Returns:
the nationality of the competitor

setNationality

public void setNationality(java.lang.String nationality)
Set the nationality of the competitor.

Parameters:
nationality - set the nationality of the competitor

getTeam

public java.lang.String getTeam()
Get the name of the team

Returns:
the team the competitor belongs to

setTeam

public void setTeam(java.lang.String team)
Set the name of the team

Parameters:
team - set the team the competitor belongs to

getDescription

public java.lang.String getDescription()
Get a description of the competitor

Returns:
the description of the competitor

setDescription

public void setDescription(java.lang.String description)
Set the description of the competitor

Parameters:
description - set the description of the competitor

getDeltarank

public int getDeltarank()
Get the change (delta) in rank.

Returns:
the diffence in rank between this mark in the last mark. 0 is returned for the start mark.

setDeltarank

public void setDeltarank(int deltarank)
Set the change in rank.

Parameters:
deltarank - set the difference in rank between this mark and the last mark

getAfter

public long getAfter()
Get the time after the leader

Returns:
number milliseconds after the leader. 0 is returned for the start mark.

setAfter

public void setAfter(long after)
Set the time after the leader

Parameters:
after - set number of milliseconds after the leader

getLegrank

public int getLegrank()
Get the leg-rank

Returns:
the rank looking only at the last leg. 1 is returned for the start mark.

setLegrank

public void setLegrank(int legrank)
Set the leg-rank

Parameters:
legrank - set the rank only looking at the last leg

getLegtime

public long getLegtime()
Get the time used on last leg

Returns:
the time used for the last leg in milliseconds. 0 is returned for the start mark.

setLegtime

public void setLegtime(long legtime)
Set the time used on last leg

Parameters:
legtime - set the time used for the last leg in milliseconds

getSOG

public double getSOG()
Get the Speed Over Ground of the last leg

Returns:
the speed over ground (SOG) in knots as measured by distance / time. NaN is returned for the start mark.

setSOG

public void setSOG(double SOG)
Set the speed over ground for the last leg

Parameters:
SOG - set the speed over ground

getVMG

public double getVMG()
Get the VMG for the last leg

Returns:
the VMG (velocity made good) in knots measured as distance between marks / time used on leg. NaN is returned for the start mark.

setVMG

public void setVMG(double VMG)
Set the VMG of the last leg

Parameters:
VMG - set the velocity made good

getTopspeed

public double getTopspeed()
Get the topspeed of the last leg

Returns:
the topspeed measured over 10 seconds in km/h. NaN is returned for the start mark.

setTopspeed

public void setTopspeed(double topspeed)
Set the topspeed of the last leg

Parameters:
topspeed - set the topspeed measured over 10 seconds.

getTraveledDistance

public double getTraveledDistance()
Get the travelled distance between last mark and this mark.

Returns:
the traveled distance in meters, measuring from position at last markrounding to position at this markrounding. NaN is returned for the start mark.

setTraveledDistance

public void setTraveledDistance(double traveledDistance)
Set the travelled distance.

Parameters:
traveledDistance - set the traveled distance.