Package bosco :: Module ranking :: Class Relay12hScoreing
[hide private]
[frames] | no frames]

Class Relay12hScoreing

source code

   object --+                
            |                
CachingObject --+            
                |            
 AbstractScoreing --+        
                    |        
   object --+       |        
            |       |        
CachingObject --+   |        
                |   |        
        Validator --+        
                    |        
AbstractRelayScoreing --+    
                        |    
         Relay24hScoreing --+
                            |
                           Relay12hScoreing

This class is both a valiadtion and a scoreing strategy. It implements the different validation algorithm of the 12h relay.

Instance Methods [hide private]
 
_omitted_runners(self, team)
The order of the runners for the 12h relay is free.
source code
 
validate(self, team)
Validate the runs of this team according to the rules of the 12h orienteering event.
source code

Inherited from Relay24hScoreing: __init__, score

Inherited from AbstractRelayScoreing (private): _runs

Inherited from CachingObject (private): _from_cache, _to_cache

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  START = re.compile('^SF[1-2]$')
  NIGHT = re.compile('^$')
  DAY = re.compile('^[LS][DE][1-4]$')
  FINISH = re.compile('^FF[1-2]$')

Inherited from Relay24hScoreing: POOLNAMES

Inherited from AbstractScoreing: information

Inherited from Validator: DID_NOT_FINISH, DID_NOT_START, DISQUALIFIED, MISSING_CONTROLS, NOT_COMPLETED, OK

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_omitted_runners(self, team)

source code 

The order of the runners for the 12h relay is free. So no runner may be omitted. Runner that give up don't cause a time penalty.

Overrides: Relay24hScoreing._omitted_runners

validate(self, team)

source code 

Validate the runs of this team according to the rules of the 12h orienteering event. The following rules apply:

  • the order of the runners is free the team may change it at any time
  • runs must be run in the following order:
    • 2 start course (Code SF1-2), individually for each team
    • day courses (Codes LDx, LEx, SDx, SEx), free order choosen by team
    • 2 finish courses (Codes FF1-2), same order for each team
Overrides: Validator.validate