Bug #961

Comparing component states does not work

Added by C. Emmerich over 12 years ago. Updated over 12 years ago.

Status:ResolvedStart date:03/16/2012
Priority:NormalDue 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

Revision 389
Added by anordman over 12 years ago

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.

Also available in: Atom PDF