com.sun.labs.minion.lexmorph
Class Category

java.lang.Object
  extended by com.sun.labs.minion.lexmorph.Category
All Implemented Interfaces:
Value, java.lang.Comparable

public class Category
extends java.lang.Object


Field Summary
protected  int index
           
 boolean isRootCategory
           
protected  Lexicon lexicon
           
 long[] myCatBits
           
protected  java.lang.Number numericalValue
           
protected  java.util.concurrent.ConcurrentHashMap props
           
 com.sun.labs.minion.lexmorph.State startState
           
 Category[] subcats
           
 long[] subCatsBits
           
protected  java.lang.String wordstring
           
 
Method Summary
protected  int assignAtomIndex()
           
protected  int assignCategoryIndex()
           
 boolean categoryp()
           
 Category[] collectExcluding(Category ecat)
           
 int compareTo(java.lang.Object other)
           
 BitBuffer encode()
           
 BitBuffer encode(BitBuffer bb)
           
 boolean eq(Value obj)
           
 boolean equal(Value obj)
           
 com.sun.labs.minion.lexmorph.State getStartState()
           
 Category[] getSubcats()
           
 java.lang.String getWordString()
           
 boolean isInArray(Category[] array)
           
 boolean isInArray(Value[] array)
           
 boolean isRootCategory()
           
 Lexicon lexicon()
           
 boolean listp()
           
 boolean numeralp()
           
 java.lang.Number numericalValue()
           
 java.lang.String phraseNameString()
           
 boolean phrasep()
           
 java.lang.String printEntryString()
           
 java.lang.String printString()
           
 java.lang.String safePrintString()
           
 void setStartState(com.sun.labs.minion.lexmorph.State ss)
           
 void showCategory()
           
 boolean subsumesCategory(Category cat)
           
 boolean subsumesCategory(Category cat, java.util.HashSet triedCats)
           
 boolean subsumesOneOf(Category[] cats)
           
 java.lang.String toString()
           
 boolean wordp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

subcats

public Category[] subcats

isRootCategory

public boolean isRootCategory

startState

public com.sun.labs.minion.lexmorph.State startState

myCatBits

public long[] myCatBits

subCatsBits

public long[] subCatsBits

lexicon

protected final Lexicon lexicon

wordstring

protected java.lang.String wordstring

index

protected int index

numericalValue

protected java.lang.Number numericalValue

props

protected java.util.concurrent.ConcurrentHashMap props
Method Detail

toString

public java.lang.String toString()

categoryp

public boolean categoryp()
Specified by:
categoryp in interface Value

assignCategoryIndex

protected int assignCategoryIndex()

encode

public BitBuffer encode()

encode

public BitBuffer encode(BitBuffer bb)

isInArray

public boolean isInArray(Category[] array)

isRootCategory

public boolean isRootCategory()

getSubcats

public Category[] getSubcats()

subsumesOneOf

public boolean subsumesOneOf(Category[] cats)

subsumesCategory

public boolean subsumesCategory(Category cat,
                                java.util.HashSet triedCats)

showCategory

public void showCategory()

subsumesCategory

public boolean subsumesCategory(Category cat)

collectExcluding

public Category[] collectExcluding(Category ecat)

setStartState

public void setStartState(com.sun.labs.minion.lexmorph.State ss)

getStartState

public com.sun.labs.minion.lexmorph.State getStartState()

listp

public boolean listp()
Specified by:
listp in interface Value

wordp

public boolean wordp()
Specified by:
wordp in interface Value

phrasep

public boolean phrasep()
Specified by:
phrasep in interface Value

numericalValue

public java.lang.Number numericalValue()
Specified by:
numericalValue in interface Value

numeralp

public boolean numeralp()

lexicon

public Lexicon lexicon()

isInArray

public boolean isInArray(Value[] array)
Specified by:
isInArray in interface Value

eq

public boolean eq(Value obj)
Specified by:
eq in interface Value

equal

public boolean equal(Value obj)
Specified by:
equal in interface Value

compareTo

public int compareTo(java.lang.Object other)
Specified by:
compareTo in interface java.lang.Comparable

printString

public java.lang.String printString()
Specified by:
printString in interface Value

phraseNameString

public java.lang.String phraseNameString()
Specified by:
phraseNameString in interface Value

getWordString

public java.lang.String getWordString()
Specified by:
getWordString in interface Value

safePrintString

public java.lang.String safePrintString()
Specified by:
safePrintString in interface Value

printEntryString

public java.lang.String printEntryString()

assignAtomIndex

protected int assignAtomIndex()