Package edu.fiu.jtlex.data
Class Timeline
java.lang.Object
edu.fiu.jtlex.data.Timeline
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, and an array list of partitioned graphs,
arranging them into a Timeline.
- Author:
- Emmanuel Garcia
-
Constructor Summary
Constructors -
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.toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
Timeline
TODO: Document Description- Parameters:
Timeline- produced by the Solve() method in the GraphTCSP.java class.singleSlinks-Set<ILink>produced by the partitionLinks() method in the IGraphPartitioner.java class.
-
-
Method Details
-
iterator
Returns an iterator object that is used in for-each loops. -
hasNext
public boolean hasNext()Checks if there are Timeline elements remaining in the list. -
next
Returns next String representation of an event on the timeline.- Specified by:
nextin interfaceIterator<String>- Returns:
- next String representation of an event on the timeline.
- Throws:
IndexOutOfBoundsException
-
getMainTimeline
Returns theList<String>representation of the main Timeline in the graph.- Returns:
- the
List<String>representation of the main Timeline in the graph.
-
getSubordinationTimelines
Returns an ArrayList containing the Timelines belonging to the subordinating subgraphs.- Returns:
- an ArrayList containing the Timelines belonging to the subordinating subgraphs.
-
getTotalTimePoints
public int getTotalTimePoints()Returns number of timepoints.- Returns:
- the number of timepoints.
-
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.
-
getFirstPoint
Returns the first timepoint in the Timeline.- Returns:
- the first timepoint in the Timeline.
-
getLastPoint
Returns the last timepoint in the Timeline.- Returns:
- the last timepoint in the Timeline.
-
getTimelineLength
public int getTimelineLength()Returns the number of events in the timeline.- Returns:
- the number of events in the timeline.
-
getTotalSubordinationBranches
public int getTotalSubordinationBranches()Returns the total number of subordination branches in the graph.- Returns:
- the total number of subordination branches in the graph.
-
toString
-
toJSON
Returns the JSON (RFC 8259) representation of the Timeline.- Returns:
- the JSON (RFC 8259) representation of the Timeline.
-