include "Simantics/Variables" include "http://www.simantics.org/Layer0-1.1" as L0 include "http://www.simantics.org/Structural-1.2" as STR isPartOfUC :: Variable -> Boolean isPartOfUC variable = do component = represents variable composite = singleObject component L0.PartOf existsStatement composite STR.Defines importJava "org.simantics.structural2.variables.Connection" where @JavaName Connection data StructuralConnection importJava "org.simantics.structural2.utils.StructuralUtils" where structuralConnectionConnectionPoints :: StructuralConnection -> Resource -> [Variable]