Commit | Line | Data |
---|---|---|
e73a4ba5 | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2013, 2014 École Polytechnique de Montréal |
e73a4ba5 GB |
3 | * |
4 | * All rights reserved. This program and the accompanying materials are made | |
5 | * 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 | * Geneviève Bastien - Initial implementation | |
11 | *******************************************************************************/ | |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.tests.stubs.event; |
e73a4ba5 | 14 | |
2bdf0193 AM |
15 | import org.eclipse.tracecompass.tmf.core.event.TmfEvent; |
16 | import org.eclipse.tracecompass.tmf.core.event.TmfEventField; | |
17 | import org.eclipse.tracecompass.tmf.core.timestamp.ITmfTimestamp; | |
0c7471fb | 18 | import org.eclipse.tracecompass.tmf.core.trace.ITmfContext; |
2bdf0193 | 19 | import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; |
e73a4ba5 GB |
20 | |
21 | /** | |
22 | * Event stub used by the synchronization tests | |
23 | * | |
24 | * @author Geneviève Bastien | |
25 | */ | |
26 | public class TmfSyncEventStub extends TmfEvent { | |
27 | ||
28 | private static final String stub = "stub"; //$NON-NLS-1$ | |
29 | ||
30 | /** | |
31 | * Constructor | |
32 | * | |
33 | * @param trace | |
34 | * The trace of this event | |
35 | * @param timestamp | |
36 | * The timestamp | |
37 | */ | |
38 | public TmfSyncEventStub(final ITmfTrace trace, final ITmfTimestamp timestamp) { | |
39 | super(trace, | |
0c7471fb | 40 | ITmfContext.UNKNOWN_RANK, |
e73a4ba5 | 41 | timestamp, |
e73a4ba5 | 42 | new TmfEventTypeStub(), |
e1de2fd4 | 43 | new TmfEventField(stub, stub, null)); |
e73a4ba5 GB |
44 | } |
45 | } |