|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.AbstractQuery
public abstract class AbstractQuery
An implementation of Query that defines default implementations to some methods.
Constructor Summary | |
---|---|
AbstractQuery()
|
Method Summary | |
---|---|
java.lang.Object |
getLocation()
Returns an object whose toString method yields a description of the location where this query occurred in an input file. |
void |
logResults(int numSamples)
If a log file has been specified, prints the results so far to that file. |
void |
setPosterior(ve.Factor posterior)
Throws an UnsupportedOperationException. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface blog.Query |
---|
checkTypesAndScope, compile, getVariables, printResults, printVarianceResults, updateStats, zeroOut |
Constructor Detail |
---|
public AbstractQuery()
Method Detail |
---|
public void setPosterior(ve.Factor posterior)
setPosterior
in interface Query
posterior
- factor whose set of variables is the same
as the collection returned by getVariables,
and whose entries sum to 1public void logResults(int numSamples)
This default implementation does nothing.
logResults
in interface Query
numSamples
- the number of samples taken by the inference
engine so far (can be set to zero for
non-sampling inference engines)public java.lang.Object getLocation()
This default implementation returns a string indicating that this query was generated internally, rather than from an input file.
getLocation
in interface Query
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |