From 92ef86d7e40b2e7d77458680cca07c7d9396fa87 Mon Sep 17 00:00:00 2001 From: lempinen Date: Tue, 29 Oct 2013 14:53:26 +0000 Subject: [PATCH] Minor simupedia updates refs #3511 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@28153 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../simantics/sysdyn/manager/SysdynExperiment.java | 2 +- .../src/org/simantics/sysdyn/utils/ModelUtils.java | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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 6bfd9706..78685a17 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiment.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiment.java @@ -387,7 +387,7 @@ public class SysdynExperiment extends Experiment implements IDynamicExperiment, */ public void resultsChanged() { long time = System.nanoTime(); - if(time - previousVariableUpdateTime > 100000000) { + if(time - previousVariableUpdateTime > 10000000) { updateSubscriptions(); previousVariableUpdateTime = time; } diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/utils/ModelUtils.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/utils/ModelUtils.java index c7923c8a..ac88d5be 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/utils/ModelUtils.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/utils/ModelUtils.java @@ -185,11 +185,11 @@ public class ModelUtils { if(graph.hasStatement(SCLModule, L0.SCLModule_definition)) graph.deny(SCLModule, L0.SCLModule_definition); graph.claimLiteral(SCLModule, L0.SCLModule_definition, - "include \"http://www.simantics.org/DB\"\n" + - "include \"http://www.simantics.org/Variables\"\n" + - "include \"" + graph.getURI(model) + "\"\n" + - "include \"http://www.simantics.org/Documentation-1.1/Components\"\n" + - "include \"http://www.simantics.org/Documentation-1.1/Properties\" as Properties\n" + - "include \"http://www.simantics.org/Documentation-1.1/Relations\" as Relations", Bindings.STRING); + "include \"Simantics/DB\"\n" + + "include \"Simantics/Variables\"\n" + + "include \"Simantics/Sysdyn\" as SD\n" + + "include \"http://www.simantics.org/Documentation-1.2/Components\"\n" + + "include \"http://www.simantics.org/Documentation-1.2/Properties\" as Properties\n" + + "include \"http://www.simantics.org/Documentation-1.2/Relations\" as Relations", Bindings.STRING); } } -- 2.47.1