def __init__(self, machine_of_machines):
     StateMachine.__init__(self, machine_of_machines)
     self.error_codes = [
         'REAL xx too long',
         'REAL xx with leading zeros',
         'REAL yy too long',
         'REAL yy with trailing zeros'
     ]
Exemplo n.º 2
0
 def __init__(self, messengerBot, userId, logger):
     """
     reminderEvent: threading event to signal when to stop the reminder thread
     reminderLock: threading lock to make sure user finishes whatever state they're in before getting reminded
     """
     userData = UserReading.query.filter_by(userId=userId).first()
     if userData.nextBook:
         StateMachine.__init__(self, Planner.menu)
     else:
         StateMachine.__init__(self, Planner.welcome)
     self.reminderEvent = threading.Event()
     self.reminderLock = threading.Lock()
     self.plannerContext = PlannerContext(messengerBot, userId,
                                          self.reminderEvent, logger)
 def __init__(self, model):
     StateMachine.__init__(self, NavigateToWaitingArea(), model)
Exemplo n.º 4
0
 def __init__(self):
     StateMachine.__init__(self, S1(False))
Exemplo n.º 5
0
 def __init__(self):
     # Initial state
     StateMachine.__init__(self, GameStates.nightBegins)
Exemplo n.º 6
0
 def __init__(self): 
   # Initial state
   StateMachine.__init__(self, MouseTrap.waiting)
Exemplo n.º 7
0
 def __init__(self, model, table):
     StateMachine.__init__(self, NavigateToTable(), model)
     self.table = table
     self.group_size = model.tables[table-1]
     self.order_items_taken = 0
Exemplo n.º 8
0
 def __init__(self, model, table):
     StateMachine.__init__(self, NavigateToTable(), model)
     self.table = table
Exemplo n.º 9
0
 def __init__(self, model, table):
     StateMachine.__init__(self, NavigateToKitchen(), model)
     self.table_number = table
Exemplo n.º 10
0
 def __init__(self):
     StateMachine.__init__(self, ArmingNoAuth())
     Observable.__init__(self)
Exemplo n.º 11
0
 def __init__(self):
     # Initial state
     StateMachine.__init__(self, TramControl.wait)
Exemplo n.º 12
0
 def __init__(self):
     StateMachine.__init__(self, MouseTrap.waiting)
Exemplo n.º 13
0
 def __init__(self, machine_of_machines):
     StateMachine.__init__(self, machine_of_machines)
     self.error_codes = [
         'INT too long',
         'INT with leading zeros'
     ]
Exemplo n.º 14
0
 def __init__( self, man ):
     if type(man) == type( Game.Man.Man ):
         StateMachine.__init__(self, man )
     else:
         raise TypeError()
Exemplo n.º 15
0
 def __init__(self):
     # Initial state is kid
     StateMachine.__init__(self, Driver.start)
Exemplo n.º 16
0
 def __init__(self):
     StateMachine.__init__(self, AutonomousStateMachine.idle)
Exemplo n.º 17
0
	def __init__(self, rtc, timeout=None):
		StateMachine.__init__(self, timeout=timeout)
		self.name = 'TURN OFF'
		self.rtc = rtc

		self.states['starting'] = State()
 def __init__(self, machine_of_machines):
     StateMachine.__init__(self, machine_of_machines)
     self.error_codes = [
         'Unrecognized Symbol'
     ]
Exemplo n.º 19
0
 def __init__(self):
     # Initial state
     StateMachine.__init__(self, CuteRobot.idle)
 def __init__(self, machine_of_machines):
     StateMachine.__init__(self, machine_of_machines)
Exemplo n.º 21
0
 def __init__(self):
     # Initial State
     StateMachine.__init__(self, DrawingApp.start)
Exemplo n.º 22
0
 def __init__(self, model):
     StateMachine.__init__(self, NavigateToFront(), model)
     self.group_table = None
     self.group_size = 99999
Exemplo n.º 23
0
 def __init__(self):
   # Initial state is kid
   StateMachine.__init__(self, Driver.start)
Exemplo n.º 24
0
 def __init__(self, machine_of_machines):
     StateMachine.__init__(self, machine_of_machines)
     self.error_codes = [
         'ID too long',
     ]
Exemplo n.º 25
0
 def __init__(self, model, table):
     StateMachine.__init__(self, NavigateToTable(), model)
     self.table_number = table
     self.payment_taken = False
     self.user = None
Exemplo n.º 26
0
 def __init__(self):
     StateMachine.__init__(self,ArmingNoAuth())
     Observable.__init__(self)
Exemplo n.º 27
0
 def __init__(self):
   #Intial State
   StateMachine.__init__(self.Filters.clipping)
Exemplo n.º 28
0
 def __init__(self):
     # Initial state
     StateMachine.__init__(self, MouseTrap.waiting)
Exemplo n.º 29
0
 def __init__(self):
     #Initial state
     StateMachine.__init__(self, LionMachine.full)
Exemplo n.º 30
0
 def __init__(self):
     #Initial state
     StateMachine.__init__(self, LionMachine.full)
Exemplo n.º 31
0
 def __init__(self):
     # Starting state
     StateMachine.__init__(self, Drone.Start)