|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.site.elkb.Head
public class Head
Represents a Roget's Thesaurus Head. A Head is defined by the following attributes:
Constructor Summary | |
---|---|
Head()
Default constructor. |
|
Head(int num,
java.lang.String name,
int clNum,
int section)
Constructor which sets the Head number and name, as well as the Class and Section number. |
|
Head(java.lang.String fname)
Constructor that builds the Head object using the information contained in a file. |
Method Summary | |
---|---|
void |
addPara(Paragraph para,
java.lang.String pos)
Adds a paragraph with a given POS to the paragraph list. |
int |
getAdjCount()
Returns the number of adjective word and phrases of this Head. |
int |
getAdjCRefCount()
Returns the number of adjective cross-references of this Head. |
int |
getAdjParaCount()
Returns the number of adjective paragraphs of this Head. |
int |
getAdjSeeCount()
Returns the number of adjective references of this Head. |
int |
getAdjSGCount()
Returns the number of adjective semicolon groups of this Head. |
int |
getAdjStart()
Returns the index of the first adjective paragraph in the array of Pragraph objects of this Head. |
int |
getAdvCount()
Returns the number of adverb word and phrases of this Head. |
int |
getAdvCRefCount()
Returns the number of adverb cross-references of this Head. |
int |
getAdvParaCount()
Returns the number of adverb paragraphs of this Head. |
int |
getAdvSeeCount()
Returns the number of adverb references of this Head. |
int |
getAdvSGCount()
Returns the number of adverb groups of this Head. |
int |
getAdvStart()
Returns the index of the first adverb paragraph in the array of Pragraph objects of this Head. |
int |
getClassNum()
Returns the Class number of this Head. |
int |
getCRefCount()
Returns the number of cross-references of this Head. |
int |
getHeadGroupNum()
Returns the Head Group number of this Head. |
java.lang.String |
getHeadName()
Returns the name of this Head. |
int |
getHeadNum()
Returns the number of this Head. |
int |
getIntCount()
Returns the number of interjection word and phrases of this Head. |
int |
getIntCRefCount()
Returns the number of interjection cross-references of this Head. |
int |
getIntParaCount()
Returns the number of interjection paragraphs of this Head. |
int |
getIntSeeCount()
Returns the number of interjection references of this Head. |
int |
getIntSGCount()
Returns the number of interjection semicolon groups of this Head. |
int |
getIntStart()
Returns the index of the first interjection paragraph in the array of Pragraph objects of this Head. |
int |
getNCount()
Returns the number of noun word and phrases of this Head. |
int |
getNCRefCount()
Returns the number of noun cross-references of this Head. |
int |
getNParaCount()
Returns the number of noun paragraphs of this Head. |
int |
getNSeeCount()
Returns the number of noun see references of this Head. |
int |
getNSGCount()
Returns the number of noun semicolon groups of this Head. |
int |
getNStart()
Returns the index of the first noun paragraph in the array of Pragraph objects of this Head. |
Paragraph |
getPara(int paraNum,
java.lang.String pos)
Returns the a Paragraph object specified by the paragraph number and part-of-speech. |
Paragraph |
getPara(java.lang.String paraKey,
java.lang.String pos)
Returns the a Paragraph object specified by the paragraph key and part-of-speech. |
int |
getParaCount()
Returns the number of paragraphs of this Head. |
int |
getParaCount(java.lang.String pos)
The number of paragraphs for a given part of speech. |
int |
getPhrCount()
Returns the number of phrase word and phrases of this Head. |
int |
getPhrCRefCount()
Returns the number of phrase cross-references of this Head. |
int |
getPhrParaCount()
Returns the number of phrase paragraphs of this Head. |
int |
getPhrSeeCount()
Returns the number of Phrase references of this Head. |
int |
getPhrSGCount()
Returns the number of phrase semicolon groups of this Head. |
int |
getPhrStart()
Returns the index of the first phrase paragraph in the array of Pragraph objects of this Head. |
int |
getPrefCount()
Returns the number of pref word and phrases of this Head. |
int |
getPrefCRefCount()
Returns the number of pref cross-references of this Head. |
int |
getPrefParaCount()
Returns the number of pref paragraphs of this Head. |
int |
getPrefSeeCount()
Returns the number of pref references of this Head. |
int |
getPrefSGCount()
Returns the number of pref semicolon groups of this Head. |
int |
getPrefStart()
Returns the index of the first preface paragraph in the array of Pragraph objects of this Head. |
int |
getPronCount()
Returns the number of pronoun word and phrases of this Head. |
int |
getPronCRefCount()
Returns the number of pronoun cross-references of this Head. |
int |
getPronParaCount()
Returns the number of pronoun paragraphs of this Head. |
int |
getPronSeeCount()
Returns the number of Pronoun references of this Head. |
int |
getPronSGCount()
Returns the number of pronoun semicolon groups of this Head. |
int |
getPronStart()
Returns the index of the first pronoun paragraph in the array of Pragraph objects of this Head. |
int |
getSectionNum()
Returns the Section number of this Head. |
int |
getSeeCount()
Returns the number of see references of this Head. |
int |
getSGCount()
Returns the number of semicolon groups of this Head. |
int |
getSubSectionNum()
Returns the Sub-Section number of this Head. |
int |
getVbCount()
Returns the number of verb word and phrases of this Head. |
int |
getVbCRefCount()
Returns the number of verb cross-references of this Head. |
int |
getVbParaCount()
Returns the number of verb paragraphs of this Head. |
int |
getVbSeeCount()
Returns the number of verb references of this Head. |
int |
getVbSGCount()
Returns the number of verb groups of this Head. |
int |
getVbStart()
Returns the index of the first verb paragraph in the array of Pragraph objects of this Head. |
int |
getWordCount()
Returns the number of words of this Head. |
void |
incrementParaCount()
Increments the paragraph count of this Head. |
void |
print()
Prints the contents of this Head to the standard output. |
void |
printAllSG()
Prints all the semicolon groups of this Head separated on a separate line to the standard output. |
void |
printAllWords()
Prints all the words and phrases of this Head separated on a separate line to the standard output. |
void |
setClassNum(int num)
Sets the Class number of this Head. |
void |
setHeadGroupNum(int num)
Sets the Head Group number of this Head. |
void |
setHeadName(java.lang.String name)
Sets the name of this Head. |
void |
setHeadNum(int num)
Sets the number of this Head. |
void |
setPOSStart(java.lang.String pos)
We assume here that a pos tag is sent to this function when there has been a change to the pos of a paragraph in the Thesaurus |
void |
setSectionNum(int num)
Sets the Section number of this Head. |
void |
setSubSectionNum(int num)
Sets the Sub-Section number of this Head. |
java.lang.String |
toString()
Converts to a string representation the Head object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Head()
public Head(int num, java.lang.String name, int clNum, int section)
num
- name
- clNum
- section
- public Head(java.lang.String fname)
fname
- Method Detail |
---|
public int getHeadNum()
public void setHeadNum(int num)
num
- public java.lang.String getHeadName()
public void setHeadName(java.lang.String name)
name
- public int getClassNum()
public void setClassNum(int num)
num
- public int getSectionNum()
public void setSectionNum(int num)
num
- public int getSubSectionNum()
public void setSubSectionNum(int num)
num
- public int getHeadGroupNum()
public void setHeadGroupNum(int num)
num
- public void incrementParaCount()
public int getNStart()
public int getAdjStart()
public int getVbStart()
public int getAdvStart()
public int getIntStart()
public int getPhrStart()
public int getPrefStart()
public int getPronStart()
public int getWordCount()
public int getNCount()
public int getAdjCount()
public int getVbCount()
public int getAdvCount()
public int getIntCount()
public int getPhrCount()
public int getPronCount()
public int getPrefCount()
public int getParaCount(java.lang.String pos)
pos
-
public int getParaCount()
public int getNParaCount()
public int getAdjParaCount()
public int getVbParaCount()
public int getAdvParaCount()
public int getIntParaCount()
public int getPhrParaCount()
public int getPronParaCount()
public int getPrefParaCount()
public int getSGCount()
public int getNSGCount()
public int getAdjSGCount()
public int getVbSGCount()
public int getAdvSGCount()
public int getIntSGCount()
public int getPhrSGCount()
public int getPronSGCount()
public int getPrefSGCount()
public int getCRefCount()
public int getNCRefCount()
public int getAdjCRefCount()
public int getVbCRefCount()
public int getAdvCRefCount()
public int getIntCRefCount()
public int getPhrCRefCount()
public int getPronCRefCount()
public int getPrefCRefCount()
public int getSeeCount()
public int getNSeeCount()
public int getAdjSeeCount()
public int getVbSeeCount()
public int getAdvSeeCount()
public int getIntSeeCount()
public int getPhrSeeCount()
public int getPronSeeCount()
public int getPrefSeeCount()
public void addPara(Paragraph para, java.lang.String pos)
para
- pos
- public Paragraph getPara(int paraNum, java.lang.String pos)
paraNum
- pos
-
public Paragraph getPara(java.lang.String paraKey, java.lang.String pos)
paraKey
- pos
-
public void setPOSStart(java.lang.String pos)
pos
- public java.lang.String toString()
toString
in class java.lang.Object
public void print()
public void printAllWords()
public void printAllSG()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |