X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2FConverterComputationalValue.java;fp=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2FConverterComputationalValue.java;h=15da827ea0614332db1ca2352dbf48a33d49ff00;hb=8975cec64c881e380febb14b92eccdd893ab2453;hp=0000000000000000000000000000000000000000;hpb=7e275823e9a2ccb09e0bf6ca6fdd2d2f10143b2f;p=simantics%2Fplatform.git 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 index 000000000..15da827ea --- /dev/null +++ b/bundles/org.simantics.db/src/org/simantics/db/ConverterComputationalValue.java @@ -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 getFunction(ReadGraph graph, Resource s, Resource o, Resource p) throws DatabaseException; + +}