这些方法实现与框架相关的初始化和清除。
例如:
void class::initRelations() { state1 = new state1Class(); // creating the states }; void class::cleanUpRelations() { };