Closed luisamaralh closed 5 years ago
Acredito que tenha terminado essa implementação.
int startElement(startState()) = 1; int startElement(state()) = 0; public int quantityStartState (list[State] ls) = isEmpty(ls) ? 0 : startElement(head(ls))+quantityStartState(tail(ls));
Se a quantidade de 'quantityStartState' for maior que 1, a FSM tem mais do que uma estado Inicial
Hi Handrick, would it be possible to use comprehension on the startState(s) of an FSM and then check the resulting number of elements? Nonetheless, I would like to say that there is nothing wrong with your implementations.
I will try refactor, using comprehension.
An FSM must have exactly one initial state.