3 ms·
I think the problem with parallel states is the combinatorial explosion of the number of transitions - instead of having O(n) transitions, now you have O(n_1*n_
by bheadmaster 4y ago
I think the problem with parallel states is the combinatorial explosion of the number of transitions - instead of having O(n) transitions, now you have O(n_1*n_2*...*n_k) transitions between all possible k-tuples of parallel states.
- friendzis 4y agoUm... No? Parallel (though hierarchical/recursive would be more fitting term) states are literally designed to fight combinatorial explosion of transitions. Qt docs provide nice, concise summary: https://doc.qt.io/qt-5/statemachine-api.html#using-parallel-states-to-avoid-a-combinatorial-explosion-of-states https://doc.qt.io/qt-5/statemachine-api.html#using-parallel-... Instead of transitioning on multiple parameters you decompose states into respective nested state machines to avoid this explosion