Launch Method Record¶
Represents a single record in the Startkladde launch_methods table, which
contains one record for each registred launch method. A launch method can be
the name of a winch or a tow plane.
Interface¶
-
class
pysk.db.model.LaunchMethod(id=None, name=None, short_name=None, log_string=None, keyboard_shortcut=None, type=None, towplane_registration=None, person_required=None, comments=None)¶ Startkladde launch method representation
Parameters are ordered in the same order as stored in SQL database. Thus a tuple received from a query can be passed as argument to this constructor.
Parameters: - id – ID of this record in
launch_methodstable. - name (str) – Name of launch method
- short_name (str) – Short name.
- log_string (str) – String used in pilot log book (‘W‘ or ‘FS‘)
- keyboard_shortcut (str) – Keyboard short cut
- type (str) –
Launch type. One of
- ‘airtow‘
- ‘winch‘
- ‘self‘
- towplane_registration (str) – Registration for tow planes
- person_required (int) – A person (pilot, operator) is required for this
launch method. Use
1for true,0for false. - comments (str) – Any comment
-
__eq__(other)¶ Equal comparison
Two launch methods are defined equal, if and only if their names are equal.
Parameters: other ( LaunchMethod) – Instance to compare toReturns: Trueif and only ifselfand other are equal
-
__hash__()¶ Hash for object.
Returns: self.name.__hash__
-
__str__()¶ Convert instance to string
Returns: ‘ name‘
-
static
tableName()¶ Get name of MySQL table, where this data type is used
Returns: ‘launch_methods‘
- id – ID of this record in