Commit | Line | Data |
---|---|---|
d18dd09b ASL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009, 2010 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 | *******************************************************************************/ | |
12 | ||
4918b8f2 | 13 | package org.eclipse.linuxtools.tmf.tests.stubs.request; |
d18dd09b | 14 | |
4c564a2d | 15 | import org.eclipse.linuxtools.tmf.core.event.TmfEvent; |
6c13869b | 16 | import org.eclipse.linuxtools.tmf.core.request.TmfDataRequest; |
d18dd09b ASL |
17 | |
18 | /** | |
19 | * <b><u>TmfDataRequestStub</u></b> | |
20 | * <p> | |
21 | * TODO: Implement me. Please. | |
22 | */ | |
4c564a2d | 23 | public class TmfDataRequestStub<T extends TmfEvent> extends TmfDataRequest<T> { |
d18dd09b ASL |
24 | |
25 | /** | |
26 | * Default constructor | |
0d9a6d76 FC |
27 | * |
28 | * @param dataType | |
d18dd09b | 29 | */ |
085d898f | 30 | public TmfDataRequestStub(final Class<T> dataType) { |
2fb2eb37 | 31 | super(dataType); |
d18dd09b ASL |
32 | } |
33 | ||
34 | /** | |
0d9a6d76 FC |
35 | * @param dataType |
36 | * @param index | |
d18dd09b | 37 | */ |
085d898f | 38 | public TmfDataRequestStub(final Class<T> dataType, final int index) { |
2fb2eb37 | 39 | super(dataType, index); |
d18dd09b ASL |
40 | } |
41 | ||
42 | /** | |
0d9a6d76 | 43 | * @param dataType |
d18dd09b ASL |
44 | * @param index |
45 | * @param nbRequested | |
46 | */ | |
085d898f FC |
47 | public TmfDataRequestStub(final Class<T> dataType, final int index, final int nbRequested) { |
48 | super(dataType, index, nbRequested); | |
d18dd09b ASL |
49 | } |
50 | ||
51 | /** | |
0d9a6d76 | 52 | * @param dataType |
d18dd09b ASL |
53 | * @param index |
54 | * @param nbRequested | |
55 | * @param blockSize | |
56 | */ | |
085d898f | 57 | public TmfDataRequestStub(final Class<T> dataType, final int index, final int nbRequested, final int blockSize) { |
d18dd09b ASL |
58 | super(dataType, index, nbRequested, blockSize); |
59 | } | |
60 | ||
085d898f FC |
61 | /* (non-Javadoc) |
62 | * @see org.eclipse.linuxtools.tmf.core.request.TmfDataRequest#handleData(org.eclipse.linuxtools.tmf.core.event.ITmfEvent) | |
63 | */ | |
64 | @Override | |
65 | public void handleData(final T data) { | |
66 | super.handleData(data); | |
67 | } | |
d18dd09b ASL |
68 | |
69 | } |