|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--Reasoner.DynamicReasoner
Generates inferences from the solution set of the reasoning engine.
StaticReasoner,
SimulationEngine| Field Summary | |
private KnowledgeBase |
m_knowledge_base
|
private MonteCarloRunSet |
m_monte_carlo_run_set
|
private ObjectTemplateSet |
m_object_template_set
|
private SemanticNetwork |
m_semantic_network
|
private StaticReasoner |
m_static_reasoner
|
| Constructor Summary | |
DynamicReasoner(SimulationEngine simulation_engine,
MonteCarloRunSet monte_carlo_run_set,
boolean generate_inferences)
Creates a new dynamic reasoner that builds late inferences from a Monte Carlo run set and back-fills them into the original semantic network. |
|
| Method Summary | |
private void |
buildLateAttributeInferences(java.util.ArrayList attribute_inferences,
ObjectInference object_inference)
Builds attribute instances for the attribute inferences and adds them to the semantic network. |
private void |
buildLateInferences()
Builds the late inferences from the Monte Carlo run set. |
private void |
buildLateRelationshipInferences(java.util.ArrayList relationship_inferences,
ObjectInference object_inference1,
ObjectInference object_inference2)
Builds relationship instances for the relationship inferences and adds them to the semantic network. |
private java.util.ArrayList |
extractBindableInferenceNodesFromNestedDependencyNodes(java.util.ArrayList dependency_nodes)
Returns a list of inference nodes at any level at and/or beneath a list of dependency nodes. |
private void |
extractBindableInferenceNodesFromNestedDependencyNodes(DependencyNode dependency_node,
java.util.ArrayList inference_nodes)
Recursively builds a list of inference nodes in and/or contained beneath a dependency node. |
SemanticNetwork |
getSemanticNetworkInstance()
Returns the semantic network augmented by any inferences made in this dynamic reasoner. |
java.lang.String |
toString()
Returns a string representation of this class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private SemanticNetwork m_semantic_network
private KnowledgeBase m_knowledge_base
private StaticReasoner m_static_reasoner
private MonteCarloRunSet m_monte_carlo_run_set
private ObjectTemplateSet m_object_template_set
| Constructor Detail |
public DynamicReasoner(SimulationEngine simulation_engine,
MonteCarloRunSet monte_carlo_run_set,
boolean generate_inferences)
throws java.lang.Exception
simulation_engine - - the simulation enginemonte_carlo_run_set - - the Monte Carlo run setgenerate_inferences - - whether inferences should be generated
java.lang.Exception - - if the reasoning process fails| Method Detail |
private void buildLateInferences()
throws java.lang.Exception
java.lang.Exception - - if any inferences cannot be built
private void buildLateAttributeInferences(java.util.ArrayList attribute_inferences,
ObjectInference object_inference)
throws java.lang.Exception
attribute_inferences - - the attribute inference nodesobject_inference - - the object inference to bind the attribute to
java.lang.Exception - - if any attribute inferences cannot be built
private void buildLateRelationshipInferences(java.util.ArrayList relationship_inferences,
ObjectInference object_inference1,
ObjectInference object_inference2)
throws java.lang.Exception
relationship_inferences - - the relationship inference nodesobject_inference1 - - the left-hand-side object inference to bind the relationship toobject_inference2 - - the right-hand-side object inference to bind the relationship to
java.lang.Exception - - if any relationship inferences cannot be builtprivate java.util.ArrayList extractBindableInferenceNodesFromNestedDependencyNodes(java.util.ArrayList dependency_nodes)
dependency_nodes - - the dependency nodes to process
extractBindableInferenceNodesFromNestedDependencyNodes(DependencyNode, ArrayList)
private void extractBindableInferenceNodesFromNestedDependencyNodes(DependencyNode dependency_node,
java.util.ArrayList inference_nodes)
dependency_node - - the dependency node to processinference_nodes - - the list of inference nodes. This is an in-out parameterextractBindableInferenceNodesFromNestedDependencyNodes(ArrayList)public SemanticNetwork getSemanticNetworkInstance()
MonteCarloRunSet.setSemanticNetworkInstance(SemanticNetwork.SemanticNetwork)public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||