com.tractrac.ResultAPI
Class LiveResult

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

public class LiveResult
extends java.lang.Object

A class representing a live result for sailing The result compares boats on all legs. The live result is limited to one class.


Constructor Summary
LiveResult(com.maptrack.clientsail.data.ResultListBoat resultListBoat, com.maptrack.client.data.EventClass eventClass)
          Create the resultlist from a data-container NOTE: This class will be generated by TracTrac.
 
Method Summary
 LiveResultItem get(int number)
          Get a result for one competitor at a specific rank
 java.lang.String getClassName()
          Get the name of the class
 java.util.UUID getClassUUID()
          Get the uuid of the class
 java.util.List<LiveResultItem> values()
          Get a full list of results for a class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiveResult

public LiveResult(com.maptrack.clientsail.data.ResultListBoat resultListBoat,
                  com.maptrack.client.data.EventClass eventClass)
Create the resultlist from a data-container NOTE: This class will be generated by TracTrac. API users should not need to instantiate this class themselves.

Parameters:
resultListBoat - The data-container used to generate the resultlist
Method Detail

values

public java.util.List<LiveResultItem> values()
Get a full list of results for a class

Returns:
list of resultitems sorted by rank

get

public LiveResultItem get(int number)
Get a result for one competitor at a specific rank

Parameters:
number - number 0 to n on the result list, which corresponds to 1 to (n+1) in rank.
Returns:
LiveResultItem of the given value

getClassName

public java.lang.String getClassName()
Get the name of the class

Returns:
the name of the class the resultlist is for

getClassUUID

public java.util.UUID getClassUUID()
Get the uuid of the class

Returns:
the uuid of the class the resultlist is for