projects
/
deliverable
/
lttng-analyses.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
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.