1 /*******************************************************************************
2 * Copyright (c) 2014 Ericsson
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
10 * Matthew Khouzam - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.btf
.core
.event
;
15 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEventField
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEventType
;
17 import org
.eclipse
.tracecompass
.tmf
.core
.event
.TmfEvent
;
18 import org
.eclipse
.tracecompass
.tmf
.core
.timestamp
.ITmfTimestamp
;
19 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
22 * A Btf event, basically a wrapper for the TmfEvent with the additional field
25 * @author Matthew Khouzam
27 public class BtfEvent
extends TmfEvent
{
29 private final String fDescription
;
30 private final String fSource
;
31 private final String fReference
;
34 * Standard constructor.
47 * a description of the type
49 * the event content (payload)
53 public BtfEvent(final ITmfTrace trace
,
55 final ITmfTimestamp timestamp
,
57 final ITmfEventType type
,
58 final String description
,
59 final ITmfEventField content
,
60 final String reference
) {
61 super(trace
, rank
, timestamp
, type
, content
);
62 fDescription
= description
;
64 fReference
= reference
;
70 * @return the description
72 public String
getEventDescription() {
77 * Returns the source of this event.
79 * @return This event's source
81 public String
getSource() {
86 * Returns the reference of this event.
88 * @return This event's reference
90 public String
getReference() {
This page took 0.033103 seconds and 6 git commands to generate.