- if (state_set_ == model_->getReadyActionSet())
- return Action::State::ready;
- if (state_set_ == model_->getRunningActionSet())
- return Action::State::running;
- if (state_set_ == model_->getFailedActionSet())
- return Action::State::failed;
- if (state_set_ == model_->getDoneActionSet())
- return Action::State::done;
- return Action::State::not_in_the_system;
+ if (state_set_ == model_->get_inited_action_set())
+ return Action::State::INITED;
+ if (state_set_ == model_->get_started_action_set())
+ return Action::State::STARTED;
+ if (state_set_ == model_->get_failed_action_set())
+ return Action::State::FAILED;
+ if (state_set_ == model_->get_finished_action_set())
+ return Action::State::FINISHED;
+ if (state_set_ == model_->get_ignored_action_set())
+ return Action::State::IGNORED;
+ THROW_IMPOSSIBLE;