com.tractrac.ResultAPI
Class MarkResult

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

public class MarkResult
extends java.lang.Object

The resultlist for a specific mark for a specific class.


Field Summary
static int LEGTYPE_DOWNWIND
           
static int LEGTYPE_REACHING
           
static int LEGTYPE_UNKNOWN
           
static int LEGTYPE_UPWIND
           
 
Constructor Summary
MarkResult(java.util.List<com.maptrack.client.data.CompetitorMarkPassInfo> markPassInfo, com.maptrack.client.data.EventClass eventClass, MarkResult previousMark, com.maptrack.client.data.ControlPoint cp, double legDirection)
          Constructor for the MarkResult.
 
Method Summary
 MarkResultItem get(int n)
          Get the specific MarkResultItem at index n
 java.lang.String getClassName()
          Get the name of the class
 java.util.UUID getClassUUID()
          Get the UUID of the class
 int getLegType()
          Get the type of leg: LEGTYPE_UPWIND, LEGTYPE_DOWNWIND, LEGTYPE_REACHING or LEGTYPE_UNKNOWN.
 java.lang.String getMarkName()
          Get the UUID of the mark
 java.lang.String getMarkShortName()
          Get the short name of the mark
 java.util.UUID getMarkUUID()
          Get the name of the mark
 java.util.List<MarkResultItem> values()
          Get a complete list of markroundings for one mark for one class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEGTYPE_UNKNOWN

public static final int LEGTYPE_UNKNOWN
See Also:
Constant Field Values

LEGTYPE_UPWIND

public static final int LEGTYPE_UPWIND
See Also:
Constant Field Values

LEGTYPE_DOWNWIND

public static final int LEGTYPE_DOWNWIND
See Also:
Constant Field Values

LEGTYPE_REACHING

public static final int LEGTYPE_REACHING
See Also:
Constant Field Values
Constructor Detail

MarkResult

public MarkResult(java.util.List<com.maptrack.client.data.CompetitorMarkPassInfo> markPassInfo,
                  com.maptrack.client.data.EventClass eventClass,
                  MarkResult previousMark,
                  com.maptrack.client.data.ControlPoint cp,
                  double legDirection)
Constructor for the MarkResult.

NOTE: Constructor is normally not used by API customers.

Parameters:
markPassInfo - Information about the current mark passings
eventClass - Information about the class
previousMark - Information about the previus mark passings
cp - Information about the controlpoint
Method Detail

values

public java.util.List<MarkResultItem> values()
Get a complete list of markroundings for one mark for one class

Returns:
the list of MarkResultItems sorted by rank

get

public MarkResultItem get(int n)
Get the specific MarkResultItem at index n

Parameters:
n - - the index from 0 to N, which corresponds to rank 1 to N+1
Returns:
a MarkResult for a specific mark

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

getMarkUUID

public java.util.UUID getMarkUUID()
Get the name of the mark

Returns:
the uuid of the mark the list is generated for

getMarkName

public java.lang.String getMarkName()
Get the UUID of the mark

Returns:
the name of the mark the list is generated for

getMarkShortName

public java.lang.String getMarkShortName()
Get the short name of the mark

Returns:
the short name of the mark the list is generated for

getLegType

public int getLegType()
Get the type of leg: LEGTYPE_UPWIND, LEGTYPE_DOWNWIND, LEGTYPE_REACHING or LEGTYPE_UNKNOWN.

Note that legtype isn't entered as part of the course defination, but calculated using the following logic: