]> gerrit.simantics Code Review - simantics/platform.git/commit
Allow simulation stop handling in Simantics/Sequences 73/3273/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 20 Sep 2019 11:17:46 +0000 (14:17 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 20 Sep 2019 11:42:59 +0000 (11:42 +0000)
commit8d1b4f05e2b2302ad9dabc74f54bd45997ab3a4b
tree93e97170b9e77032fa606bcbe9dd964f027798fe
parentf37ba060464d2230f86c6786572d33026800eedc
Allow simulation stop handling in Simantics/Sequences

`StopReason` enumerates supported reasons for simulation stops which is
delivered once to functions registered through `executeWhenStopped`.

It is up to the domain-specific sequence runners to implement the actual
identification of simulation stopping situations and to invoke
AbstractActionContext.stop(StopReason reason) when needed.

gitlab #385

Change-Id: I2bc354b3bf433909c5224f82c98c17b1ec564920
(cherry picked from commit 2dd0e97bbe55e691d86a4254e1495ebddd7d494a)
bundles/org.simantics.simulation.sequences/scl/Simantics/Sequences.scl
bundles/org.simantics.simulation.sequences/src/org/simantics/simulation/sequences/action/AbstractActionContext.java
bundles/org.simantics.simulation.sequences/src/org/simantics/simulation/sequences/action/ActionContext.java
bundles/org.simantics.simulation.sequences/src/org/simantics/simulation/sequences/action/StopReason.java [new file with mode: 0644]