]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
(refs #5440) Generic server state variable support based on experiment-bound SCL...
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 27 Oct 2014 07:17:42 +0000 (07:17 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 27 Oct 2014 07:17:42 +0000 (07:17 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30489 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ontology/graph.tg
org.simantics.sysdyn.ontology/graph/Sysdyn.pgraph
org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiments.java

index 4b49d0567142e800684ab25ebaf09725e0982e9e..fa218087b2d4136b6810b875973ba0baade063d2 100644 (file)
Binary files a/org.simantics.sysdyn.ontology/graph.tg and b/org.simantics.sysdyn.ontology/graph.tg differ
index eda75ae22e18c07ad70ff1d21df19898cb3c65b2..ffd674d8c42cf494e589ad99d4a4ea3891b063df 100644 (file)
@@ -437,7 +437,7 @@ SYSDYN.HistoryDataset <T SYSDYN.Result
 SYSDYN.ResultSet <T L0.Entity
     >-- SYSDYN.Experiment.result --> SYSDYN.Result <R L0.IsComposedOf
 
-SYSDYN.InitialCondition <T SIMU.State
+SYSDYN.InitialCondition <T MOD.InitialCondition
     >-- SYSDYN.InitialCondition.HasInitialValues --> MOD.PartialIC <R L0.HasProperty : L0.FunctionalRelation
 
 
index 0253f9a5bbbbb20678848d24cb0fe69b7e143f38..620457b75803f26a07beafd8cc00e14259369296 100644 (file)
@@ -238,6 +238,14 @@ public class SysdynExperiments {
                        }\r
                        \r
                    }, new DefaultPasteHandler(ic));\r
+                   \r
+//                 String id = input.getName(graph);\r
+//                 SCLRealm realm = SCLSessionManager.sclRealmById(id);\r
+//                 if(realm != null) {\r
+//                     byte[] blob = realm.serialize();\r
+//                             //graph.addLiteral(ic, SYSDYN.InitialCondition_HasInitialValues, SYSDYN.InitialCondition_HasInitialValues_Inverse, MOD.PartialIC, IC, PartialIC.BINDING);\r
+//                 }\r
+                   \r
                }\r
                \r
                Layer0Utils.addCommentMetadata(graph, "Saved new Initial Condition " + name + " " + ic);\r