|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.reasoning.EntityComparison
jcreek.reasoning.NumberComparison
Field Summary | |
protected boolean |
notComparable
|
protected java.util.ArrayList |
relList
|
protected Entity |
valueType
|
Fields inherited from class jcreek.reasoning.EntityComparison |
ACTIVATED_STATUS, activationStrength, EXPLAINED_STATUS, explanationStrength, INITIAL_STATUS, INITIAL_STRENGTH, origin, target |
Constructor Summary | |
NumberComparison(Entity origin,
Entity target)
Creates a new NumberComparison, comparing the origin and target entities given as parameters. |
Method Summary | |
protected jcreek.reasoning.NumberNormalizer |
getNumberNormalizer()
|
boolean |
isComparable()
Checks if the entities are comparable. |
double |
normalize(java.lang.Number number)
|
java.lang.String |
shortExplanation()
Gives a short textual representation (a sentence or so) describing the comparison. |
SubModel |
toSubModel()
Returns a submodel of the entities compared. |
double |
updateActivationStrength()
The activation step attempts to find an entity having a "has instance" relation to both the origin and target entities. |
double |
updateExplanationStrength()
Nothing is done in the explanation step. |
Methods inherited from class jcreek.reasoning.EntityComparison |
activate, addParallell, addSerial, checkIsComparable, compareTo, createComparison, explain, getActivationStrength, getExplanationStrength, getKnowledgeModel, getOrigin, getPercentageStrength, getStatus, getStatusText, getStrength, getTarget, isActivated, isComparable, isCompletelyMatched, isExplained, isExplainMatched, isPartlyMatched, isUnmatched, reset, toString, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Entity valueType
protected java.util.ArrayList relList
protected boolean notComparable
Constructor Detail |
public NumberComparison(Entity origin, Entity target)
Method Detail |
public double updateExplanationStrength()
updateExplanationStrength
in class EntityComparison
public double updateActivationStrength()
updateActivationStrength
in class EntityComparison
public boolean isComparable()
isComparable
in class EntityComparison
protected jcreek.reasoning.NumberNormalizer getNumberNormalizer()
public double normalize(java.lang.Number number)
public java.lang.String shortExplanation()
EntityComparison
shortExplanation
in class EntityComparison
public SubModel toSubModel()
EntityComparison
toSubModel
in class EntityComparison
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |