JTP API Documentation

jtp.classifier
Class Classifier

java.lang.Object
  |
  +--jtp.classifier.Classifier

public class Classifier
extends Object

Contains all of the classification algorithms. The methods of this class should only be accessed through Kb.


Nested Class Summary
static class Classifier.ClassifyInfo
          Static class structures
protected static class Classifier.RtXRt
           
 
Field Summary
protected static boolean _bDebugPrint
           
protected static int _CON_PATTERN
           
protected static int _EMPTY_PATTERN
           
protected static int _FULL_PATTERN
           
protected static HashMap _hmSubsumes
           
protected static int _MARKER_SET
           
protected  Kb _pKb
          Member Variables
protected static int _REL_PATTERN
          Constants
protected static int _VISITED
           
protected static int CE
           
protected static int CGE
           
protected static int CLE
           
protected static int CS
           
protected static int RS
           
 
Constructor Summary
protected Classifier()
          Member Methods
 
Method Summary
protected  boolean allConjConstituentsHaveMark(Resource c, int pattern)
           
protected  boolean allDisjConstituentsHaveMark(Resource c, int pattern)
           
protected  Classifier.ClassifyInfo classifyConjConcept(Resource c)
           
protected  Classifier.ClassifyInfo classifyDisjConcept(Resource c)
           
protected  void classifyModifier(Modifier m)
           
protected  void clearMarks(int default_pattern)
           
protected  Set conceptConjMGS(Resource c)
           
protected  Set conceptConjMSS(Resource c)
           
protected  Set conceptDisjMGS(Resource c)
           
protected  Set conceptDisjMSS(Resource c)
           
protected  Classifier.ClassifyInfo insertConcept(Resource c, Set mss, Set mgs)
          Given the mss/mgs sets, insert the new constituent.
protected  void insertModifier(Modifier m, Set mss, Set mgs)
           
protected  void markAllRelationsDelayFullSearch(Resource c, Relation r, int pattern, int link_type1, int link_type2)
           
protected  void markDownRelations(Relation r, int pattern)
           
protected  void markTransClosure(Relation r, Resource c, int pattern, int link_type)
           
protected  void markTransClosureAndRemove(Relation r, Resource c, int pattern, Set cset)
           
protected  void markUpRelations(Relation r, int pattern)
           
protected  Set modifierMGS(Modifier m, Set mss)
           
protected  Set modifierMSS(Modifier m)
           
protected static boolean ModSubsumedBy(Modifier mgs, Modifier m, int rel_pattern, int rel_set, int conc_pattern, int conc_set)
           
protected static boolean ModSubsumes(Modifier mss, Modifier m, int rel_pattern, int rel_set, int conc_pattern, int conc_set)
           
protected  void pruneSharedSLinks(Set mss, Set mgs)
           
protected  void setKb(Kb kb)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_REL_PATTERN

protected static final int _REL_PATTERN
Constants

See Also:
Constant Field Values

_VISITED

protected static final int _VISITED
See Also:
Constant Field Values

_CON_PATTERN

protected static final int _CON_PATTERN
See Also:
Constant Field Values

_EMPTY_PATTERN

protected static final int _EMPTY_PATTERN
See Also:
Constant Field Values

_FULL_PATTERN

protected static final int _FULL_PATTERN
See Also:
Constant Field Values

_MARKER_SET

protected static final int _MARKER_SET
See Also:
Constant Field Values

RS

protected static final int RS
See Also:
Constant Field Values

CS

protected static final int CS
See Also:
Constant Field Values

CE

protected static final int CE
See Also:
Constant Field Values

CGE

protected static final int CGE
See Also:
Constant Field Values

CLE

protected static final int CLE
See Also:
Constant Field Values

_pKb

protected Kb _pKb
Member Variables


_bDebugPrint

protected static boolean _bDebugPrint

_hmSubsumes

protected static HashMap _hmSubsumes
Constructor Detail

Classifier

protected Classifier()
Member Methods

Method Detail

setKb

protected void setKb(Kb kb)

toString

public String toString()
Overrides:
toString in class Object

classifyConjConcept

protected Classifier.ClassifyInfo classifyConjConcept(Resource c)
                                               throws ReasoningException
ReasoningException

classifyDisjConcept

protected Classifier.ClassifyInfo classifyDisjConcept(Resource c)
                                               throws ReasoningException
ReasoningException

conceptConjMSS

protected Set conceptConjMSS(Resource c)

conceptConjMGS

protected Set conceptConjMGS(Resource c)

conceptDisjMGS

protected Set conceptDisjMGS(Resource c)

conceptDisjMSS

protected Set conceptDisjMSS(Resource c)

allConjConstituentsHaveMark

protected boolean allConjConstituentsHaveMark(Resource c,
                                              int pattern)

allDisjConstituentsHaveMark

protected boolean allDisjConstituentsHaveMark(Resource c,
                                              int pattern)

classifyModifier

protected void classifyModifier(Modifier m)

modifierMSS

protected Set modifierMSS(Modifier m)

modifierMGS

protected Set modifierMGS(Modifier m,
                          Set mss)

ModSubsumes

protected static boolean ModSubsumes(Modifier mss,
                                     Modifier m,
                                     int rel_pattern,
                                     int rel_set,
                                     int conc_pattern,
                                     int conc_set)

ModSubsumedBy

protected static boolean ModSubsumedBy(Modifier mgs,
                                       Modifier m,
                                       int rel_pattern,
                                       int rel_set,
                                       int conc_pattern,
                                       int conc_set)

clearMarks

protected void clearMarks(int default_pattern)

markAllRelationsDelayFullSearch

protected void markAllRelationsDelayFullSearch(Resource c,
                                               Relation r,
                                               int pattern,
                                               int link_type1,
                                               int link_type2)

markUpRelations

protected void markUpRelations(Relation r,
                               int pattern)

markDownRelations

protected void markDownRelations(Relation r,
                                 int pattern)

markTransClosure

protected void markTransClosure(Relation r,
                                Resource c,
                                int pattern,
                                int link_type)

markTransClosureAndRemove

protected void markTransClosureAndRemove(Relation r,
                                         Resource c,
                                         int pattern,
                                         Set cset)

insertConcept

protected Classifier.ClassifyInfo insertConcept(Resource c,
                                                Set mss,
                                                Set mgs)
                                         throws ReasoningException
Given the mss/mgs sets, insert the new constituent.

Returns:
new known subsumptions or equivalence
ReasoningException

insertModifier

protected void insertModifier(Modifier m,
                              Set mss,
                              Set mgs)

pruneSharedSLinks

protected void pruneSharedSLinks(Set mss,
                                 Set mgs)

JTP API Documentation