]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db/src/org/simantics/db/ConverterComputationalValue.java
15da827ea0614332db1ca2352dbf48a33d49ff00
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / ConverterComputationalValue.java
1 package org.simantics.db;
2
3 import org.simantics.db.exception.DatabaseException;
4 import org.simantics.scl.runtime.function.Function1;
5
6 public interface ConverterComputationalValue extends ComputationalValue {
7         
8     /*
9      * This computes the expression function that shall be called with given context as defined in ReadGraph.getRelatedValue2 
10      * Context can be Resource (literal) or Variable. 
11      * With Resource context this gets called with o != null and s==null and p==null 
12      * With Variable property context this gets called with (represents of parent, represents, predicate resource) 
13      */
14         Function1<Object,Object> getFunction(ReadGraph graph, Resource s, Resource o, Resource p) throws DatabaseException;
15         
16 }