asterics / AsTeRICS

The Assistive Technology Rapid Integration & Construction Set
http://www.asterics.eu
Other
56 stars 27 forks source link

Data propagation (dataReceived) does not stop when stopping Model #15

Open deinhofer opened 10 years ago

deinhofer commented 10 years ago

Some plugins already start sending data before a model is started or still send data after a model was stopped. The ARE should prevent data propagation in such a case.

How to reproduce: 1) Connect a SignalGenerator to another component and generate signals continously. The input port of the receiving component must perform a long term task (e.g. Thread.sleep(500)) 2) Start model 3) Stop model --> The SignalGenerator still sends data packets (calls dataReceived)

deinhofer commented 9 years ago

The problem is not fixed, but not significant any more. Due to the fix of issue #14 no new data can enter a plugin code if it is currently executing. This is also valid for the situation when the plugin is starting. But for stopping a plugin this should still be implemented.