public class EnumerationQuery extends BasicQuery implements java.io.Serializable
| Constructor and Description |
|---|
EnumerationQuery()
Default constructor.
|
EnumerationQuery(BayesianNetwork theNetwork)
Construct the enumeration query.
|
| Modifier and Type | Method and Description |
|---|---|
EnumerationQuery |
clone() |
void |
execute()
Execute the query.
|
boolean |
forward()
Roll the enumeration events forward by one.
|
double |
getProbability() |
void |
resetEnumeration(boolean includeEvidence,
boolean includeOutcome)
Reset the enumeration events.
|
static boolean |
roll(java.util.List<BayesianEvent> enumerationEvents,
int[] args)
Roll the enumeration events forward by one.
|
java.lang.String |
toString() |
defineEventType, finalizeStructure, getEvents, getEventState, getEventType, getEvidenceEvents, getNetwork, getOutcomeEvents, getProblem, isNeededEvidence, locateEventTypes, reset, satisfiesDesiredOutcome, setEventValue, setEventValuepublic EnumerationQuery(BayesianNetwork theNetwork)
theNetwork - The Bayesian network to query.public EnumerationQuery()
public void resetEnumeration(boolean includeEvidence,
boolean includeOutcome)
includeEvidence - True if the evidence is to be reset.includeOutcome - True if the outcome is to be reset.public boolean forward()
public void execute()
execute in interface BayesianQuerypublic double getProbability()
getProbability in interface BayesianQuerypublic java.lang.String toString()
toString in class java.lang.Objectpublic static boolean roll(java.util.List<BayesianEvent> enumerationEvents, int[] args)
enumerationEvents - The enumeration events.args - The arguments.public EnumerationQuery clone()
clone in interface BayesianQueryclone in class BasicQuery