Class TQLAbstract

java.lang.Object
  extended by TQLAbstract

public class TQLAbstract
extends java.lang.Object

Container class to hold data on TEST-abstracts. There are two arrays: tqls that contains all tql-statements corresponding to sentences in this abstract, and events that contains all events related to sentences/TQL-statements in this abstract.


Field Summary
 java.util.ArrayList<Event> events
           
 java.lang.String medlineid
           
 java.util.ArrayList<TQL> tqls
           
 
Constructor Summary
TQLAbstract()
          An abstract can be constructed without any additional parameters.
 
Method Summary
 void addEvent(Event e)
          Method to add an Event to the list of events in this abstract.
 void addTQL(TQL t)
          Method to add a TQL to the list of TQL-statements in this abstract.
 int countEvents()
          Method to count number of events in this abstact.
 int countTQLs()
          Method to count number of logic statements in this abstact.
 java.util.ArrayList getEvents()
          Method to access the events in this abstract.
 java.util.ArrayList getTQL()
          Method to access the logic statements in this abstract.
 void setID(java.lang.String s)
          Method to set the identification string of this abstract.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tqls

public java.util.ArrayList<TQL> tqls

events

public java.util.ArrayList<Event> events

medlineid

public java.lang.String medlineid
Constructor Detail

TQLAbstract

public TQLAbstract()
An abstract can be constructed without any additional parameters.

Method Detail

addTQL

public void addTQL(TQL t)
Method to add a TQL to the list of TQL-statements in this abstract.

Parameters:
t - the tql to be added

addEvent

public void addEvent(Event e)
Method to add an Event to the list of events in this abstract.

Parameters:
e - the event to be added

setID

public void setID(java.lang.String s)
Method to set the identification string of this abstract.

Parameters:
s - the identification string

getTQL

public java.util.ArrayList getTQL()
Method to access the logic statements in this abstract.

Returns:
arraylist of statements in this abstract

getEvents

public java.util.ArrayList getEvents()
Method to access the events in this abstract.

Returns:
arraylist of events in this abstract.

countEvents

public int countEvents()
Method to count number of events in this abstact.

Returns:
number of events in this abstract

countTQLs

public int countTQLs()
Method to count number of logic statements in this abstact.

Returns:
number of logic statements in this abstract