Package edu.fiu.jtlex.algorithms
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 Summary
Modifier and TypeMethodDescriptionconvertMonthToHalf
(int month) Gets the half the month is bounded to out of the 12 months.convertMonthToQuarter
(int month) Gets the quarter the month is bounded to out of the 12 months.getDct
(ITimeMLGraph partition) Gets a timex that is the date creation time tag from a partitiongetTimeExpressions
(ITimeMLGraph partition) Gets a list of time expressions from a partitionboolean
hasDct
(ITimeMLGraph partition) Determines whether a partition has a date creation time tagboolean
hasTimeExpressions
(ITimeMLGraph partition) Determines whether a partition contains any timexsuggestLinks
(List<ITimeMLGraph> partitions, int linksCount) Suggests a list of possible links to increase connectivity within a graph.
-
Method Details
-
getDct
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
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
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
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
Suggests a list of possible links to increase connectivity within a graph.- Parameters:
partitions
- A List of partitionslinksCount
- 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
Gets the quarter the month is bounded to out of the 12 months.- Parameters:
month
- Month ranging from1-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
Gets the half the month is bounded to out of the 12 months.- Parameters:
month
- Month ranging from1-12
- Returns:
- The half the month is bounded to: H1-H2.
- Throws:
IllegalArgumentException
- If the month is out of range- Since:
- jTLEX 1.0
-