New code structure
[deliverable/lttng-analyses.git] / linuxautomaton / linuxautomaton / automaton.py
1 from .net import NetStateProvider
2
3
4 class State:
5 def __init__(self):
6 self.hello = 23
7
8 def _incr_hello(self):
9 self.hello += 5
10
11
12 class Automaton:
13 def __init__(self):
14 self._state = State()
15 self._state_providers = [
16 NetStateProvider(self._state),
17 ]
18
19 def process_event(self, ev):
20 for sp in self._state_providers:
21 sp.process_event(ev)
22
23 @property
24 def state(self):
25 return self._state
This page took 0.034345 seconds and 5 git commands to generate.