Package edu.fiu.jtlex
Class TemporalNode
java.lang.Object
edu.fiu.jtlex.TemporalNode
- All Implemented Interfaces:
IANode,ITemporalNode
- Author:
- arada002, ccaro014
-
Constructor Summary
ConstructorsConstructorDescriptionTemporalNode(int id, int begin, int end, String text, ICompoundTerm compoundTerm, ITimex.TimexType timexType, String timexText, Date startDate, Date endDate)Creates a new temporalNode with provided information -
Method Summary
-
Constructor Details
-
TemporalNode
public TemporalNode(int id, int begin, int end, String text, ICompoundTerm compoundTerm, ITimex.TimexType timexType, String timexText, Date startDate, Date endDate)Creates a new temporalNode with provided information- Parameters:
id- id of the anansi; may not be negativebegin- position of the first character of the phrase in the textend- position of the last character of the phrase in the texttext- phrase textcompoundTerm- compound term associated with the Temporal NodetimexType- a type of the Timex objecttimexText- contains information available in time expression and context
-
-
Method Details
-
getCompoundTerm
(non-javadoc)- Specified by:
getCompoundTermin interfaceITemporalNode- Returns:
- ICompoundTerm compoundTerm
- See Also:
edu.fiu.jtlex.data.ITemporalNode#getCompoundTerm()
-
getId
public int getId()(non-javadoc)- Specified by:
getIdin interfaceIANode- Specified by:
getIdin interfaceITemporalNode- See Also:
edu.fiu.jtlex.data.ITemporalNode#getId()
-
getBegin
public int getBegin()(non-javadoc)- Specified by:
getBeginin interfaceIANode- Specified by:
getBeginin interfaceITemporalNode- See Also:
edu.fiu.jtlex.data.ITemporalNode#getBegin()
-
getEnd
public int getEnd()(non-javadoc)- Specified by:
getEndin interfaceIANode- Specified by:
getEndin interfaceITemporalNode- See Also:
edu.fiu.jtlex.data.ITemporalNode#getEnd()
-
getText
(non-javadoc)- Specified by:
getTextin interfaceIANode- Specified by:
getTextin interfaceITemporalNode- See Also:
edu.fiu.jtlex.data.ITemporalNode#getText()
-
getTimexText
(non-javadoc)- Specified by:
getTimexTextin interfaceITemporalNode- See Also:
edu.fiu.jtlex.data.ITemporalNode#getTimexText()
-
getTimexType
(non-javadoc)- Specified by:
getTimexTypein interfaceITemporalNode- Returns:
- TimexType enum
- See Also:
edu.fiu.jtlex.data.ITemporalNode#getTimexType()
-
getTimexTid
public int getTimexTid()(non-javadoc)- Specified by:
getTimexTidin interfaceITemporalNode- See Also:
edu.fiu.jtlex.data.ITemporalNode#getTimexTid()
-
isTemporalFunction
public boolean isTemporalFunction()(non-javadoc)- Specified by:
isTemporalFunctionin interfaceITemporalNode- Returns:
if the node has temporal function in the document if the node does not have the temporal function in the document - See Also:
edu.fiu.jtlex.data.ITemporalNode#isTemporalFunction()
-
getFid
(non-javadoc)- Specified by:
getFidin interfaceITemporalNode- Returns:
- FunctionInDocument enum NONE if not specified
- See Also:
edu.fiu.jtlex.data.ITemporalNode#getFid()
-
getstartDate
(non-javadoc)- Specified by:
getstartDatein interfaceITemporalNode- Returns:
- Date startDate NONE if not specified
- See Also:
edu.fiu.jtlex.data.ITemporalNode#getstartDate()
-
getendDate
(non-javadoc)- Specified by:
getendDatein interfaceITemporalNode- Returns:
- Date endDate
- See Also:
edu.fiu.jtlex.data.ITemporalNode#getendDate()
-