Class EventTimeline

java.lang.Object
com.inductiveautomation.sfc.recorder.EventTimeline
All Implemented Interfaces:
Serializable

public class EventTimeline extends Object implements Serializable
Note: Adding methods to deal with Events specifically, as timestamp collisions seem to be common -Mitch
See Also:
  • Constructor Details

    • EventTimeline

      public EventTimeline()
    • EventTimeline

      public EventTimeline(List<Event> events)
  • Method Details

    • getStart

      public Date getStart()
    • getEnd

      public Date getEnd()
    • peek

      public Date peek()
    • getEventTimes

      public List<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(Date position)
    • seekTo

      public void seekTo(Event event)
    • getEvents

      public List<Event> getEvents()
    • peekEvent

      public Event peekEvent()
    • previousEvent

      public Event previousEvent()
    • getStartEvent

      public Event getStartEvent()
    • getEndEvent

      public Event getEndEvent()