Commit | Line | Data |
---|---|---|
6de2f761 PT |
1 | /******************************************************************************* |
2 | * Copyright (c) 2011, 2013 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 | * Patrick Tasse - Updated for TMF 2.0 | |
12 | *******************************************************************************/ | |
13 | ||
8343b1f5 | 14 | package org.eclipse.linuxtools.internal.gdbtrace.core.event; |
6de2f761 | 15 | |
8343b1f5 | 16 | import org.eclipse.linuxtools.internal.gdbtrace.core.trace.GdbTrace; |
2bdf0193 AM |
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; | |
6de2f761 PT |
20 | |
21 | /** | |
22 | * GDB Trace implementation of TmfEvent | |
23 | * @author Francois Chouinard | |
24 | */ | |
25 | public class GdbTraceEvent extends TmfEvent { | |
26 | ||
27 | // ------------------------------------------------------------------------ | |
28 | // Constructors | |
29 | // ------------------------------------------------------------------------ | |
30 | ||
31 | /** | |
32 | * Default constructor | |
33 | */ | |
34 | public GdbTraceEvent() { | |
35 | } | |
36 | ||
37 | /** | |
38 | * Full constructor | |
6db12af8 AM |
39 | * |
40 | * @param trace | |
41 | * the parent trace | |
42 | * @param timestamp | |
43 | * the event timestamp | |
44 | * @param source | |
45 | * the event source | |
46 | * @param type | |
47 | * the event type | |
48 | * @param content | |
49 | * the event content | |
50 | * @param reference | |
51 | * the event reference | |
6de2f761 PT |
52 | */ |
53 | public GdbTraceEvent(GdbTrace trace, ITmfTimestamp timestamp, String source, | |
6db12af8 | 54 | ITmfEventType type, GdbTraceEventContent content, String reference) { |
6de2f761 PT |
55 | super(trace, timestamp, source, type, content, reference); |
56 | } | |
57 | ||
6db12af8 AM |
58 | @Override |
59 | public GdbTraceEventContent getContent() { | |
60 | /* We only allow GdbTraceEventContent at the constructor */ | |
61 | return (GdbTraceEventContent) super.getContent(); | |
62 | } | |
63 | ||
6de2f761 | 64 | } |