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

Class AbstractRelayScoreing

source code

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

Base class for all relay scoreing classes. This class contains some common mehtods used in relay scoreing.

Instance Methods [hide private]
 
__init__(self, event, cache=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_runs(self, team)
Return a sorted list of all completed runs of a team that have a course out of a given set.
source code

Inherited from AbstractScoreing: score

Inherited from Validator: validate

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]

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]

__init__(self, event, cache=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • cache - scoreing cache
Overrides: object.__init__
(inherited documentation)

_runs(self, team)

source code 

Return a sorted list of all completed runs of a team that have a course out of a given set.

Returns:
dict with the following keys: * finish: finish time of the run * runner: runner id of the run * course: course of the run * validation: validation code * lkm: lkm run on this code * score: score of the run * expected_time: expected time of the run