30474886ea0edffe07579301818209b8f8ac4057
[deliverable/tracecompass.git] / org.eclipse.tracecompass.gdbtrace.core / src / org / eclipse / tracecompass / internal / gdbtrace / core / event / GdbTraceEvent.java
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
14 package org.eclipse.tracecompass.internal.gdbtrace.core.event;
15
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
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
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
52 */
53 public GdbTraceEvent(GdbTrace trace, ITmfTimestamp timestamp, String source,
54 ITmfEventType type, GdbTraceEventContent content, String reference) {
55 super(trace, timestamp, source, type, content, reference);
56 }
57
58 @Override
59 public GdbTraceEventContent getContent() {
60 /* We only allow GdbTraceEventContent at the constructor */
61 return (GdbTraceEventContent) super.getContent();
62 }
63
64 }
This page took 0.03237 seconds and 4 git commands to generate.