Combined states, FSM

Posted by bobobobo on Stack Overflow See other posts from Stack Overflow or by bobobobo
Published on 2010-03-19T01:56:08Z Indexed on 2010/03/19 2:01 UTC
Read the original article Hit count: 383

Filed under:

Not sure this is the right place to ask, but is it "correct" to combine states of an FSM?

Say you have an object with

enum State
{
    State1 = 1 << 0,
    State2 = 1 << 1,
    State3 = 1 << 2
} ;

It just so happens that it makes sense to combine states, as in

State myState = State1 | State2 ;

however in FSM theory is this illegal?

© Stack Overflow or respective owner

Related posts about fsm