|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGAbstract
public class GAbstract
Class to hold GEvents, GSentences, sentence counter and a hash table over terms.
GEvent
,
GSentence
,
Hashtable
Field Summary | |
---|---|
java.util.ArrayList<GEvent> |
Gevents
|
java.util.ArrayList<GSentence> |
Gsentences
|
java.util.Hashtable<java.lang.String,java.lang.String> |
ht_lex
|
java.util.Hashtable<java.lang.String,java.lang.String> |
ht_sem
|
java.lang.String |
PMID
|
int |
sentence_counter
|
Constructor Summary | |
---|---|
GAbstract()
This class does not need anything to be instantiated. |
Method Summary | |
---|---|
void |
addEvent(GEvent ge)
Adding an event to the array of events, and setting this abstract as parent for the GEvent. |
void |
addSentence(GSentence gs)
Adding asentence to the array of sentences and incrementing the counter. |
void |
buildTerms()
Traverses the list of Terms in each Sentence, and adds key,value-pair to this abstracts hashtable. |
int |
countEvents()
Returns the size of this abstracts event array. |
int |
countSentences()
Returns the number of sentences in this abstract. |
java.util.ArrayList |
getEvents()
Returns this abstracts list of events. |
java.lang.String |
getEventTheme(java.lang.String eventID)
Get the theme of an event, given it's PMID. |
java.lang.String |
getEventType(java.lang.String eventID)
Get the type of an event, given it's PMID. |
java.util.ArrayList |
getSentences()
Get the sentences in this abstract. |
void |
hello()
Method to echo the contents of this abstract to stdout. |
java.lang.String |
resolveReference(java.lang.String ref)
Find the most likely resolve of a reference (term, event theme or semantic expression in prioritized sequence) |
java.lang.String |
resolveTermLex(java.lang.String term)
Tries to look up the lexical interpretation of a term code in this abstracts hashtable. |
void |
setPMID(java.lang.String s)
Setting the unique medline identification number for this abstract. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String PMID
public java.util.ArrayList<GEvent> Gevents
public java.util.ArrayList<GSentence> Gsentences
public java.util.Hashtable<java.lang.String,java.lang.String> ht_lex
public java.util.Hashtable<java.lang.String,java.lang.String> ht_sem
public int sentence_counter
Constructor Detail |
---|
public GAbstract()
Method Detail |
---|
public void addSentence(GSentence gs)
gs
- The GSentence to be addedpublic void addEvent(GEvent ge)
ge
- The event to be addedpublic void setPMID(java.lang.String s)
s
- the Medline IDentificatorpublic int countEvents()
public int countSentences()
public java.lang.String resolveTermLex(java.lang.String term)
term
- the term to be looked up
public void buildTerms()
public java.util.ArrayList getEvents()
public java.lang.String getEventTheme(java.lang.String eventID)
eventID
- the unique identification number for this event
public java.lang.String getEventType(java.lang.String eventID)
eventID
- the unique identification number for this event
public java.util.ArrayList getSentences()
public void hello()
public java.lang.String resolveReference(java.lang.String ref)
ref
- the reference value
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |