Package edu.fiu.jtlex.data
Interface ITimeline
- All Known Implementing Classes:
Timeline
public interface ITimeline
Represents a Timeline of a TimeML graph, which is an ordered list of the events
extracted from a TimeML Graph. TimeML annotations are converted into a collection of
main and subordinated timelines arranged into a trunk-and-branch style structure.
This class takes an ordered timeline, a set of attachment links, arranging them into a Timeline.
- Since:
- Revision 696
-
Method Summary
Modifier and TypeMethodDescriptionReturns a List containing the breaking points from the Partitioning.java class.Returns the first timepoint in the Timeline.Returns the last timepoint in the Timeline.Returns theList<String>representation of the main Timeline in the graph.Returns an ArrayList containing the Timelines belonging to the subordinating subgraphs.intReturns the number of events in the timeline.intReturns the total number of subordination branches in the graph.intReturns number of timepoints.booleanhasNext()Checks if there are Timeline elements remaining in the list.iterator()Returns an iterator object that is used in for-each loops.next()Returns next String representation of an event on the timeline.toJSON()Returns the JSON (RFC 8259) representation of the Timeline.
-
Method Details
-
iterator
Returns an iterator object that is used in for-each loops.- Returns:
- an iterator object that is used in for-each loops.
- Since:
- Revision 696
-
hasNext
boolean hasNext()Checks if there are Timeline elements remaining in the list.- Returns:
- true if there are Timeline elements remaining in the list.
- Since:
- Revision 696
-
next
String next()Returns next String representation of an event on the timeline.- Returns:
- next String representation of an event on the timeline.
- Since:
- Revision 696
-
getMainTimeline
Returns theList<String>representation of the main Timeline in the graph.- Returns:
- the
List<String>representation of the main Timeline in the graph. - Since:
- Revision 696
-
getSubordinationTimelines
Returns an ArrayList containing the Timelines belonging to the subordinating subgraphs.- Returns:
- an ArrayList containing the Timelines belonging to the subordinating subgraphs.
- Since:
- Revision 696
-
getTotalTimePoints
int getTotalTimePoints()Returns number of timepoints.- Returns:
- the number of timepoints.
- Since:
- Revision 696
-
getAttachmentPoints
Returns a List containing the breaking points from the Partitioning.java class.- Returns:
- a List containing the breaking points from the Partitioning.java class.
- Since:
- Revision 696
-
getFirstPoint
String getFirstPoint()Returns the first timepoint in the Timeline.- Returns:
- the first timepoint in the Timeline.
- Since:
- Revision 696
-
getLastPoint
String getLastPoint()Returns the last timepoint in the Timeline.- Returns:
- the last timepoint in the Timeline.
- Since:
- Revision 696
-
getTimelineLength
int getTimelineLength()Returns the number of events in the timeline.- Returns:
- the number of events in the timeline.
- Since:
- Revision 696
-
getTotalSubordinationBranches
int getTotalSubordinationBranches()Returns the total number of subordination branches in the graph.- Returns:
- the total number of subordination branches in the graph.
- Since:
- Revision 696
-
toJSON
String toJSON()Returns the JSON (RFC 8259) representation of the Timeline.- Returns:
- the JSON (RFC 8259) representation of the Timeline.
- Since:
- Revision 696
-