Interface IDisconnectivity

All Known Implementing Classes:
Disconnectivity

public interface IDisconnectivity
A separate class for implementation of SuggestLinks.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String convertMonthToHalf​(int month)
    Gets the half the month is bounded to out of the 12 months.
    java.lang.String convertMonthToQuarter​(int month)
    Gets the quarter the month is bounded to out of the 12 months.
    Timex getDct​(IGraph partition)
    Gets the document creation time
    java.util.ArrayList<ILink> getSuggestedLinks​(Graph graph)
    Returns a list of suggested links to increase graph connectivity.
    java.util.ArrayList<Timex> getTimeExpressions​(IGraph partition)
    Gets a list of time expressions
    boolean hasDct​(IGraph partition)
    Flags if the partition contains a document creation time
    boolean hasTimeExpressions​(IGraph partition)
    Flags if the partition contains time expressions
    java.lang.String suggestedLinksToString​(Graph graph)
    Gets a string representation of the suggested links from the graph.
    void suggestLinks​(java.util.ArrayList<IGraph> partitionList, Graph graph)
    Sends a list of suggested links to the graph
    ILink trySuggestLink​(Timex dct, java.util.ArrayList<Timex> timeExpressions, int numberOfLinks)
    Attempts to parse a suggested link verifying the tags
  • Method Details

    • getSuggestedLinks

      java.util.ArrayList<ILink> getSuggestedLinks​(Graph graph)
      Returns a list of suggested links to increase graph connectivity.
      Parameters:
      graph - A TimeMLGraph
      Returns:
      a list of suggested links.
    • suggestLinks

      void suggestLinks​(java.util.ArrayList<IGraph> partitionList, Graph graph)
      Sends a list of suggested links to the graph
      Parameters:
      partitionList - the list of suggested links
      graph - the graph of the time line
    • hasDct

      boolean hasDct​(IGraph partition)
      Flags if the partition contains a document creation time
      Parameters:
      partition - the graph partition
      Returns:
      True if the partition contains a document creation time False if the partition doesn't contain a document creation time
    • hasTimeExpressions

      boolean hasTimeExpressions​(IGraph partition)
      Flags if the partition contains time expressions
      Parameters:
      partition - the nodes are processed from the grab the time expressions
      Returns:
      True if the partition contains time expressions False if the partition doesn't contain time expressions
    • getDct

      Timex getDct​(IGraph partition)
      Gets the document creation time
      Parameters:
      partition - the graph partition
      Returns:
      document creation time
    • getTimeExpressions

      java.util.ArrayList<Timex> getTimeExpressions​(IGraph partition)
      Gets a list of time expressions
      Parameters:
      partition - the nodes are processed from the grab the time expressions
      Returns:
      an ArrayList of Timexes
    • trySuggestLink

      ILink trySuggestLink​(Timex dct, java.util.ArrayList<Timex> timeExpressions, int numberOfLinks)
      Attempts to parse a suggested link verifying the tags
      Parameters:
      dct - document creation time
      timeExpressions - the time expressions parsed
      numberOfLinks - count of links
      Returns:
      Link the link of the parsed values
    • convertMonthToQuarter

      java.lang.String convertMonthToQuarter​(int month)
      Gets the quarter the month is bounded to out of the 12 months.
      Parameters:
      month - Month ranging from 1-12
      Returns:
      The quarter the month is bounded to: Q1-Q2-Q3-Q4.
    • convertMonthToHalf

      java.lang.String convertMonthToHalf​(int month)
      Gets the half the month is bounded to out of the 12 months.
      Parameters:
      month - Month ranging from 1-12.
      Returns:
      The half the month is bounded to: H1-H2.
    • suggestedLinksToString

      java.lang.String suggestedLinksToString​(Graph graph)
      Gets a string representation of the suggested links from the graph.
      Parameters:
      graph - bounded graph to the suggested links.
      Returns:
      the string representation of the suggested links.