jcreek.reasoning
Class URLComparison

java.lang.Object
  extended byjcreek.reasoning.EntityComparison
      extended byjcreek.reasoning.URLComparison
All Implemented Interfaces:
java.lang.Comparable

public class URLComparison
extends EntityComparison


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
URLComparison(Entity origin, Entity target)
          Creates a new URLComparison, comparing the origin and target entities given as parameters.
 
Method Summary
 boolean isComparable()
          Checks if the entities are comparable.
 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()
          Computes the activation strenght of the comparison.
 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

valueType

protected Entity valueType

relList

protected java.util.ArrayList relList

notComparable

protected boolean notComparable
Constructor Detail

URLComparison

public URLComparison(Entity origin,
                     Entity target)
Creates a new URLComparison, comparing the origin and target entities given as parameters.

Method Detail

updateExplanationStrength

public double updateExplanationStrength()
Nothing is done in the explanation step.

Specified by:
updateExplanationStrength in class EntityComparison
Returns:
Always 0.0 .

updateActivationStrength

public double updateActivationStrength()
Description copied from class: EntityComparison
Computes the activation strenght of the comparison. This method should not be called to often. Instead, call 'activate' and then 'getActivationStrength' When implemented by subclasses, this method should consist of the activation between the comparing concepts

Specified by:
updateActivationStrength in class EntityComparison
Returns:
the activation strength of the comparison

isComparable

public boolean isComparable()
Checks if the entities are comparable. In order to be so, they must both have the same comparator and also have a "value of" relation to a single common entity.

Overrides:
isComparable in class EntityComparison
Returns:
true if the comparison is comparable.

shortExplanation

public java.lang.String shortExplanation()
Description copied from class: EntityComparison
Gives a short textual representation (a sentence or so) describing the comparison.

Overrides:
shortExplanation in class EntityComparison

toSubModel

public SubModel toSubModel()
Description copied from class: EntityComparison
Returns a submodel of the entities compared.

Overrides:
toSubModel in class EntityComparison


Created at IDI, NTNU by the Artificial Intelligence and Learning group