Package edu.fiu.jtlex

Class TemporalNode

java.lang.Object
edu.fiu.jtlex.TemporalNode
All Implemented Interfaces:
IANode, ITemporalNode

public class TemporalNode extends Object implements ITemporalNode
Author:
arada002, ccaro014
  • 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 negative
      begin - position of the first character of the phrase in the text
      end - position of the last character of the phrase in the text
      text - phrase text
      compoundTerm - compound term associated with the Temporal Node
      timexType - a type of the Timex object
      timexText - contains information available in time expression and context
  • Method Details

    • getCompoundTerm

      public ICompoundTerm getCompoundTerm()
      (non-javadoc)
      Specified by:
      getCompoundTerm in interface ITemporalNode
      Returns:
      ICompoundTerm compoundTerm
      See Also:
      edu.fiu.jtlex.data.ITemporalNode#getCompoundTerm()
    • getId

      public int getId()
      (non-javadoc)
      Specified by:
      getId in interface IANode
      Specified by:
      getId in interface ITemporalNode
      See Also:
      edu.fiu.jtlex.data.ITemporalNode#getId()
    • getBegin

      public int getBegin()
      (non-javadoc)
      Specified by:
      getBegin in interface IANode
      Specified by:
      getBegin in interface ITemporalNode
      See Also:
      edu.fiu.jtlex.data.ITemporalNode#getBegin()
    • getEnd

      public int getEnd()
      (non-javadoc)
      Specified by:
      getEnd in interface IANode
      Specified by:
      getEnd in interface ITemporalNode
      See Also:
      edu.fiu.jtlex.data.ITemporalNode#getEnd()
    • getText

      public String getText()
      (non-javadoc)
      Specified by:
      getText in interface IANode
      Specified by:
      getText in interface ITemporalNode
      See Also:
      edu.fiu.jtlex.data.ITemporalNode#getText()
    • getTimexText

      public String getTimexText()
      (non-javadoc)
      Specified by:
      getTimexText in interface ITemporalNode
      See Also:
      edu.fiu.jtlex.data.ITemporalNode#getTimexText()
    • getTimexType

      public ITimex.TimexType getTimexType()
      (non-javadoc)
      Specified by:
      getTimexType in interface ITemporalNode
      Returns:
      TimexType enum
      See Also:
      edu.fiu.jtlex.data.ITemporalNode#getTimexType()
    • getTimexTid

      public int getTimexTid()
      (non-javadoc)
      Specified by:
      getTimexTid in interface ITemporalNode
      See Also:
      edu.fiu.jtlex.data.ITemporalNode#getTimexTid()
    • isTemporalFunction

      public boolean isTemporalFunction()
      (non-javadoc)
      Specified by:
      isTemporalFunction in interface ITemporalNode
      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

      public ITimex.FunctionInDocument getFid()
      (non-javadoc)
      Specified by:
      getFid in interface ITemporalNode
      Returns:
      FunctionInDocument enum NONE if not specified
      See Also:
      edu.fiu.jtlex.data.ITemporalNode#getFid()
    • getstartDate

      public Date getstartDate()
      (non-javadoc)
      Specified by:
      getstartDate in interface ITemporalNode
      Returns:
      Date startDate NONE if not specified
      See Also:
      edu.fiu.jtlex.data.ITemporalNode#getstartDate()
    • getendDate

      public Date getendDate()
      (non-javadoc)
      Specified by:
      getendDate in interface ITemporalNode
      Returns:
      Date endDate
      See Also:
      edu.fiu.jtlex.data.ITemporalNode#getendDate()