|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.reasoning.EntityComparison
jcreek.reasoning.CaseFindingComparison
Title: CaseFindingComparison
Description: Structure used when matching two cases. This structure contains a matching of two findings of the cases. This is not really a
Field Summary | |
protected EntityComparison |
comparison
|
protected Relation |
fromOrigin
|
protected Relation |
fromTarget
|
protected double |
relevance
|
Fields inherited from class jcreek.reasoning.EntityComparison |
ACTIVATED_STATUS, activationStrength, EXPLAINED_STATUS, explanationStrength, INITIAL_STATUS, INITIAL_STRENGTH, origin, target |
Constructor Summary | |
CaseFindingComparison(Relation fromOrigin,
Relation fromTarget)
Creates a new CaseFindingComparison comparing the two relations given. |
Method Summary | |
void |
activate()
Activates the comparison between the origin and target concepts. |
void |
explain()
Explains the comparison between the origin and target concepts. |
double |
getActivationStrength()
Returns the activation strength of the comparisons. |
EntityComparison |
getComparison()
Gives the encapsulated comparison. |
EntityComparison |
getEntityComparison()
Returns the comparison comparing the entities that are the values of the finding-relations of the origin (new) and target (retrieved) case. |
double |
getExplanationStrength()
Returns the explanation strength of the comparisons. |
Relation |
getOriginRelation()
Returns the finding-relation from the origin (new) case that is the basis of this comparison. |
double |
getRelevance()
Returns the relevance weight of this comparison.This may vary from getTargetRelation().getRelevance() since that relation may be matched to more than one relation in the origin (new) case. |
int |
getStatus()
Returns the status of the comparison. |
Relation |
getTargetRelation()
Return the finding-relation from the target (retrieved) case that is the basis of this comparison. |
void |
reset()
Resets the activation/explanation. |
void |
setRelevance(double d)
Sets the relevance weight of this CaseFindingComparison. |
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()
Updates the activation strength. |
double |
updateExplanationStrength()
Updates the explanation strength. |
Methods inherited from class jcreek.reasoning.EntityComparison |
addParallell, addSerial, checkIsComparable, compareTo, createComparison, getKnowledgeModel, getOrigin, getPercentageStrength, getStatusText, getStrength, getTarget, isActivated, isComparable, isComparable, isCompletelyMatched, isExplained, isExplainMatched, isPartlyMatched, isUnmatched, toString, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Relation fromOrigin
protected Relation fromTarget
protected EntityComparison comparison
protected double relevance
Constructor Detail |
public CaseFindingComparison(Relation fromOrigin, Relation fromTarget)
fromOrigin
- The relation from the origin (new) case.fromTarget
- The relation from the target (retrieved) case.Method Detail |
public void reset()
EntityComparison
reset
in class EntityComparison
public void activate()
EntityComparison
activate
in class EntityComparison
EntityComparison.isComparable()
public void explain()
EntityComparison
explain
in class EntityComparison
EntityComparison.isComparable()
public int getStatus()
EntityComparison
getStatus
in class EntityComparison
INITIAL_STATUS
,
ACTIVATED_STATUS
,
EXPLAINED_STATUS
public SubModel toSubModel()
EntityComparison
toSubModel
in class EntityComparison
public java.lang.String shortExplanation()
EntityComparison
shortExplanation
in class EntityComparison
public double updateActivationStrength()
updateActivationStrength
in class EntityComparison
public double updateExplanationStrength()
updateExplanationStrength
in class EntityComparison
public EntityComparison getComparison()
public void setRelevance(double d)
public double getRelevance()
public Relation getOriginRelation()
public Relation getTargetRelation()
public EntityComparison getEntityComparison()
public double getActivationStrength()
getActivationStrength
in class EntityComparison
public double getExplanationStrength()
getExplanationStrength
in class EntityComparison
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |