Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341698 - minimal version of detail level language
Summary: minimal version of detail level language
Status: RESOLVED WONTFIX
Alias: None
Product: eTrice
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Thomas Schuetz CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-02 09:09 EDT by Thomas Schuetz CLA
Modified: 2018-08-17 03:29 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schuetz CLA 2011-04-02 09:09:44 EDT
To enable code completion and refactoring, a minimal version of a detail level language shoul be implemented.
Requirements: 
- Mix with generated detail level language should be possible
- sending of messages should be supported (port.message(argumentlist))

In the Fischertechnik demo model almost 100% of the implementation level code (e.g. Java) could be expressed only by adding port.message(argumentlist)
Examples:
	State LinearUnitBackwards {
		entry {
			"drive.changeDirection(true);"
			"drive.start();"
			"timeout.Start(3000);"
			"sensorBack.getStatus();"
		}
	}
-> could be expressed directly:
	State LinearUnitBackwards {
		entry {
			drive.changeDirection(true)
			drive.start()
			timeout.Start(3000)
			sensorBack.getStatus()
		}
	}
A mix with the implementation level code could look like this:
	action {
		"if(x) lr.setOn();"
		"else lr.setOff();"
	}
-> could be expressed like this:
	action {
		"if(x)" 
			lr.setOn()
		"else"
			lr.setOff()
	}
Comment 1 Henrik Rentz-Reichert CLA 2012-02-27 13:07:46 EST
As a first step an interface for detail code translation is provided.
For Java nothing is translated, for C port.message() is translated.

Done with
2eef2a2c385bd5a3716cd390f7c14e6374f8cd5d
Comment 2 Henrik Rentz-Reichert CLA 2012-02-27 13:09:19 EST
We proposed a full solution of this subject as idea for the 2012 Google Summer of Code on
http://wiki.eclipse.org/index.php?title=Google_Summer_of_Code_2012_Ideas#Generic_Action_Code_Language
Comment 3 Henrik Rentz-Reichert CLA 2018-08-17 03:29:46 EDT
outdated bug - re-open if still relevant