]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.spreadsheet.ontology/graph/Spreadsheet.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.spreadsheet.ontology / graph / Spreadsheet.pgraph
diff --git a/bundles/org.simantics.spreadsheet.ontology/graph/Spreadsheet.pgraph b/bundles/org.simantics.spreadsheet.ontology/graph/Spreadsheet.pgraph
new file mode 100644 (file)
index 0000000..d89f170
--- /dev/null
@@ -0,0 +1,80 @@
+// Converted from version 16888
+L0 = <http://www.simantics.org/Layer0-1.1>
+STR = <http://www.simantics.org/Structural-1.2>
+SIMU = <http://www.simantics.org/Simulation-1.1>
+SEL = <http://www.simantics.org/SelectionView-1.2>
+DATA = <http://www.simantics.org/Datatypes-1.1>
+
+SHEET = <http://www.simantics.org/Spreadsheet-1.2> : L0.Ontology
+    @L0.new
+    L0.HasResourceClass "org.simantics.spreadsheet.resource.SpreadsheetResource" 
+
+SHEET.SCLMain : L0.SCLModule
+    L0.SCLModule.definition _ : L0.String
+      @L0.loadString "scl/SCLMain.scl"
+
+FUNCTIONS = SHEET.Functions
+
+SHEET.Book <T STR.Composite <T L0.RVIContext
+    @L0.assert L0.domainChildren FUNCTIONS.spreadsheetChildren
+    
+SHEET.HasInitialCondition --> SHEET.InitialCondition <R L0.DependsOn
+
+SHEET.InitialCondition <T L0.Entity
+    --> SHEET.InitialCondition.bytes --> L0.ByteArray <R L0.HasProperty : L0.TotalFunction
+    --> SHEET.InitialCondition.ConditionOf --> SHEET.Book <R L0.DependsOn : L0.TotalFunction
+    --> SHEET.InitialCondition.DefaultConditionOf <R SHEET.InitialCondition.ConditionOf
+        L0.InverseOf SHEET.Book.HasDefaultInitialCondition
+
+SHEET.cellEditor <R L0.HasProperty : L0.FunctionalRelation
+    ==> "CellEditor"
+
+SHEET.Spreadsheet <T STR.Composite
+    @L0.property L0.ConsistsOf // all Cell
+    @L0.assert SHEET.ForCompositeTemplate SHEET.CompositeTemplate
+    @L0.assert SHEET.cellEditor FUNCTIONS.defaultSheetCellEditor
+    @L0.assert STR.input FUNCTIONS.spreadsheetInput
+    >-- STR.input
+    @L0.assert SHEET.session FUNCTIONS.spreadsheetSession
+    >-- SHEET.session
+
+SHEET.Attribute <T SEL.GenericParameterType
+
+SHEET.SCLValue <T STR.SCLValue
+  @L0.assert L0.ConvertsToValueWith
+    FUNCTIONS.sclValue : L0.ExternalValue
+
+SHEET.scl : L0.Template
+    @template %subject %property %expression %valueType
+        %subject
+            %property _ : SHEET.SCLValue
+              L0.SCLValue.expression %expression
+              L0.HasValueType %valueType
+
+SHEET.sclValue : L0.Template
+    @template %subject %expression %valueType
+        %subject : SHEET.SCLValue
+            L0.SCLValue.expression %expression
+            L0.HasValueType %valueType
+
+SHEET.Experiment <T SIMU.Experiment
+SHEET.Run <T SIMU.Run
+  @L0.assert L0.domainChildren 
+    FUNCTIONS.sheetRunDomainChildren : L0.ExternalValue
+      L0.HasValueType "VariableMap"
+  @L0.assert STR.input FUNCTIONS.spreadsheetRunInput
+
+SHEET.SourceContribution <T L0.Entity
+  >-- SHEET.SourceContribution.function ==> "Resource -> <ReadGraph> [Variable]" <R L0.HasProperty : L0.FunctionalRelation
+  >-- SHEET.SourceContribution.labeler ==> "Variable -> <ReadGraph> String" <R L0.HasProperty : L0.FunctionalRelation
+  
+SHEET.SheetSourceContribution : SHEET.SourceContribution
+  L0.HasLabel "Sheet"
+  @SHEET.scl SHEET.SourceContribution.function "sheetSourceContribution" "Resource -> <ReadGraph> Variable"
+  @SHEET.scl SHEET.SourceContribution.labeler "sheetSourceContributionLabeler" "Variable -> <ReadGraph> String"
+  
+
+SHEET.ModelSourceContribution : SHEET.SourceContribution
+  L0.HasLabel "Models"
+  @SHEET.scl SHEET.SourceContribution.function "modelsSourceContribution" "Resource -> <ReadGraph> Variable"
+  @SHEET.scl SHEET.SourceContribution.labeler "modelsSourceContributionLabeler" "Variable -> <ReadGraph> String"
\ No newline at end of file