public class ExternalFunctionalPredicate extends FunctionalPredicate
ExternalFunction
to compute truth values.Modifier and Type | Method and Description |
---|---|
double |
computeValue(ReadableDatabase db,
Constant... args)
Computes the truth value of this Predicate with the given arguments.
|
static ExternalFunctionalPredicate |
get(String name) |
static ExternalFunctionalPredicate |
get(String name,
ExternalFunction extFun)
Get a predicate if one already exists, othereise create a new one.
|
ExternalFunction |
getExternalFunction()
Get the ExternalFunction this predicate uses to compute truth values.
|
clearForTesting, getArgumentType, getArity, getName, toString
public double computeValue(ReadableDatabase db, Constant... args)
FunctionalPredicate
computeValue
in class FunctionalPredicate
db
- the connection to the database which is running this queryargs
- the arguments for which the truth value will be computedpublic ExternalFunction getExternalFunction()
public static ExternalFunctionalPredicate get(String name)
public static ExternalFunctionalPredicate get(String name, ExternalFunction extFun)
Copyright © 2018 University of California, Santa Cruz. All rights reserved.