]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db/src/org/simantics/db/ConverterComputationalValue.java
Merge branch 'change/2402/1' into private/balas3
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / ConverterComputationalValue.java
diff --git a/bundles/org.simantics.db/src/org/simantics/db/ConverterComputationalValue.java b/bundles/org.simantics.db/src/org/simantics/db/ConverterComputationalValue.java
new file mode 100644 (file)
index 0000000..15da827
--- /dev/null
@@ -0,0 +1,16 @@
+package org.simantics.db;
+
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.scl.runtime.function.Function1;
+
+public interface ConverterComputationalValue extends ComputationalValue {
+       
+    /*
+     * This computes the expression function that shall be called with given context as defined in ReadGraph.getRelatedValue2 
+     * Context can be Resource (literal) or Variable. 
+     * With Resource context this gets called with o != null and s==null and p==null 
+     * With Variable property context this gets called with (represents of parent, represents, predicate resource) 
+     */
+       Function1<Object,Object> getFunction(ReadGraph graph, Resource s, Resource o, Resource p) throws DatabaseException;
+       
+}