From e041a502fb84424aa10c13bbc3ff1b0e956cf02c Mon Sep 17 00:00:00 2001 From: lempinen Date: Mon, 18 Mar 2013 08:34:42 +0000 Subject: [PATCH] Copyright texts (refs #4180) git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27112 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../modelica/data/SimulationResult.java | 1 + .../sysdyn/manager/HistoryDatasetResult.java | 2 +- .../simantics/sysdyn/manager/SaveResultJob.java | 2 +- .../sysdyn/manager/SysdynExperiment.java | 2 +- .../simantics/sysdyn/manager/SysdynModel.java | 16 ++++++++++++++-- .../simantics/sysdyn/manager/SysdynResult.java | 2 +- 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java b/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java index fdfbbf93..369a2814 100644 --- a/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java +++ b/org.simantics.modelica/src/org/simantics/modelica/data/SimulationResult.java @@ -8,6 +8,7 @@ * * Contributors: * VTT Technical Research Centre of Finland - initial API and implementation + * Semantum Oy - Bug #4180 *******************************************************************************/ package org.simantics.modelica.data; diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/HistoryDatasetResult.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/HistoryDatasetResult.java index 4e11e082..700ae07a 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/HistoryDatasetResult.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/HistoryDatasetResult.java @@ -8,7 +8,7 @@ * * Contributors: * VTT Technical Research Centre of Finland - initial API and implementation - * Semantum Oy + * Semantum Oy - Bug #4180 *******************************************************************************/ package org.simantics.sysdyn.manager; diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SaveResultJob.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SaveResultJob.java index c36d5703..797bdc68 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SaveResultJob.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SaveResultJob.java @@ -8,7 +8,7 @@ * * Contributors: * VTT Technical Research Centre of Finland - initial API and implementation - * Semantum Oy - initial API and implementation + * Semantum Oy - Bug #4180 *******************************************************************************/ package org.simantics.sysdyn.manager; diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiment.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiment.java index 98fc43ad..093baadf 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiment.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiment.java @@ -8,7 +8,7 @@ * * Contributors: * VTT Technical Research Centre of Finland - initial API and implementation - * Semantum Oy + * Semantum Oy - Bug #4180 *******************************************************************************/ package org.simantics.sysdyn.manager; diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java index 448deccc..55a72243 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java @@ -8,7 +8,7 @@ * * Contributors: * VTT Technical Research Centre of Finland - initial API and implementation - * Semantum Oy + * Semantum Oy - Bug #4180 *******************************************************************************/ package org.simantics.sysdyn.manager; @@ -90,6 +90,9 @@ public class SysdynModel implements IMappingListener, IModel, VariableSubscripti @SuppressWarnings("rawtypes") private final Map services = new HashMap(); + + + private boolean structureModified = false; /** * Recursively read all module configurations that are used in @@ -268,6 +271,7 @@ public class SysdynModel implements IMappingListener, IModel, VariableSubscripti */ public synchronized boolean update(ReadGraph graph) throws DatabaseException { if(mapping.isDomainModified()) { + structureModified = true; try { mapping.updateRange(graph); @@ -550,5 +554,13 @@ public class SysdynModel implements IMappingListener, IModel, VariableSubscripti for(VariableValueSubscription subscription : snapShot) subscription.update(); } - + + + public boolean isStructureModified() { + return structureModified; + } + + public void setStructureModeified(boolean structureModified) { + this.structureModified = structureModified; + } } diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynResult.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynResult.java index fe54118b..e564d591 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynResult.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynResult.java @@ -8,7 +8,7 @@ * * Contributors: * VTT Technical Research Centre of Finland - initial API and implementation - * Semantum Oy + * Semantum Oy - Bug #4180 *******************************************************************************/ package org.simantics.sysdyn.manager; -- 2.47.1