]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.structural2/scl/Simantics/Structural.scl
More SCL functions for experiment and run handling
[simantics/platform.git] / bundles / org.simantics.structural2 / scl / Simantics / Structural.scl
1 include "Simantics/Variables"
2 include "http://www.simantics.org/Layer0-1.1" as L0
3 include "http://www.simantics.org/Structural-1.2" as STR
4
5 isPartOfUC :: Variable -> <ReadGraph> Boolean
6 isPartOfUC variable = do
7   component = represents variable
8   composite = singleObject component L0.PartOf
9   existsStatement composite STR.Defines
10
11 importJava "org.simantics.structural2.variables.Connection" where
12   @JavaName Connection
13   data StructuralConnection
14
15 importJava "org.simantics.structural2.utils.StructuralUtils" where
16   structuralConnectionConnectionPoints :: StructuralConnection -> Resource -> <ReadGraph> [Variable]