Interface IDisconnectivityProcessor

All Known Implementing Classes:
DisconnectivityProcessor

public interface IDisconnectivityProcessor
Abstraction for a processor to increase connectivity between graph partitions.
Since:
jTLEX 1.0
  • Method Details

    • getDct

      TimeMLTimex getDct(ITimeMLGraph partition)
      Gets a timex that is the date creation time tag from a partition
      Parameters:
      partition - The partition from which to extract the timex
      Returns:
      The date creation time timex, or null if there is none
      Throws:
      NullPointerException - If the partition is null
      Since:
      jTLEX 1.0
    • hasDct

      boolean hasDct(ITimeMLGraph partition)
      Determines whether a partition has a date creation time tag
      Parameters:
      partition - The partition to examine
      Returns:
      True if there is any date creation time tag, else false
      Throws:
      NullPointerException - If partition is null
      Since:
      jTLEX 1.0
    • hasTimeExpressions

      boolean hasTimeExpressions(ITimeMLGraph partition)
      Determines whether a partition contains any timex
      Parameters:
      partition - The partition to examine
      Returns:
      True if there is any timex, else false
      Throws:
      NullPointerException - If partition is null
      Since:
      jTLEX 1.0
    • getTimeExpressions

      List<TimeMLTimex> getTimeExpressions(ITimeMLGraph partition)
      Gets a list of time expressions from a partition
      Parameters:
      partition - The partition from which to extract timexes
      Returns:
      A List of timexes from the partition
      Throws:
      NullPointerException - If partition is null
      Since:
      jTLEX 1.0
    • suggestLinks

      List<ITimeMLLink> suggestLinks(List<ITimeMLGraph> partitions, int linksCount)
      Suggests a list of possible links to increase connectivity within a graph.
      Parameters:
      partitions - A List of partitions
      linksCount - The number of links in the graph (Used for link creation)
      Returns:
      A List with the suggested links to increase connectivity
      Throws:
      IllegalArgumentException - If the graph does not have a date creation time tag.
      Since:
      jTLEX 1.0
    • convertMonthToQuarter

      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
      Throws:
      IllegalArgumentException - If the month is out of range
      Since:
      jTLEX 1.0
    • convertMonthToHalf

      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.
      Throws:
      IllegalArgumentException - If the month is out of range
      Since:
      jTLEX 1.0