|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.inference.SpreadingActivationRule
This class is an abstract class defining a rule for spreading activation through a semantic network. For each spreading activation, one instance of this class is created.
Constructor Summary | |
SpreadingActivationRule()
Creates a new SpreadingActivationRule. |
Method Summary | |
abstract boolean |
accept(Explanation path)
Returns true if the rule can accept the Explanation path. |
abstract boolean |
accept(Relation target)
Returns true if we can accept the Relation target. |
abstract boolean |
accept(Relation from,
Entity target)
Returns true if we can accept the Entity target from the Relation from. |
ExplanationModel |
execute(Entity origin)
The basic spreading activation algorithm. |
protected ExplanationModel |
generateModel(Entity origin)
Method for generating an instance of the model used in the execution of the rule. |
boolean |
reenter(Entity target)
This method is called on an entity that has already been spread through, to see if we should spread through it again. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SpreadingActivationRule()
Method Detail |
public abstract boolean accept(Relation from, Entity target)
public abstract boolean accept(Relation target)
public abstract boolean accept(Explanation path)
public boolean reenter(Entity target)
protected ExplanationModel generateModel(Entity origin)
public ExplanationModel execute(Entity origin)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |