Package bosco :: Module event :: Class MassstartEvent
[hide private]
[frames] | no frames]

Class MassstartEvent

source code

object --+    
         |    
     Event --+
             |
            MassstartEvent

Massstart individual race event.

Instance Methods [hide private]
 
__init__(self, categories, strict=True, header={}, extra_rankings=[], template_dir='templates', print_template='relay.tex', html_template='relay.html', cache=None, store=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
score(self, obj, scoreing_class=None, args=None)
Get the score of an object
source code

Inherited from Event: clear_cache, format_ranking, list_categories, list_courses, list_rankings, ranking, remove_cache, validate

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

Static Methods [hide private]

Inherited from Event (private): _key, _var_key

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, categories, strict=True, header={}, extra_rankings=[], template_dir='templates', print_template='relay.tex', html_template='relay.html', cache=None, store=None)
(Constructor)

source code 

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

Parameters:
  • categories - dict keyed with category names containing category definitions: dicts with the following keys: * 'variants': tuple of course codes that are valid variants for this leg. * 'starttime': start for this category
  • strict - boolean value wheter manual starttimes on the card take precedence over the category starttime (strict = False) or the massstart time is strict (strict = True)
Overrides: object.__init__

See Also: Event for other arguments

score(self, obj, scoreing_class=None, args=None)

source code 

Get the score of an object

Parameters:
  • obj - object to score
  • scoreing_class - scoreing strategy used
  • args - additional arguments for the scoreing class's constructor
Returns:
scoreing result from scoreing_class.score(obj)
Overrides: Event.score
(inherited documentation)