public final class QueryFunction extends Object
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).
 
 Functions do not form part of the core inference routine, but are evaluated afterwards in topological order.| Constructor and Description | 
|---|
QueryFunction(QueryFunctionOutput functionOutput)
Initializes a new instance of the  
QueryFunction class. | 
QueryFunction(QueryFunctionOutput functionOutput,
             boolean isEnabled)
Initializes a new instance of the  
QueryFunction class. | 
| Modifier and Type | Method and Description | 
|---|---|
QueryFunctionOutput | 
getFunctionOutput()
Gets the function to evaluate. 
 | 
boolean | 
getIsEnabled()
Gets a value indicating whether the function should be evaluated. 
 | 
void | 
setIsEnabled(boolean value)
Sets a value indicating whether the function should be evaluated. 
 | 
public QueryFunction(QueryFunctionOutput functionOutput)
QueryFunction class.  The enabled property defaults to true.functionOutput - Collects the output of the function evaluation.public QueryFunction(QueryFunctionOutput functionOutput, boolean isEnabled)
QueryFunction class.functionOutput - Collects the output of the function evaluation.isEnabled - Sets the getIsEnabled() property.public boolean getIsEnabled()
true if the function should be evaluated; otherwise, false.public void setIsEnabled(boolean value)
value - true if the function should be evaluated; otherwise, false.public QueryFunctionOutput getFunctionOutput()
Copyright © 2021. All rights reserved.