|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--envgen.spec.ltl2buchi.FSA
Implementation of a finite state automaton used for code generation of drivers.
| Field Summary | |
(package private) int |
actualSize
|
(package private) FSAState[] |
fsaStates
Automaton states that keep track of transitions and what states they lead to. |
(package private) int |
initialState
|
(package private) int |
maxSize
|
| Constructor Summary | |
FSA(MultiSet buchi,
int numActions)
Takes a buchi automaton, throws away states that do not confrom to a single event condition, performs simple optimizations. |
|
| Method Summary | |
MultiSet |
filter(MultiSet propositions,
int numActions)
Check whether propositions set conforms to single event condition and rewrites a set in terms of || (vs &&). |
int |
getInitialState()
|
int |
getMaxSize()
|
FSAState[] |
getStates()
|
void |
makeInitial()
Takes one of the initial states, marks it as a new initial state, removes the rest of the initial states, adding their transitions and propositions to the new initial state. |
boolean |
optimize(MultiSet[] propositions)
Collapses states with similar incoming and similar outgoing transitions. |
void |
rearrange(MultiSet[] propositions)
Makes numbering of states continuous, not implemented yet. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
int maxSize
FSAState[] fsaStates
int actualSize
int initialState
| Constructor Detail |
public FSA(MultiSet buchi,
int numActions)
| Method Detail |
public MultiSet filter(MultiSet propositions,
int numActions)
public boolean optimize(MultiSet[] propositions)
public void rearrange(MultiSet[] propositions)
public void makeInitial()
public int getInitialState()
public FSAState[] getStates()
public int getMaxSize()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||