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

Class Relay24hEvent

source code

object --+    
         |    
     Event --+
             |
            Relay24hEvent

Event class for the 24h orientieering relay.

Instance Methods [hide private]
 
__init__(self, starttime_24h, starttime_12h, speed, header={}, duration_24h=timedelta(hours=24), duration_12h=timedelta(hours=12), extra_rankings=[], template_dir='templates', print_template='24h.tex', html_template='24h.html', cache=None, store=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_get_team_strategy(self, team, args) source code
 
_get_run_strategy(self, run, args) source code
 
validate(self, obj, validator_class=None, args=None)
Get a validator
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

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, starttime_24h, starttime_12h, speed, header={}, duration_24h=timedelta(hours=24), duration_12h=timedelta(hours=12), extra_rankings=[], template_dir='templates', print_template='24h.tex', html_template='24h.html', cache=None, store=None)
(Constructor)

source code 

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

Parameters:
  • header - gerneral information for the ranking header. Typical keys: 'organiser', 'map', 'place', 'date', 'event'
  • extra_rankings - list of extra rankings
  • template_dir - templates directory
  • print_template - template for printing (latex)
  • html_template - template for html output (screen display)
  • cache - Cache to use for this object
  • store - Store to retrieve possible rankings
Overrides: object.__init__
(inherited documentation)

validate(self, obj, validator_class=None, args=None)

source code 

Get a validator

Parameters:
  • obj - object to validate,
  • validator_class - validation class used
  • args - dict of keyword arguments for the validation strategy object
Returns:
validation result from validator_class.validate(obj)
Overrides: Event.validate
(inherited documentation)

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)