| Version: | 30.05.2011 |
|---|---|
| Authors: | knopsa, Alexander Weigl (re-documentation for sphinx) |
Checks if the given ea is consistent.
| Returns: | false, iff the ea uses any state/token, which is not a member of the state-set/ alphabet. |
|---|
Loads a model from the given path.
Parameter: :param filename: the path of the source-file :param alt_order: the order of the tulple in case of an automata.
If false then[Q, Sigma, delta, start, F] else [Sigma, Q, delta, start, F]
The Return-value is a finite state machine or a regular expression.
Finite State Machine: A finite state Machine is a list [Q, Sigma, delta, start, F] or [Sigma, Q, delta, start, F] with - Q is a set of states (set of int values) - Sigma is a a alphabet (set of str values of length 1) - delta is the transition function (dictionary) - start is the start-state (int value) - F is a set of accept states (set of int values)
Regular Expression: The return value is a list [exp, Sigma] with - exp is the regular Expression (str vaule) - Sigma is a a alphabet (set of int values)
| Returns: | a list of five elements, see above |
|---|
Writes an DEA to the given file.
| Parameters: |
|
|---|---|
| Returns: | true, if the file was written successfully. A deterministic finite-state Machine is a list |
[Q, Sigma, delta, start, F] with - Q is a set of states (set of int values) - Sigma is a a alphabet (set of str values of length 1) - delta is the transition function
(dictionary: state X token -> state)
Writes an ENEA to the given file.
| Parameters: |
|
|---|
:return:true, iff the file was written successfully.
A nondeterministic finite-state machines with epsilon moves is a list [Q, Sigma, delta, start, F] with - Q is a set of states (set of int values) - Sigma is a a alphabet (set of str values of length 1) - delta is the transition function
(dictionary: state X (token + epsilon) -> set of states)
Writes an NEA to the given file.
| Parameters: |
|
|---|---|
| Returns: | true iff the file was written successfully. |
A nondeterministic finite-state machines with epsilon moves Machine is a list [Q, Sigma, delta, start, F] with - Q is a set of states (set of int values) - Sigma is a a alphabet (set of str values of length 1) - delta is the transition function
(dictionary: state X (token + epsilon) -> set of states)