예제 #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) : []})