Package cz.vutbr.fit.layout.rdf.fn
Class RectComparisonFunction
- java.lang.Object
-
- cz.vutbr.fit.layout.rdf.fn.SpatialFunction
-
- cz.vutbr.fit.layout.rdf.fn.RectComparisonFunction
-
- All Implemented Interfaces:
org.eclipse.rdf4j.query.algebra.evaluation.function.Function
- Direct Known Subclasses:
AboveFunction,AfterFunction,BeforeFunction,BelowFunction
public abstract class RectComparisonFunction extends SpatialFunction implements org.eclipse.rdf4j.query.algebra.evaluation.function.Function
- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description RectComparisonFunction(String fname)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.eclipse.rdf4j.model.Valueevaluate(org.eclipse.rdf4j.model.ValueFactory valueFactory, org.eclipse.rdf4j.model.Value... args)org.eclipse.rdf4j.model.Valueevaluate(org.eclipse.rdf4j.query.algebra.evaluation.TripleSource tripleSource, org.eclipse.rdf4j.model.Value... args)Executes the palindrome function.protected abstract booleanevaluateForBoxes(Rectangular b1, Rectangular b2)Compares the two boxes and returns a boolean result.StringgetURI()-
Methods inherited from class cz.vutbr.fit.layout.rdf.fn.SpatialFunction
getBoundsResource, getIntValue, getRectangularValue
-
-
-
-
Constructor Detail
-
RectComparisonFunction
public RectComparisonFunction(String fname)
-
-
Method Detail
-
getURI
public String getURI()
- Specified by:
getURIin interfaceorg.eclipse.rdf4j.query.algebra.evaluation.function.Function
-
evaluateForBoxes
protected abstract boolean evaluateForBoxes(Rectangular b1, Rectangular b2)
Compares the two boxes and returns a boolean result.- Parameters:
b1-b2-- Returns:
-
evaluate
public org.eclipse.rdf4j.model.Value evaluate(org.eclipse.rdf4j.query.algebra.evaluation.TripleSource tripleSource, org.eclipse.rdf4j.model.Value... args) throws org.eclipse.rdf4j.query.algebra.evaluation.ValueExprEvaluationExceptionExecutes the palindrome function.- Specified by:
evaluatein interfaceorg.eclipse.rdf4j.query.algebra.evaluation.function.Function- Returns:
- A boolean literal representing true if the input argument boxes are below each other.
- Throws:
org.eclipse.rdf4j.query.algebra.evaluation.ValueExprEvaluationException
-
evaluate
public org.eclipse.rdf4j.model.Value evaluate(org.eclipse.rdf4j.model.ValueFactory valueFactory, org.eclipse.rdf4j.model.Value... args) throws org.eclipse.rdf4j.query.algebra.evaluation.ValueExprEvaluationException- Specified by:
evaluatein interfaceorg.eclipse.rdf4j.query.algebra.evaluation.function.Function- Throws:
org.eclipse.rdf4j.query.algebra.evaluation.ValueExprEvaluationException
-
-