TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
102 stars 32 forks source link

Visibility of sessions' properties #111

Closed brice-morin closed 8 years ago

brice-morin commented 8 years ago

Properties defined in a session are currently not accessible to states, etc defined in this session. It is not possible to define them at the top level in the component, as a session's properties are specific to that session.

Other compilers might also face the same issue

brice-morin commented 8 years ago

Composite, State, Region, etc are reified as anonymous classes, which makes it difficult, if not impossible, to access getters and setters. Composite, and Session should be reified as first-class class to solve the problem.

brice-morin commented 8 years ago

The new strategy (session being proper instance of the parent's Thing) should solve those issues