jcreek.representation.inference
Class SortedPlausibleInheritanceMethod

java.lang.Object
  extended byjcreek.representation.inference.SpreadingActivationRule
      extended byjcreek.representation.inference.InheritanceMethod
          extended byjcreek.representation.inference.PlausibleInheritanceMethod
              extended byjcreek.representation.inference.SortedPlausibleInheritanceMethod
All Implemented Interfaces:
java.util.Comparator

public class SortedPlausibleInheritanceMethod
extends PlausibleInheritanceMethod
implements java.util.Comparator

Title: SortedPlausibleInheritanceMethod

Description: Same as it's superclass, PlausibleInheritanceMethod, but the relations inherited are sorted according to the relation-type and value-type before they are returned. This is used when comparing features of cases.

Version:
1.0
Author:
Frode Sørom

Field Summary
 
Fields inherited from class jcreek.representation.inference.InheritanceMethod
DEBUG
 
Constructor Summary
SortedPlausibleInheritanceMethod(KnowledgeModel knowledgeModel)
           
SortedPlausibleInheritanceMethod(RelationType rcd)
           
 
Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
           
 Relation[] inherit(Entity e)
           
 
Methods inherited from class jcreek.representation.inference.PlausibleInheritanceMethod
accept, accept, accept, acceptInheritance, equals, execute, findRelationTransfers, hashCode, reenter
 
Methods inherited from class jcreek.representation.inference.SpreadingActivationRule
generateModel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SortedPlausibleInheritanceMethod

public SortedPlausibleInheritanceMethod(RelationType rcd)

SortedPlausibleInheritanceMethod

public SortedPlausibleInheritanceMethod(KnowledgeModel knowledgeModel)
Method Detail

inherit

public Relation[] inherit(Entity e)
Overrides:
inherit in class InheritanceMethod

compare

public int compare(java.lang.Object a,
                   java.lang.Object b)
Specified by:
compare in interface java.util.Comparator


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