eclipse-4diac / 4diac-forte

Eclipse Public License 2.0
29 stars 32 forks source link

Allow multiple ecet to be compiled #271

Open cochicde opened 3 weeks ago

cochicde commented 3 weeks ago

Move the construction of the ecet outside of the class and allow to have multiple ones. I added a fake ecet which basically doesn't execute any event unless it's told to do so using public functions. Triggering of events and newEventChains can be hijacked to have full control of the list of events. Adding and removing events from the list is also possible.

Performance-wise there's no change, since the previous version was also calling a function returning a pointer to a Ecet.

I introduced many fake thinks in the past weeks, so I'll move them into their own folder to clearly separate what belongs to testing/simulation stuff. But I'll do that in a separate PR.