Merge branch 'master' into TmfEventModel
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / event / ITmfDataItem.java
CommitLineData
5179fc01
FC
1/*******************************************************************************
2 * Copyright (c) 2012 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.tmf.core.event;
14
15import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
16
17/**
60ab19fe 18 * <b><u>ITmfDataItem</u></b>
5179fc01 19 * <p>
60ab19fe 20 * The basic event structure in the TMF. In its canonical form, a data item has:
5179fc01
FC
21 * <ul>
22 * <li> a parent trace
23 * <li> a rank (order within the trace)
24 * <li> a source (reporting component)
25 * <li> a type
26 * <li> a content
27 * </ul>
28 * For convenience, a free-form reference field is also provided. It could be
29 * used as e.g. a location marker (filename:lineno) to indicate where the event
30 * was generated.
31 */
60ab19fe 32public interface ITmfDataItem extends Cloneable {
5179fc01
FC
33
34 /**
35 * @return the trace that 'owns' the event
36 */
37 public ITmfTrace<?> getTrace();
38
39 /**
40 * @return the event rank within the parent trace
41 */
42 public long getRank();
43
44 /**
45 * @return the event source
46 */
47 public String getSource();
48
49 /**
50 * @return the event type
51 */
52 public ITmfEventType getType();
53
54 /**
55 * @return the event content
56 */
57 public ITmfEventContent getContent();
58
59 /**
60 * @return the event reference
61 */
62 public String getReference();
63
7636a88e 64 /**
60ab19fe 65 * @return a clone of the data item
7636a88e 66 */
60ab19fe 67 public ITmfDataItem clone();
7636a88e 68
5179fc01 69}
This page took 0.026978 seconds and 5 git commands to generate.