Class EventTimeline
- java.lang.Object
-
- com.inductiveautomation.sfc.recorder.EventTimeline
-
- All Implemented Interfaces:
java.io.Serializable
public class EventTimeline extends java.lang.Object implements java.io.Serializable
Note: Adding methods to deal with Events specifically, as timestamp collisions seem to be common -Mitch- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventTimeline()
EventTimeline(java.util.List<Event> events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getEnd()
Event
getEndEvent()
java.util.List<Event>
getEvents()
java.util.List<java.util.Date>
getEventTimes()
Returns a list of all the times that have events, for use in building a timeline.java.util.Date
getStart()
Event
getStartEvent()
boolean
hasMore()
Returns true if there are additional events beyond the current position.ChartStatus
nextChartStatus()
Returns the next chart status and moves the position forward.java.util.Date
peek()
Event
peekEvent()
Event
previousEvent()
void
resetPosition()
Resets internal tracking back to the start.void
seekTo(Event event)
void
seekTo(java.util.Date position)
-
-
-
Constructor Detail
-
EventTimeline
public EventTimeline()
-
EventTimeline
public EventTimeline(java.util.List<Event> events)
-
-
Method Detail
-
getStart
public java.util.Date getStart()
-
getEnd
public java.util.Date getEnd()
-
peek
public java.util.Date peek()
-
getEventTimes
public java.util.List<java.util.Date> getEventTimes()
Returns a list of all the times that have events, for use in building a timeline.
-
resetPosition
public void resetPosition()
Resets internal tracking back to the start.
-
hasMore
public boolean hasMore()
Returns true if there are additional events beyond the current position.
-
nextChartStatus
public ChartStatus nextChartStatus()
Returns the next chart status and moves the position forward.
-
seekTo
public void seekTo(java.util.Date position)
-
seekTo
public void seekTo(Event event)
-
getEvents
public java.util.List<Event> getEvents()
-
peekEvent
public Event peekEvent()
-
previousEvent
public Event previousEvent()
-
getStartEvent
public Event getStartEvent()
-
getEndEvent
public Event getEndEvent()
-
-