Bug #961
Comparing component states does not work
Status: | Resolved | Start date: | 03/16/2012 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | - | |||
Target version: | - |
Description
In order to let a component get to know in which state it is, component states should be comparable, e.g.
if (this->state == Component::EXECUTION()) { // ... do some stuff } else if (this->state == Component::ONLINELEARNING()) { // ... do some other stuff }
Currently, this comparison is not working!
Associated revisions
Implemented and tested comparison operator for ComponentState
fixes #961
History
#1 Updated by Anonymous over 12 years ago
Asa workaround instead of
this->state == Component::EXECUTION()
do
this->state->getState() == ComponentState::STATE_EXEC
#2 Updated by Anonymous over 12 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset r389.