|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.reasoning.EntityComparison
jcreek.reasoning.SymbolComparison
Defines a comparison between two symbols. This is the default comparator of entities in a domain.
Field Summary | |
protected boolean |
notComparable
|
protected java.util.Vector |
symbolConvergenceList
|
protected Entity |
valueType
|
Fields inherited from class jcreek.reasoning.EntityComparison |
ACTIVATED_STATUS, activationStrength, EXPLAINED_STATUS, explanationStrength, INITIAL_STATUS, INITIAL_STRENGTH, origin, target |
Constructor Summary | |
SymbolComparison(Entity origin,
Entity target)
Creates a new comparison between the origin and target entities. |
Method Summary | |
SymbolConvergence[] |
getSymbolConvergences()
Returning the list of FindingConvergence instances found for this FindingComparison. |
boolean |
isComparable()
Checks if the entities are comparable. |
static boolean |
isComparable(Entity e1,
Entity e2)
|
java.lang.String |
shortExplanation()
Gives a short textual representation (a sentence or so) describing the comparison. |
java.lang.String |
shortExplanation(java.lang.String buf)
Returns a short explanation. |
SubModel |
toCompleteSubModel()
|
java.lang.String |
toString()
Returns the string representation of the finding comparison |
SubModel |
toSubModel()
Returns a submodel of the entities compared. |
double |
updateActivationStrength()
Computes the activation strenght of the comparison. |
protected double |
updateExplanationStrength()
Returns the explanation strength of leaf findings. |
Methods inherited from class jcreek.reasoning.EntityComparison |
activate, addParallell, addSerial, checkIsComparable, compareTo, createComparison, explain, getActivationStrength, getExplanationStrength, getKnowledgeModel, getOrigin, getPercentageStrength, getStatus, getStatusText, getStrength, getTarget, isActivated, isCompletelyMatched, isExplained, isExplainMatched, isPartlyMatched, isUnmatched, reset, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.Vector symbolConvergenceList
protected Entity valueType
protected boolean notComparable
Constructor Detail |
public SymbolComparison(Entity origin, Entity target)
origin
- the entity to compare fromtarget
- the entity to compare toMethod Detail |
public double updateActivationStrength()
EntityComparison
updateActivationStrength
in class EntityComparison
protected double updateExplanationStrength()
updateExplanationStrength
in class EntityComparison
public SymbolConvergence[] getSymbolConvergences()
public java.lang.String shortExplanation()
EntityComparison
shortExplanation
in class EntityComparison
public java.lang.String shortExplanation(java.lang.String buf)
public boolean isComparable()
isComparable
in class EntityComparison
public static boolean isComparable(Entity e1, Entity e2)
public java.lang.String toString()
toString
in class EntityComparison
public SubModel toSubModel()
EntityComparison
toSubModel
in class EntityComparison
public SubModel toCompleteSubModel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |