Example #1
0
 def _set_formula(self, val):
     if self.formula is not None:
         raise parser.BadCommandError()
     self.formula = val
Example #2
0
 def _set_inc(self, val):
     if self.inc is not None:
         raise parser.BadCommandError()
     assert (val >= 0)
     self.inc = val
Example #3
0
 def _set_manual(self, val):
     if self.manual is not None:
         raise parser.BadCommandError()
     self.manual = val
Example #4
0
 def _set_time(self, val):
     if self.time is not None:
         raise parser.BadCommandError()
     assert (val >= 0)
     self.time = val
Example #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
Example #6
0
 def _set_variant_name(self, val):
     if self.variant_name is not None:
         # conflicting variants
         raise parser.BadCommandError()
     self.variant_name = val
Example #7
0
 def _set_side(self, val):
     assert (val in [WHITE, BLACK])
     if self.side is not None:
         raise parser.BadCommandError()
     self.side = val
Example #8
0
 def _set_rated(self, val):
     assert (val in [True, False])
     if self.rated is not None:
         raise parser.BadCommandError()
     self.rated = val