Svenska Not logged in: Log in | Register

2015-02-20:

Note: Text covers an earlier version.

Result Rules

Updated: 2015-02-20

There are two sets of rules in a result module: one for individual races and one for teams. The purpose of the two sets are the similar, but what symbols are available differs between competitors and teams. For a competitors there is for example the symbol Course, which is the course, but a team has RunnerTime[], which contains the running time for each team member.

It is not necessary to write code for every rule. In many cases the standard rule will work. And if your result module only is for individual races, there is no point in writing code for the rules for team result calculation.

Status Calculation

The Status rule calculates the status of the competitor or team (OK, Disqualified etc.). The standard rule returns the symbol Status, which is the symbol for the status according to default rules. Thus method must return one of the symbols: StatusOK, StatusDNS, StatusMP, StatusDNF, StatusDQ, StatusMAX, StatusUnknown, or StatusNotCompetiting.

Time Calculation

This method is used to calculate the time, in seconds, for the competitor or team. The standard rule returns the symbol Time.

Point Calculation

The method is used to calculate the points (or some other number) for the competitor or team. The interpretation of these points depends entirely on the method result score as defined below.

Result Score Calculation

This is the most important method. It is used to calculate an internal score which is used to sort the competitors or teams and then to assign a place. A lower score means a better place; a negative score is better than any positive score. Equal score implies a shared place.

The default method returns Time if the status is OK, otherwise 900000 + Status. The fastest time gets the lowest score and wins. If the status is not OK, the score is higher than the score for any runner with status OK.
To post a comment, you need to log in.