Commit 4314e699 authored by Paul Fiterau Brostean's avatar Paul Fiterau Brostean
Browse files

Intermediate commit

parent b58b7920
...@@ -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"""
......
...@@ -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"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment