Class Event

java.lang.Object
  extended by Event

public class Event
extends java.lang.Object

Container class for holding events from GeneTUC. Event are invoked from TQLHandler

See Also:
TQLHandler

Field Summary
 java.lang.String cause
           
 java.lang.String cause_adjectives
           
 java.lang.String cause_extended
           
 int id
           
 java.lang.String litCause
           
 java.lang.String litTheme
           
 java.lang.String litType
           
 TQL parent
           
 TQLAbstract parent_abstract
           
 java.lang.String theme
           
 java.lang.String theme_extended
           
 java.lang.String type
           
 java.lang.String type_extended
           
 
Constructor Summary
Event()
          Create an empty event for filling "holes" in event arrays.
Event(TQL p)
          Create a incomplete event for later refinement.
Event(TQL p, java.lang.String type)
          Create a incomplete event for later refinement.
Event(TQL p, java.lang.String type, java.lang.String theme)
          Create a incomplete event for later refinement.
Event(TQL p, java.lang.String type, java.lang.String theme, java.lang.String cause)
          Create an event with all attributes.
 
Method Summary
 java.lang.String getCause()
          Gets the cause of this event.
 int getID()
          Gets the numeric ID of this event
 java.lang.String getLitCause()
          Get-method for member variable return litCause
 java.lang.String getLitTheme()
          Get-method for member variable return litTheme
 java.lang.String getLitType()
          Get-method for member variable return litType
 java.lang.String getTheme()
          Gets the theme of this event.
 java.lang.String getType()
          Gets the type of this event.
 java.lang.String getXML()
          Method for returning an XML-representation of this event.
 void hello()
          Wrapper method for printEvent();
 void printEvent()
          Echos this event to stdout.
 void setAbstract(TQLAbstract a)
          Set-method for member variable
 void setCause(java.lang.String c)
          Sets the cause of this event
 void setLitCause(java.lang.String s)
          Set-method for member variable
 void setLitTheme(java.lang.String s)
          Set-method for member variable
 void setLitType(java.lang.String s)
          Set-method for member variable
 void setTheme(java.lang.String t)
          Sets the theme of this event
 void setType(java.lang.String t)
          Sets the type of this event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public int id

type

public java.lang.String type

type_extended

public java.lang.String type_extended

theme

public java.lang.String theme

theme_extended

public java.lang.String theme_extended

cause

public java.lang.String cause

cause_extended

public java.lang.String cause_extended

cause_adjectives

public java.lang.String cause_adjectives

litType

public java.lang.String litType

litTheme

public java.lang.String litTheme

litCause

public java.lang.String litCause

parent

public TQL parent

parent_abstract

public TQLAbstract parent_abstract
Constructor Detail

Event

public Event(TQL p,
             java.lang.String type,
             java.lang.String theme,
             java.lang.String cause)
Create an event with all attributes.

Parameters:
p - the parent TQL clause
type - the event type
theme - the event theme
cause - the event cause

Event

public Event(TQL p,
             java.lang.String type,
             java.lang.String theme)
Create a incomplete event for later refinement.

Parameters:
p - the parent TQL clause
type - the event type
theme - the event theme

Event

public Event(TQL p,
             java.lang.String type)
Create a incomplete event for later refinement.

Parameters:
p - the parent TQL clause
type - the event type

Event

public Event(TQL p)
Create a incomplete event for later refinement.

Parameters:
p - the parent TQL clause

Event

public Event()
Create an empty event for filling "holes" in event arrays.

Method Detail

printEvent

public void printEvent()
Echos this event to stdout.


hello

public void hello()
Wrapper method for printEvent();

See Also:
printEvent()

setType

public void setType(java.lang.String t)
Sets the type of this event

Parameters:
t - type

setTheme

public void setTheme(java.lang.String t)
Sets the theme of this event

Parameters:
t - theme

setCause

public void setCause(java.lang.String c)
Sets the cause of this event

Parameters:
c - cause

getID

public int getID()
Gets the numeric ID of this event

Returns:
id

getType

public java.lang.String getType()
Gets the type of this event. There are a number of "types": Types are prioritizedly returned (top-bottom).

Returns:
type

getTheme

public java.lang.String getTheme()
Gets the theme of this event. There are a number of "themes": Types are prioritizedly returned (top-bottom).

Returns:
theme

getCause

public java.lang.String getCause()
Gets the cause of this event. There are a number of "causes": Types are prioritizedly returned (top-bottom).

Returns:
cause

getLitType

public java.lang.String getLitType()
Get-method for member variable return litType


getLitTheme

public java.lang.String getLitTheme()
Get-method for member variable return litTheme


getLitCause

public java.lang.String getLitCause()
Get-method for member variable return litCause


setLitType

public void setLitType(java.lang.String s)
Set-method for member variable

Parameters:
s - the (literal) type to be set

setLitTheme

public void setLitTheme(java.lang.String s)
Set-method for member variable

Parameters:
s - the (literal) theme to be set

setLitCause

public void setLitCause(java.lang.String s)
Set-method for member variable

Parameters:
s - the (literal) cause to be set

setAbstract

public void setAbstract(TQLAbstract a)
Set-method for member variable

Parameters:
a - the parent abstract to be set

getXML

public java.lang.String getXML()
Method for returning an XML-representation of this event. Used for getting "distilled" events to write to out-files.

See Also:
XMLWriter