eclipselabs / passerelle

Passerelle, an actor-based process engine based on Ptolemy II
5 stars 3 forks source link

Change ErrorObserver to enable automatic model termination in ET domain #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The current ErrorObserver behaves as an infinite/unbounded source actor. 
I.e. it never stops by itself and keeps on iterating, until an explicit stop is 
done via an external (GUI) action or via its requestFinish input port.

In the ET domain, it is feasible to still have a controlled automated model 
shutdown in the presence of ErrorObserver actors.
(In PN-derived domains this is more tricky)

To get this working in the ET-domain, ErrorObserver should be changed so it 
doesn't keep on iterating continuously, checking for errors in its queue in 
each iteration.
Instead it should only set a FireEvent when an error is received.

Original issue reported on code.google.com by erwin...@gmail.com on 10 Sep 2012 at 8:44

GoogleCodeExporter commented 9 years ago

Original comment by erwin...@gmail.com on 10 Sep 2012 at 8:46

GoogleCodeExporter commented 9 years ago
Required a small refactoring on v5.Actor, to expose the moments that 
Director.fireAtCurrentTime() is invoked by default for source actors.

Original comment by erwin...@gmail.com on 10 Sep 2012 at 9:49