Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351026 - Attribute with initial values
Summary: Attribute with initial values
Status: CLOSED FIXED
Alias: None
Product: eTrice
Classification: Modeling
Component: Core (show other bugs)
Version: 0.1.0   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: 0.1.0
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-03 10:37 EDT by Thomas Jung CLA
Modified: 2011-12-16 02:45 EST (History)
2 users (show)

See Also:
hrr: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Jung CLA 2011-07-03 10:37:46 EDT
It should be possible to assign init values to attributes of actors.
Comment 1 Henrik Rentz-Reichert CLA 2011-07-04 03:18:07 EDT
In this context there are several things to be discussed.
- data classes could be initialized (in the default constructor)
- data class members in data classes and actor classes should be instantiated

For the actor class data can be initialized in the top level initial transition. This would be the "state machine way" to do it.
Also, we could offer a possibility to init data in the constructor.
But as our experience with the precursor tool Trice shows the static initialization per class falls too short. In general data vary from instance to instance and the whole configuration problem has to be solved on the application level.

My opinion is that we should add data class initialization but don't offer an initialization mechanism for actor classes.
Comment 2 Henrik Rentz-Reichert CLA 2011-07-08 10:14:21 EDT
done with
ee93b9edd438fb8bf338a927b4ee4e651fcd400f
Comment 3 Henrik Rentz-Reichert CLA 2011-12-16 02:45:28 EST
closed resolved bug