|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.SubModel
jcreek.representation.inference.ExplanationModel
This class represents a subset of the knowledge model resulting from a spreading activation operation from the "origin" entity. This class is created by a SpreadingActivationRule and is not to be created directly.
Field Summary | |
double |
MINIMUM_STRENGTH_TRESHOLD
|
Method Summary | |
int |
assessGetPathsComplexity()
Returns an integer assessing the maximal complexity of finding all paths in a submodel. |
SubModel |
getActivatedModel(RelationType rcd,
Entity target)
Returns a submodel containing all enties and relations of all paths from the origin to the designated entity where the last step of all paths is of the RelationType designated. |
Explanation[] |
getExplanations(Entity target,
int acceptedComplexity)
Exhaustive, depth-first search for paths within the submodel. |
Explanation[] |
getExplanations(RelationType rcd,
Entity target,
int acceptedComplexity)
Exhaustive, depth-first search for paths within the submodel. |
double |
getExplanationStrength(Entity target)
|
static double |
getExplanationStrength(Explanation[] paths,
Entity target)
|
double |
getExplanationStrength(RelationType rcd,
Entity target)
Returns the activation strength of the target in regards to the origin. |
Explanation |
getStrongestExplanation(Entity target)
Returns the explanation representing the strongest path from the origin entity to the target entity. |
Explanation |
getStrongestExplanation(RelationType rcd,
Entity target)
Returns the explanation representing the strongest path from the origin entity to the target relation. |
Methods inherited from class jcreek.representation.SubModel |
add, add, add, add, add, addExpanded, addExpanded, clear, contains, contains, contains, getEntities, getRelations, joinWith, remove, remove, remove, size, toSet, toString, union |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double MINIMUM_STRENGTH_TRESHOLD
Method Detail |
public Explanation getStrongestExplanation(Entity target)
public Explanation getStrongestExplanation(RelationType rcd, Entity target)
public Explanation[] getExplanations(Entity target, int acceptedComplexity) throws TaskTooComplexException
target
- The entity to look for paths to. (All the paths originate at the origin entity of
the SpreadingActivationModel.)
TaskTooComplexException
public Explanation[] getExplanations(RelationType rcd, Entity target, int acceptedComplexity) throws TaskTooComplexException
rcd
- RelationType of the relation type we are interested in. Only explanations
in which this relation-type is the last relation, are returned.target
- The relation to look for paths to. (All the paths originate at the origin entity of
the Explanation.)
TaskTooComplexException
public int assessGetPathsComplexity()
public SubModel getActivatedModel(RelationType rcd, Entity target)
public double getExplanationStrength(RelationType rcd, Entity target) throws TaskTooComplexException
TaskTooComplexException
public double getExplanationStrength(Entity target) throws TaskTooComplexException
TaskTooComplexException
public static double getExplanationStrength(Explanation[] paths, Entity target)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |