|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkr.ac.kaist.swrc.jhannanum.comm.CommObject
public class CommObject
CommObject is used by a work flow and plug-ins that are expected to communicate with each other. This object contains the meta data of input documents and sentences. The input and output data types of HanNanum plug-ins such as PlainSentence, Sentence, and SetOfSentences inherit this class.
| Field Summary | |
|---|---|
private int |
documentID
ID of the document which this object belong to. |
private boolean |
endOfDocument
Flag for notifying the end of document. |
private int |
sentenceID
ID of the sentence which this object belong to. |
| Constructor Summary | |
|---|---|
CommObject()
|
|
| Method Summary | |
|---|---|
int |
getDocumentID()
It returns the ID of the document which this object is belong to. |
int |
getSentenceID()
Get the sentence ID for this object. |
boolean |
isEndOfDocument()
It returns true when it is the last element of the document. |
void |
setDocumentID(int documentID)
Set the document ID for this object. |
void |
setEndOfDocument(boolean endOfDocument)
Set the end of document flag of this object. |
void |
setSentenceID(int sentenceID)
Set the sentence ID for this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int documentID
private int sentenceID
private boolean endOfDocument
| Constructor Detail |
|---|
public CommObject()
| Method Detail |
|---|
public boolean isEndOfDocument()
public void setEndOfDocument(boolean endOfDocument)
endOfDocument - - true: when it is the end of document, otherwise falsepublic int getDocumentID()
public void setDocumentID(int documentID)
documentID - public int getSentenceID()
public void setSentenceID(int sentenceID)
sentenceID -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||