Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rick Smetsers
z3gi
Commits
4314e699
Commit
4314e699
authored
Oct 03, 2017
by
Paul Fiterau Brostean
Browse files
Intermediate commit
parent
b58b7920
Changes
2
Hide whitespace changes
Inline
Side-by-side
z3gi/model/__init__.py
View file @
4314e699
...
@@ -32,6 +32,21 @@ class MultipleTransitionsFired(Exception):
...
@@ -32,6 +32,21 @@ class MultipleTransitionsFired(Exception):
pass
pass
def
defined_formalisms
():
import
inspect
sc
=
dict
()
crt
=
Automaton
to_visit
=
set
(
crt
.
__subclasses__
())
while
len
(
to_visit
)
>
0
:
subclass
=
to_visit
.
pop
()
if
not
inspect
.
isabstract
(
subclass
):
sc
[
subclass
.
__name__
]
=
subclass
else
:
to_visit
.
add
(
subclass
)
return
sc
"""A basic abstract automaton model"""
"""A basic abstract automaton model"""
...
...
z3gi/sut/__init__.py
View file @
4314e699
...
@@ -116,7 +116,6 @@ class SUT(metaclass=ABCMeta):
...
@@ -116,7 +116,6 @@ class SUT(metaclass=ABCMeta):
"""Runs the list of inputs or input signatures comprising the input interface"""
"""Runs the list of inputs or input signatures comprising the input interface"""
pass
pass
class
SUTType
(
Enum
):
class
SUTType
(
Enum
):
IORA
=
1
IORA
=
1
RA
=
2
RA
=
2
...
@@ -133,6 +132,10 @@ class SUTType(Enum):
...
@@ -133,6 +132,10 @@ class SUTType(Enum):
def
is_transducer
(
self
):
def
is_transducer
(
self
):
return
not
self
.
is_acceptor
()
return
not
self
.
is_acceptor
()
def
scalable_sut_classes
():
sc
=
dict
()
for
subclass
in
ScalableSUTClass
.
__subclasses__
():
sc
[
subclass
.
__name__
[:
-
5
]]
=
subclass
class
SUTClass
(
metaclass
=
ABCMeta
):
class
SUTClass
(
metaclass
=
ABCMeta
):
"""for a class of systems (say stacks, or logins) provides means of instantiating SUTs of different types"""
"""for a class of systems (say stacks, or logins) provides means of instantiating SUTs of different types"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment