com.tractrac.ResultAPI
Class PerLegResult

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

public class PerLegResult
extends java.lang.Object

A result for one class for all marks


Constructor Summary
PerLegResult(com.maptrack.client.gui.IProgressDataGetter pdg, com.maptrack.client.data.ClientEventRaceData erd, com.maptrack.client.data.EventClass eventClass, com.maptrack.clientsail.data.BoatRaceData brd)
          The constructer for the PerLegResult.
 
Method Summary
 java.lang.String getClassName()
          Get the name of the class
 java.util.UUID getClassUUID()
          Get the UUID of the class
 int getMarkCount()
          Get the number of marks in the sail-course
 MarkResult getMarkResult(int n)
          Get a result-list for a specific mark
 java.util.List<MarkResult> values()
          Get a result-list for each mark in the course
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerLegResult

public PerLegResult(com.maptrack.client.gui.IProgressDataGetter pdg,
                    com.maptrack.client.data.ClientEventRaceData erd,
                    com.maptrack.client.data.EventClass eventClass,
                    com.maptrack.clientsail.data.BoatRaceData brd)
The constructer for the PerLegResult.
Note: Normally not called by API users

Parameters:
pdg - Information about the state of the race
erd - Data about the event
eventClass - The specific class
Method Detail

getMarkCount

public int getMarkCount()
Get the number of marks in the sail-course

Returns:
the number of marks in the sail-course

values

public java.util.List<MarkResult> values()
Get a result-list for each mark in the course

Returns:
a list of results per mark, sorted their natural order (start to finish)

getMarkResult

public MarkResult getMarkResult(int n)
Get a result-list for a specific mark

Parameters:
n - the index of the mark from 0 to N
Returns:
a resul-list for a specific mark for a specific class

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