public final class TreeQueryOptions extends Object implements QueryOptions
TreeQuery.| Constructor and Description | 
|---|
TreeQueryOptions()
Initializes a new instance of the  
TreeQueryOptions class. | 
TreeQueryOptions(QueryOptions queryOptions)
Initializes a new instance of the  
TreeQueryOptions class, copying options from another instance implementing QueryOptions. | 
| Modifier and Type | Method and Description | 
|---|---|
Cancellation | 
getCancellation()
Allows cancellation of a query. 
 | 
boolean | 
getConflict()
Gets a value indicating whether the conflict measure should be calculated in a call to  
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput). | 
DecisionAlgorithm | 
getDecisionAlgorithm()
Gets the algorithm to use when a network contains Decision nodes. 
 | 
InconsistentEvidenceMode | 
getInconsistentEvidenceMode()
Determines when an  
InconsistentEvidenceException is raied. | 
boolean | 
getIsImpliedEvidenceEnabled()
Gets a value indicating whether to detect implied evidence during the calculation. 
 | 
boolean | 
getLogLikelihood()
Gets a value indicating whether the log-likelihood of a case should be calculated in a call to  
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput). | 
PropagationMethod | 
getPropagation()
Gets the propagation method to be used during inference. 
 | 
QueryEvidenceMode | 
getQueryEvidenceMode()
Determines whether evidence is retracted for each query. 
 | 
Integer | 
getTerminalTime()
Gets the terminal time, which is the time at which any terminal nodes in a Dynamic Bayesian Network connect to temporal nodes. 
 | 
boolean | 
getTreeWidth()
Gets a value indicating whether or not to calculate the tree width. 
 | 
void | 
setCancellation(Cancellation value)
Allows cancellation of a query. 
 | 
void | 
setConflict(boolean value)
Sets a value indicating whether the conflict measure should be calculated in a call to  
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput). | 
void | 
setDecisionAlgorithm(DecisionAlgorithm value)
Sets the algorithm to use when a network contains Decision nodes. 
 | 
void | 
setInconsistentEvidenceMode(InconsistentEvidenceMode value)
Determines when an  
InconsistentEvidenceException is raied. | 
void | 
setIsImpliedEvidenceEnabled(boolean value)
Sets a value indicating whether to detect implied evidence during the calculation. 
 | 
void | 
setLogLikelihood(boolean value)
Sets a value indicating whether the log-likelihood of a case should be calculated in a call to  
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput). | 
void | 
setPropagation(PropagationMethod value)
Sets the propagation method to be used during inference. 
 | 
void | 
setQueryEvidenceMode(QueryEvidenceMode value)
Determines whether evidence is retracted for each query. 
 | 
void | 
setTerminalTime(Integer value)
Sets the terminal time, which is the time at which any terminal nodes in a Dynamic Bayesian Network connect to temporal nodes. 
 | 
void | 
setTreeWidth(boolean value)
Sets a value indicating whether or not to calculate the tree width. 
 | 
public TreeQueryOptions()
TreeQueryOptions class.public TreeQueryOptions(QueryOptions queryOptions)
TreeQueryOptions class, copying options from another instance implementing QueryOptions.queryOptions - The query options to copy.System.ArgumentNullException - queryOptionspublic boolean getTreeWidth()
public void setTreeWidth(boolean value)
public boolean getIsImpliedEvidenceEnabled()
public void setIsImpliedEvidenceEnabled(boolean value)
public Integer getTerminalTime()
getTerminalTime in interface QueryOptionspublic void setTerminalTime(Integer value)
setTerminalTime in interface QueryOptionspublic PropagationMethod getPropagation()
PropagationMethod.SUM.getPropagation in interface QueryOptionspublic void setPropagation(PropagationMethod value)
PropagationMethod.SUM.setPropagation in interface QueryOptionspublic DecisionAlgorithm getDecisionAlgorithm()
getDecisionAlgorithm in interface QueryOptionspublic void setDecisionAlgorithm(DecisionAlgorithm value)
setDecisionAlgorithm in interface QueryOptionspublic Cancellation getCancellation()
CancellationException will be raised.
  If Cancellation.getCancel() has been set to true, it should be reset to false, before a subsequent query.
getCancellation in interface QueryOptionspublic void setCancellation(Cancellation value)
CancellationException will be raised.
  If Cancellation.getCancel() has been set to true, it should be reset to false, before a subsequent query.
setCancellation in interface QueryOptionspublic boolean getLogLikelihood()
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).  If calculated the result can be obtained from QueryOutput.getLogLikelihood().
 
 
 This should only be requested if required.
The natural log (base e) is calculated.
getLogLikelihood in interface QueryOptionstrue if the log-likelihood should be calculated; otherwise, false.  Defaults to false.public void setLogLikelihood(boolean value)
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).  If calculated the result can be obtained from QueryOutput.getLogLikelihood().
 
 
 This should only be requested if required.
The natural log (base e) is calculated.
setLogLikelihood in interface QueryOptionsvalue - true if the log-likelihood should be calculated; otherwise, false.  Defaults to false.public boolean getConflict()
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).  If calculated the result can be obtained from QueryOutput.getConflict().
 
 
 Conflict is a measure that detects evidence that is conflicting or rare. The greater the conflict value above zero, the more likely the evidence is in conflict, or rare.
Conflict = log((P(e1)P(e2)...P(ei)) / P(e)), where P(e1), P(e2) etc... are the likelihoods of each variable considered in isolation, and P(e) is the likelihood of the all the evidence together.
getConflict in interface QueryOptionspublic void setConflict(boolean value)
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).  If calculated the result can be obtained from QueryOutput.getConflict().
 
 
 Conflict is a measure that detects evidence that is conflicting or rare. The greater the conflict value above zero, the more likely the evidence is in conflict, or rare.
Conflict = log((P(e1)P(e2)...P(ei)) / P(e)), where P(e1), P(e2) etc... are the likelihoods of each variable considered in isolation, and P(e) is the likelihood of the all the evidence together.
setConflict in interface QueryOptionspublic QueryEvidenceMode getQueryEvidenceMode()
QueryEvidenceMode for more information.getQueryEvidenceMode in interface QueryOptionspublic void setQueryEvidenceMode(QueryEvidenceMode value)
QueryEvidenceMode for more information.setQueryEvidenceMode in interface QueryOptionspublic InconsistentEvidenceMode getInconsistentEvidenceMode()
InconsistentEvidenceException is raied.getInconsistentEvidenceMode in interface QueryOptionspublic void setInconsistentEvidenceMode(InconsistentEvidenceMode value)
InconsistentEvidenceException is raied.setInconsistentEvidenceMode in interface QueryOptionsCopyright © 2021. All rights reserved.