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
5 isPartOfUC :: Variable -> <ReadGraph> Boolean
6 isPartOfUC variable = do
7 component = represents variable
8 composite = singleObject component L0.PartOf
9 existsStatement composite STR.Defines
11 importJava "org.simantics.structural2.variables.Connection" where
13 data StructuralConnection
15 importJava "org.simantics.structural2.utils.StructuralUtils" where
16 structuralConnectionConnectionPoints :: StructuralConnection -> Resource -> <ReadGraph> [Variable]