A run is directly connected to a single readout of an SI-Card.
Competitors can have multiple runs during an event, but one run can not
be associated to several SI-Card readouts. You have to create multiple
runs in this case and an appropriate validator class which checks for the
correct sequence of runs (e.g. for a relay).
|
__init__(self,
card,
course=None,
punches=[],
card_start_time=None,
card_finish_time=None,
check_time=None,
clear_time=None,
readout_time=None,
store=None)
Creates a new Run object. |
source code
|
|
|
|
|
add_punch(self,
punch,
sequence_nr=None)
Adds a (stationnumber, punchtime) tuple to the run. |
source code
|
|
|
add_punchlist(self,
punchlist)
Adds a list of (stationnumber, punchtime) tupeles to the run. |
source code
|
|
|
|
(Punch, Control) tuples
|
|
|
check_sequence(self)
Check if punchtimes match punch sequence numbers. |
source code
|
|
|
|
|
|
Inherited from ranking.RankableItem :
finish ,
start
|
|
__storm_table__ = 'run'
|
|
id = Int(primary= True)
|
|
_sicard_id = Int(name= 'sicard')
|
|
sicard = Reference(_sicard_id, 'SICard.id')
|
|
_course_id = Int(name= 'course')
|
|
course = Reference(_course_id, 'Course.id')
|
|
complete = Bool()
|
|
override = Int()
|
|
card_start_time = DateTime()
|
|
manual_start_time = DateTime()
|
|
start_time = property(lambda obj: obj.manual_start_time or obj...
|
|
card_finish_time = DateTime()
|
|
manual_finish_time = DateTime()
|
|
finish_time = property(lambda obj: obj.manual_finish_time or o...
|
|
check_time = DateTime()
|
|
clear_time = DateTime()
|
|
readout_time = DateTime()
|
|
punches = ReferenceSet(id, 'Punch._run_id')
|
|