TelluIoT / ThingML

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

Instance initialisation order #200

Closed jakhog closed 6 years ago

jakhog commented 6 years ago

It seems that the tests assume that instances will be initialised in a specific order when there are dependencies between them (in terms of connectors). In my opinion this is not necessary, and does not make a lot of sense.

As long as messages sent from one instance (e.g. in an on entry) is not lost/ignored because other instances are are not ready yet, then any order of initialisation should be fine. Right?

In particular, I am talking about these tests:

In my opinion, any order of ABCDE should be allowed as output in these tests (making them useless), and if we want to make sure that messages are not lost during initialisation, we should rather make new tests that check that.

Do you agree?

brice-morin commented 6 years ago

Yes, I think the important is not to lose the messages during initialization. Can you write those new tests?