這些方法實作架構相關的起始設定及清理
例如:
void class::initRelations() { state1 = new state1Class(); // creating the states }; void class::cleanUpRelations() { };