Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345814 - wrong init transition will be fired
Summary: wrong init transition will be fired
Status: CLOSED WORKSFORME
Alias: None
Product: eTrice
Classification: Modeling
Component: Generators (show other bugs)
Version: 0.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: 0.1.0
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-14 12:29 EDT by Thomas Jung CLA
Modified: 2011-12-16 02:45 EST (History)
1 user (show)

See Also:
hrr: indigo+


Attachments
testmodel (2.96 KB, text/plain)
2011-05-14 12:29 EDT, Thomas Jung CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Jung CLA 2011-05-14 12:29:31 EDT
Created attachment 195647 [details]
testmodel

If a FSM has a State with substate, the substate init transition will be used as init transition instead of the top level init transition. Attached a model to reproduce the fault.
Comment 1 Henrik Rentz-Reichert CLA 2011-05-18 05:14:25 EDT
For the attached model the generator produces

	public void executeInitTransition() {
		int chain = CHAIN_TRANS_INITIAL_TO__blinking;

which is the right transition.
The chain starting at the initial transition of the sub-state 'blinking' would be CHAIN_blinking_TRANS_INITIAL_TO__off.

I've also verified in the code that the generator is picking the initial transition of the top level state machine.
Comment 2 Henrik Rentz-Reichert CLA 2011-12-16 02:45:45 EST
closed resolved bug