]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network/scl/Simantics/District/TechType.scl
Updating of component properties when type code changes
[simantics/district.git] / org.simantics.district.network / scl / Simantics / District / TechType.scl
diff --git a/org.simantics.district.network/scl/Simantics/District/TechType.scl b/org.simantics.district.network/scl/Simantics/District/TechType.scl
new file mode 100644 (file)
index 0000000..9b6ddeb
--- /dev/null
@@ -0,0 +1,7 @@
+import "Simantics/DB"
+
+importJava "org.simantics.district.network.techtype.TechTypeUtils" where
+    "Update component properties from tech type table: `updateComponent component`"
+    updateComponent :: Resource -> <Proc> ()
+    "Reset all components to values in a tech type table: `resetComponents table`"
+    resetComponents :: Resource -> <Proc> ()