Package edu.fiu.jtlex.data
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.StringconvertMonthToHalf(int month)Gets the half the month is bounded to out of the 12 months.java.lang.StringconvertMonthToQuarter(int month)Gets the quarter the month is bounded to out of the 12 months.TimexgetDct(IGraph partition)Gets the document creation timejava.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 expressionsbooleanhasDct(IGraph partition)Flags if the partition contains a document creation timebooleanhasTimeExpressions(IGraph partition)Flags if the partition contains time expressionsjava.lang.StringsuggestedLinksToString(Graph graph)Gets a string representation of the suggested links from the graph.voidsuggestLinks(java.util.ArrayList<IGraph> partitionList, Graph graph)Sends a list of suggested links to the graphILinktrySuggestLink(Timex dct, java.util.ArrayList<Timex> timeExpressions, int numberOfLinks)Attempts to parse a suggested link verifying the tags
-
Method Details
-
getSuggestedLinks
Returns a list of suggested links to increase graph connectivity.- Parameters:
graph- A TimeMLGraph- Returns:
- a list of suggested links.
-
suggestLinks
Sends a list of suggested links to the graph- Parameters:
partitionList- the list of suggested linksgraph- the graph of the time line
-
hasDct
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
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
Gets the document creation time- Parameters:
partition- the graph partition- Returns:
- document creation time
-
getTimeExpressions
Gets a list of time expressions- Parameters:
partition- the nodes are processed from the grab the time expressions- Returns:
- an ArrayList of Timexes
-
trySuggestLink
Attempts to parse a suggested link verifying the tags- Parameters:
dct- document creation timetimeExpressions- the time expressions parsednumberOfLinks- count of links- Returns:
Linkthe 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 from1-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 from1-12.- Returns:
- The half the month is bounded to:
H1-H2.
-
suggestedLinksToString
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.
-