public class DataDrivenInference extends InferenceAlgorithm
InferenceAlgorithm.AttributeParameters, InferenceAlgorithm.TableParameters| Constructor and Description |
|---|
DataDrivenInference(WorkingMemory wm,
XTTModel model,
Configuration conf)
The constructor that collect all the required information for the inference process to be executed.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.LinkedList<Table> |
BFSDive(java.util.LinkedList<Table> visited,
java.util.LinkedList<Table> grey,
Table starter) |
protected java.util.LinkedList<Table> |
findTablesWithConditions(Attribute condition) |
protected java.util.Stack<Table> |
initStackForAttributes(InferenceAlgorithm.AttributeParameters attributeParameters)
The method creates an initial stack of Tables that should be processed by the
InferenceAlgorithm.runRules(Table t) method. |
protected java.util.Stack<Table> |
initStackForTables(InferenceAlgorithm.TableParameters tableParameters)
The method creates an initial stack of Tables that should be processed by the
InferenceAlgorithm.runRules(Table t) method
This is only an initial state and it can be modified during the inference. |
protected Table |
resolveTable(java.lang.String tableName) |
getConf, getModel, getTablesToFire, getWm, isTableStackEmpty, onPostExecute, onPreExecute, peakTable, popTable, pushTable, runRules, setConf, setModel, setTablesToFire, setWm, start, startpublic DataDrivenInference(WorkingMemory wm, XTTModel model, Configuration conf)
wm - a WorkingMemory element from HeaRT inference enginemodel - a XTTModel that will be used to infer dataconf - a Configuration object defining uncertainty handling mechanism, conflict set resolution,protected java.util.Stack<Table> initStackForAttributes(InferenceAlgorithm.AttributeParameters attributeParameters)
InferenceAlgorithmInferenceAlgorithm.runRules(Table t) method.
This is only an initial state and it can be modified during the inference. However for some inference modes
this initial stack will be the final.initStackForAttributes in class InferenceAlgorithmattributeParameters - attributes names which values should be obtain in the inference processInferenceAlgorithm.runRules(Table t) method.protected java.util.Stack<Table> initStackForTables(InferenceAlgorithm.TableParameters tableParameters)
InferenceAlgorithmInferenceAlgorithm.runRules(Table t) method
This is only an initial state and it can be modified during the inference. However for some inference modes
this initial stack will be the final.initStackForTables in class InferenceAlgorithmtableParameters - tables names that are the parameters to the inference engine.
This could mean different things in different reasoning modes.InferenceAlgorithm.runRules(Table t) method.protected java.util.LinkedList<Table> BFSDive(java.util.LinkedList<Table> visited, java.util.LinkedList<Table> grey, Table starter)
protected java.util.LinkedList<Table> findTablesWithConditions(Attribute condition)
protected Table resolveTable(java.lang.String tableName)