Class GEvent

java.lang.Object
  extended by GEvent

public class GEvent
extends java.lang.Object

A container class for holding all data on events from the golden corpus. Attributes are located in a hashtable, which set- and get-methods should be employed to access.


Field Summary
 java.util.Hashtable<java.lang.String,java.lang.String> ht
           
 java.lang.String id
           
 GAbstract parent
           
 java.lang.String sentence
           
 
Constructor Summary
GEvent()
          No data is needed to construct an GEvent
 
Method Summary
 java.lang.String get(java.lang.String key)
          Gets an attribute value from this Event
 java.lang.String getCause()
          Gets the cause of this Event
 java.lang.String getRealCause()
          Gets the real (resolved) of this Event
 java.lang.String getRealTheme()
          Gets the real (resolved) theme of this Event
 java.lang.String getRealType()
          Gets the real (resolved) type of this Event
 java.lang.String getTheme()
          Gets the theme of this Event
 java.lang.String getType()
          Gets the type of this Event
 java.lang.String getXML()
          Gets the XML-representation of this Event for printing distilled
 void hello()
          Method for echoing the content of this event to stdout.
 void resolveTermPermanent()
          Method to resolve each attribute into the lexiacal representation, and store is as real_attribute.
 void set(java.lang.String key, java.lang.String value)
          Sets an attribute of this Event
 void setCause(java.lang.String value)
          Sets the cause of this Event
 void setID(java.lang.String i)
          Sets the identification string from corpus of this Event
 void setParent(GAbstract p)
          Sets the of parent abstract this Event
 void setTheme(java.lang.String value)
          Sets the theme of this Event
 void setType(java.lang.String value)
          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 java.lang.String id

ht

public java.util.Hashtable<java.lang.String,java.lang.String> ht

parent

public GAbstract parent

sentence

public java.lang.String sentence
Constructor Detail

GEvent

public GEvent()
No data is needed to construct an GEvent

Method Detail

setParent

public void setParent(GAbstract p)
Sets the of parent abstract this Event

Parameters:
p - the parent abstract

setID

public void setID(java.lang.String i)
Sets the identification string from corpus of this Event

Parameters:
i - identification string from corpus

setType

public void setType(java.lang.String value)
Sets the type of this Event

Parameters:
value - event type

setTheme

public void setTheme(java.lang.String value)
Sets the theme of this Event

Parameters:
value - event theme

setCause

public void setCause(java.lang.String value)
Sets the cause of this Event

Parameters:
value - event cause

set

public void set(java.lang.String key,
                java.lang.String value)
Sets an attribute of this Event

Parameters:
key - the attribute name
value - the attribute value

get

public java.lang.String get(java.lang.String key)
Gets an attribute value from this Event

Returns:
the value associated with an attribute

getType

public java.lang.String getType()
Gets the type of this Event

Returns:
event type

getTheme

public java.lang.String getTheme()
Gets the theme of this Event

Returns:
event theme

getCause

public java.lang.String getCause()
Gets the cause of this Event

Returns:
event cause

getRealType

public java.lang.String getRealType()
Gets the real (resolved) type of this Event

Returns:
real event type
See Also:
resolveTermPermanent()

getRealTheme

public java.lang.String getRealTheme()
Gets the real (resolved) theme of this Event

Returns:
real event theme
See Also:
resolveTermPermanent()

getRealCause

public java.lang.String getRealCause()
Gets the real (resolved) of this Event

Returns:
real event cause
See Also:
resolveTermPermanent()

getXML

public java.lang.String getXML()
Gets the XML-representation of this Event for printing distilled

Returns:
a string representing the essentials of this event.

resolveTermPermanent

public void resolveTermPermanent()
Method to resolve each attribute into the lexiacal representation, and store is as real_attribute.


hello

public void hello()
Method for echoing the content of this event to stdout.