Base class for all kinds of courses. Special kinds of courses should
be derived from this class. Derived class must at least override the
append or validate methods. This class implements an unordered set of
controls as a course without any validation.
The distance and altitude attributes are in meters and may be
None.
|
__init__(self,
code,
length=None,
climb=None,
validator=None,
scoreing=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
append(self,
control,
length=None,
climb=None)
Append a single control to the course. |
source code
|
|
|
insert(self,
control,
index,
length=None,
climb=None)
Insert an additional control into the course at an arbitrary
postition. |
source code
|
|
|
extend(self,
control_list)
Extend the course with the controls from control_list. |
source code
|
|
|
lkm(self)
Returns:
'Leistungskilometer': length/1000.0+climb/100.0 |
source code
|
|
|
|
|
|
|
controllist(self)
@return list of controls in this course with sistations that are not
overriden. |
source code
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|