Exemple #1
0
 def _set_formula(self, val):
     if self.formula is not None:
         raise parser.BadCommandError()
     self.formula = val
Exemple #2
0
 def _set_inc(self, val):
     if self.inc is not None:
         raise parser.BadCommandError()
     assert (val >= 0)
     self.inc = val
Exemple #3
0
 def _set_manual(self, val):
     if self.manual is not None:
         raise parser.BadCommandError()
     self.manual = val
Exemple #4
0
 def _set_time(self, val):
     if self.time is not None:
         raise parser.BadCommandError()
     assert (val >= 0)
     self.time = val
Exemple #5
0
 def _set_clock_name(self, val):
     if self.clock_name is not None:
         # conflicting clock types
         raise parser.BadCommandError()
     self.clock_name = val
Exemple #6
0
 def _set_variant_name(self, val):
     if self.variant_name is not None:
         # conflicting variants
         raise parser.BadCommandError()
     self.variant_name = val
Exemple #7
0
 def _set_side(self, val):
     assert (val in [WHITE, BLACK])
     if self.side is not None:
         raise parser.BadCommandError()
     self.side = val
Exemple #8
0
 def _set_rated(self, val):
     assert (val in [True, False])
     if self.rated is not None:
         raise parser.BadCommandError()
     self.rated = val