Enhancement #2310

Add documentation about CCA lifecycle states

Added by N. Dehio almost 9 years ago. Updated almost 9 years ago.

Status:FeedbackStart date:06/02/2015
Priority:NormalDue date:
Assignee:N. Dehio% Done:

0%

Category:-
Target version:-

Description

At the moment I can not find any description about states and there is no example available here:
http://docs.cor-lab.org/cca-manual/trunk/html/examples.html

cca-states.png - cca lifecycle states (29.8 KB) Anonymous, 06/02/2015 04:04 PM

History

#1 Updated by Anonymous almost 9 years ago

  • Tracker changed from Bug to Enhancement
  • Status changed from New to Feedback
  • Assignee changed from Anonymous to N. Dehio

Did you check the already existing documentation at
http://docs.cor-lab.de//cca-manual/trunk/html/lifecycle.html#lifecycle

However, this and should be extended. Is anything particular missing in this documentation from your point of view?

#2 Updated by N. Dehio almost 9 years ago

Thanks!

In State.h I found the following list:

/**
 * Possible component states
*/
enum State {
STATE_RESET = 32,
STATE_PAUSE = 31,
STATE_ACQUIRE = 24,
STATE_OFFLLEARN = 23,
STATE_ONLLEARN = 22,
STATE_EXEC = 21,
STATE_LOAD = 12,
STATE_PERSIST = 11,
STATE_OFF = 0
};

What is the difference between OFF / PAUSE / RESET ?

#3 Updated by Anonymous almost 9 years ago

This information is indeed missing. Have a look at the rst componentstate definition where there is a bit information on the state semantics: https://code.cor-lab.org/projects/rst/repository/revisions/master/entry/proto/sandbox/rst/cbse/ComponentState.proto

I also just created an overview on the states and their hooks, see attached overview image (a dropped the state transitions for now, as all states can be transitioned to from any other state, which makes the graph quite complex): "on entry" hooks are executed when a state is entered, "on trigger" hooks are executed when a the processing startegy of a component decides to process, and "on exit" hooks are executed when a state is left.

Also available in: Atom PDF