- for (CpuTiAction& action : *actionSet_) {
- if (action.getState() == Action::State::running || action.getState() == Action::State::ready ||
- action.getState() == Action::State::not_in_the_system) {
- action.setFinishTime(date);
- action.setState(Action::State::failed);
- action.heapRemove(model()->getActionHeap());
+ for (CpuTiAction& action : actionSet_) {
+ if (action.get_state() == kernel::resource::Action::State::running ||
+ action.get_state() == kernel::resource::Action::State::ready ||
+ action.get_state() == kernel::resource::Action::State::not_in_the_system) {
+ action.set_finish_time(date);
+ action.set_state(kernel::resource::Action::State::failed);
+ action.heapRemove();