1. A method for implementing a pre-designed state model, said method comprising: extracting state information from the state model; processing said extracted state information; generating a state code and a state table in response to said processed extracted state information; compiling said state code to generate a runtime code; and implementing the state model by running said runtime code while referring to said state table.