Пример #1
0
 def __init__(self):
     seas = {
         ('Waiting', 'Start'): [self.start1, self.start2],
         ('Active', 'Stop'): [self.stop]
     }
     ta = [(self.terminate1, {}), (self.terminate2, {})]
     StateMachine.__init__(self, {}, seas=seas, terminal_actions=ta)
Пример #2
0
 def __init__(self):
     seas = {
         ('Waiting', 'Start') : [self.start1, self.start2],
         ('Active', 'Progress') : [self.progress],
         ('Active', 'Stop') : [self.stop],
         }
     ta = [(self.terminate1, {}), (self.terminate2, {'n' : 13})]
     StateMachine.__init__(self, {}, seas = seas, terminal_actions = ta)
     self.actions = []
Пример #3
0
 def __init__(self):
     seas = {
         ('Waiting', 'Start'): [self.start1, self.start2],
         ('Active', 'Progress'): [self.progress],
         ('Active', 'Stop'): [self.stop],
     }
     ta = [(self.terminate1, {}), (self.terminate2, {'n': 13})]
     StateMachine.__init__(self, {}, seas=seas, terminal_actions=ta)
     self.actions = []
Пример #4
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_action('Waiting', 'BadEvent', self.start1)
Пример #5
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_terminal_action(self.terminate1)
Пример #6
0
 def __init__(self):
     StateMachine.__init__(self, {},
                           terminal_actions=[(self.terminate1, {}),
                                             (self.not_method, {})])
Пример #7
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_action('Waiting', 'Start', extern_start_func)
Пример #8
0
 def __init__(self):
     StateMachine.__init__(self, {},
                           seas={('BadState', 'Start'): []})
Пример #9
0
 def __init__(self):
     StateMachine.__init__(self, {},
                           seas={
                               ('Waiting', 'Start'):
                               [self.start1, self.not_method]
                           })
Пример #10
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_action('Waiting', 'BadEvent', self.start1)
Пример #11
0
 def __init__(self):
     StateMachine.__init__(self, {}, seas = {('BadState', 'Start') : []})
Пример #12
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_action('Waiting', 'Start', extern_start_func)
Пример #13
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_action('BadState', 'Start', self.start1)
Пример #14
0
 def __init__(self):
     StateMachine.__init__(self, {}, terminal_actions = [(self.terminate1, 1)])
Пример #15
0
 def __init__(self):
     StateMachine.__init__(self, {}, terminal_actions = [(self.terminate1, {}), (self.not_method, {})])
Пример #16
0
 def __init__(self):
     StateMachine.__init__(self, {}, seas = {('Waiting', 'Start') : [self.start1, extern_start_func]})
Пример #17
0
 def __init__(self):
     StateMachine.__init__(self, {}, seas = {('Waiting', 'Start') : [self.start1, self.not_method]})
Пример #18
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_action('Waiting', 'Start', self.not_method)
Пример #19
0
 def __init__(self):
     StateMachine.__init__(self, {})
Пример #20
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_terminal_action(self.terminate1)
Пример #21
0
 def __init__(self):
     seas = {('Waiting', 'Start') : [self.start1, self.start2], ('Active', 'Stop') : [self.stop]}
     ta = [(self.terminate1, {}), (self.terminate2, {})]
     StateMachine.__init__(self, {}, seas = seas, terminal_actions = ta)
Пример #22
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_terminal_action(extern_terminate_func)
Пример #23
0
 def __init__(self):
     StateMachine.__init__(self, {},
                           seas={('Waiting', 'BadEvent'): []})
Пример #24
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_terminal_action(self.not_method, 1)
Пример #25
0
 def __init__(self):
     StateMachine.__init__(self, {},
                           seas={
                               ('Waiting', 'Start'):
                               [self.start1, extern_start_func]
                           })
Пример #26
0
 def __init__(self):
     seas = {('Waiting', 'Progress') : []}
     StateMachine.__init__(self, {}, seas = seas)
Пример #27
0
 def __init__(self):
     StateMachine.__init__(self, {},
                           terminal_actions=[(self.terminate1, 1)])
Пример #28
0
 def __init__(self):
     seas = {('Waiting', 'Start') : [self.start]}
     StateMachine.__init__(self, {}, seas = seas)
Пример #29
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_action('BadState', 'Start', self.start1)
Пример #30
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_terminal_action(self.not_method, 1)
Пример #31
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_action('Waiting', 'Start', self.not_method)
Пример #32
0
 def __init__(self):
     seas = {('Waiting', 'Start'): [self.start]}
     StateMachine.__init__(self, {}, seas=seas)
Пример #33
0
 def __init__(self):
     StateMachine.__init__(self, {})
     self.add_terminal_action(extern_terminate_func)
Пример #34
0
 def __init__(self):
     StateMachine.__init__(self, {}, seas = {('Waiting', 'BadEvent') : []})
Пример #35
0
 def __init__(self):
     seas = {('Waiting', 'Progress'): []}
     StateMachine.__init__(self, {}, seas=seas)
Пример #36
0
 def __init__(self):
     StateMachine.__init__(self, {})
Пример #37
0
 def __init__(self):
     StateMachine.__init__(self, {}, seas = 1)
Пример #38
0
 def __init__(self):
     StateMachine.__init__(self, {}, seas={(1, 2, 3): []})
Пример #39
0
 def __init__(self):
     StateMachine.__init__(self, {}, seas=1)
Пример #40
0
 def __init__(self):
     StateMachine.__init__(self, {}, seas = {(1, 2, 3) : []})