From a9173ed5e4e3d51b91991b681b6688d4e6744b5b Mon Sep 17 00:00:00 2001 From: miettinen Date: Tue, 11 Jun 2013 07:33:09 +0000 Subject: [PATCH] Update sensitivity chart each time a new result file is read to avoid possibly missing some of the last results (refs #4326). git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27519 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../manager/SysdynSensitivityAnalysisExperiment.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynSensitivityAnalysisExperiment.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynSensitivityAnalysisExperiment.java index b52255b3..432ff044 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynSensitivityAnalysisExperiment.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynSensitivityAnalysisExperiment.java @@ -271,6 +271,13 @@ public class SysdynSensitivityAnalysisExperiment extends SysdynExperiment { return this.results.get(0); } + @Override + public void resultsChanged() { + long time = System.nanoTime(); + updateSubscriptions(); + previousVariableUpdateTime = time; + } + @Override public void saveState() { if(results == null || !(results instanceof ArrayList)) -- 2.47.1