Class TmfEventsCache.CachedEvent

java.lang.Object
org.eclipse.tracecompass.tmf.ui.viewers.events.TmfEventsCache.CachedEvent
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, ITmfEvent
Enclosing class:
TmfEventsCache

public static class TmfEventsCache.CachedEvent extends Object implements ITmfEvent
The generic TMF Events table cached event.
Author:
Patrick Tasse
  • Constructor Details

    • CachedEvent

      public CachedEvent(ITmfEvent iTmfEvent, long rank)
      Constructor for new cached events.
      Parameters:
      iTmfEvent - The original trace event
      rank - The rank of this event in the trace
  • Method Details

    • getAdapter

      public <T> T getAdapter(Class<T> adapterType)
      Specified by:
      getAdapter in interface org.eclipse.core.runtime.IAdaptable
    • getTrace

      public ITmfTrace getTrace()
      Specified by:
      getTrace in interface ITmfEvent
      Returns:
      the trace that 'owns' the event
    • getRank

      public long getRank()
      Specified by:
      getRank in interface ITmfEvent
      Returns:
      the event rank within the parent trace
    • getName

      public String getName()
      Description copied from interface: ITmfEvent
      Gets the name of the event
      Specified by:
      getName in interface ITmfEvent
      Returns:
      the name of the event, same as getType().getName()
      Since:
      1.0
    • getTimestamp

      public ITmfTimestamp getTimestamp()
      Specified by:
      getTimestamp in interface ITmfEvent
      Returns:
      the event timestamp
    • getType

      public ITmfEventType getType()
      Specified by:
      getType in interface ITmfEvent
      Returns:
      the event type
    • getContent

      public ITmfEventField getContent()
      Specified by:
      getContent in interface ITmfEvent
      Returns:
      the event content