Class GTerm

java.lang.Object
  extended by GTerm

public class GTerm
extends java.lang.Object

Container class to hold information about GTerms, which are important expressions in GSentences.

See Also:
GSentence

Field Summary
 java.lang.String id
           
 java.lang.String lex
           
 GSentence parent
           
 java.lang.String sem
           
 
Constructor Summary
GTerm(GSentence p)
          To construct a term, it has to belong to a sentence.
 
Method Summary
 void hello()
          Echo this Term to stdout.
 void setID(java.lang.String s)
          Set the identificator of this term
 void setlex(java.lang.String s)
          Set the lexical representation of this term
 void setsem(java.lang.String s)
          Set the semantic representation of this term
 
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

lex

public java.lang.String lex

sem

public java.lang.String sem

parent

public GSentence parent
Constructor Detail

GTerm

public GTerm(GSentence p)
To construct a term, it has to belong to a sentence.

Parameters:
p - the parent sentence
Method Detail

setID

public void setID(java.lang.String s)
Set the identificator of this term

Parameters:
s - identificator string

setlex

public void setlex(java.lang.String s)
Set the lexical representation of this term

Parameters:
s - the lexical representation

setsem

public void setsem(java.lang.String s)
Set the semantic representation of this term

Parameters:
s - the semantic representation

hello

public void hello()
Echo this Term to stdout.