1 include "Simantics/Variables"
\r
2 include "http://www.simantics.org/Layer0-1.1" as L0
\r
3 include "http://www.simantics.org/Structural-1.2" as STR
\r
5 isPartOfUC :: Variable -> <ReadGraph> Boolean
\r
6 isPartOfUC variable = do
\r
7 component = represents variable
\r
8 composite = singleObject component L0.PartOf
\r
9 existsStatement composite STR.Defines
\r
11 importJava "org.simantics.structural2.variables.Connection" where
\r
12 @JavaName Connection
\r
13 data StructuralConnection
\r
15 importJava "org.simantics.structural2.utils.StructuralUtils" where
\r
16 structuralConnectionConnectionPoints :: StructuralConnection -> Resource -> <ReadGraph> [Variable]
\r