Package bosco :: Module course :: Class Control
[hide private]
[frames] | no frames]

Class Control

source code

   ??-32 --+    
           |    
base.MyStorm --+
               |
              Control

A control point. Control points are part of one or several courses. The possible orders of the control points in a course is defined with the ControlSequence relation.

Instance Methods [hide private]
 
__init__(self, code, sistation=None, store=None) source code
 
add_sistation(self, sistation)
Add an SIStation to this Control.
source code

Inherited from base.MyStorm (private): _get_store, _set_store

Class Variables [hide private]
  __storm_table__ = 'control'
  id = Int(primary= True)
  code = Unicode()
  override = Bool()
  sistations = ReferenceSet(id, 'SIStation._control_id')

Inherited from base.MyStorm (private): _store

Method Details [hide private]

__init__(self, code, sistation=None, store=None)
(Constructor)

source code 
Parameters:
  • code (unicode) - Code for this control.
  • sistation (SIStation object or int) - SI-Station for this control. If this is an integer, a corresponding SIStation object is created if necessary. If sistation is None a SIStation with id int(code) ist added if possible.
  • store - Storm store for the sistation. A store is needed if sistation is given as int. The newly created object is automatically added to this store.

add_sistation(self, sistation)

source code 

Add an SIStation to this Control.

Parameters:
  • sistation (SIStation object or int) - SI-Station for this control. If this is an integer, a corresponding SIStation object is created if necessary.