1 /*******************************************************************************
2 * Copyright (c) 2011, 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 * Francois Chouinard - Initial API and implementation
11 * Patrick Tasse - Updated for TMF 2.0
12 *******************************************************************************/
14 package org
.eclipse
.tracecompass
.internal
.gdbtrace
.core
.event
;
16 import org
.eclipse
.tracecompass
.internal
.gdbtrace
.core
.trace
.GdbTrace
;
17 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEventType
;
18 import org
.eclipse
.tracecompass
.tmf
.core
.event
.TmfEvent
;
19 import org
.eclipse
.tracecompass
.tmf
.core
.timestamp
.ITmfTimestamp
;
20 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfContext
;
23 * GDB Trace implementation of TmfEvent
24 * @author Francois Chouinard
26 public class GdbTraceEvent
extends TmfEvent
{
28 // ------------------------------------------------------------------------
30 // ------------------------------------------------------------------------
32 private final String fSource
;
33 private final String fReference
;
35 // ------------------------------------------------------------------------
37 // ------------------------------------------------------------------------
42 public GdbTraceEvent() {
43 super(null, ITmfContext
.UNKNOWN_RANK
, null, null, null);
64 public GdbTraceEvent(GdbTrace trace
, ITmfTimestamp timestamp
, String source
,
65 ITmfEventType type
, GdbTraceEventContent content
, String reference
) {
66 super(trace
, ITmfContext
.UNKNOWN_RANK
, timestamp
, type
, content
);
68 fReference
= reference
;
72 * Return the event's source
74 * @return The event source
76 public String
getSource() {
81 * Return the event's reference
83 * @return The event reference
85 public String
getReference() {
90 public GdbTraceEventContent
getContent() {
91 /* We only allow GdbTraceEventContent at the constructor */
92 return (GdbTraceEventContent
) super.getContent();