rdr.core
Class Classifier

java.lang.Object
  extended by rdr.core.Classifier
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MCRDR, SCRDR

public abstract class Classifier
extends java.lang.Object
implements java.io.Serializable

Abstract class: Classifier Serves as a template for actual classifiers, which should extend this class.

Author:
Ivan Bindoff
See Also:
Serialized Form

Field Summary
 int highestID
           
 common.datastructures.MyFastVector<Node> nodeIndex
           
static long serialVersionUID
           
 
Constructor Summary
Classifier()
           
 
Method Summary
abstract  common.datastructures.MyFastVector<Node> classify(Case c)
           
abstract  java.lang.String getClassName()
           
 common.datastructures.MyFastVector<Node> getNodeIndex()
          Get the nodeIndex
 int incrementID()
          Increment the highestID - do this whenever a node is actually inserted into a knowledge base
abstract  boolean insertNode(Case theCase, Node newNode, Node parentNode)
           
abstract  void launchKAGUI(int mode, Case c)
           
abstract  void launchKAGUI(int mode, Case c, int nodeEditing)
           
abstract  boolean load()
           
abstract  boolean save()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeIndex

public common.datastructures.MyFastVector<Node> nodeIndex

highestID

public int highestID

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Classifier

public Classifier()
Method Detail

classify

public abstract common.datastructures.MyFastVector<Node> classify(Case c)

load

public abstract boolean load()

save

public abstract boolean save()

insertNode

public abstract boolean insertNode(Case theCase,
                                   Node newNode,
                                   Node parentNode)

launchKAGUI

public abstract void launchKAGUI(int mode,
                                 Case c)

launchKAGUI

public abstract void launchKAGUI(int mode,
                                 Case c,
                                 int nodeEditing)

getClassName

public abstract java.lang.String getClassName()

incrementID

public int incrementID()
Increment the highestID - do this whenever a node is actually inserted into a knowledge base


getNodeIndex

public common.datastructures.MyFastVector<Node> getNodeIndex()
Get the nodeIndex

Returns:
the index of nodes