tmf: Bump plugins version to 2.0 for Kepler branch
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / stubs / org / eclipse / linuxtools / tmf / tests / stubs / request / TmfEventRequestStub.java
CommitLineData
d18dd09b
ASL
1/*******************************************************************************
2 * Copyright (c) 2009, 2010 Ericsson
0283f7ff 3 *
d18dd09b
ASL
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
0283f7ff 8 *
d18dd09b
ASL
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
4918b8f2 13package org.eclipse.linuxtools.tmf.tests.stubs.request;
d18dd09b 14
6c13869b
FC
15import org.eclipse.linuxtools.tmf.core.event.TmfEvent;
16import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
17import org.eclipse.linuxtools.tmf.core.request.TmfEventRequest;
d18dd09b
ASL
18
19/**
20 * <b><u>TmfEventRequestStub</u></b>
21 * <p>
0283f7ff 22 * @param <T> The requested event type
d18dd09b
ASL
23 */
24public class TmfEventRequestStub<T extends TmfEvent> extends TmfEventRequest<T> {
25
26 /**
0283f7ff 27 * @param dataType the event type
d18dd09b 28 */
085d898f
FC
29 public TmfEventRequestStub(final Class<T> dataType) {
30 super(dataType);
d18dd09b
ASL
31 }
32
33 /**
0283f7ff
FC
34 * @param dataType the event type
35 * @param range the requested time range
d18dd09b 36 */
085d898f
FC
37 public TmfEventRequestStub(final Class<T> dataType, final TmfTimeRange range) {
38 super(dataType, range);
d18dd09b
ASL
39 }
40
41 /**
0283f7ff
FC
42 * @param dataType the event type
43 * @param range the requested time range
44 * @param nbRequested the number of events requested
d18dd09b 45 */
085d898f
FC
46 public TmfEventRequestStub(final Class<T> dataType, final TmfTimeRange range, final int nbRequested) {
47 super(dataType, range, nbRequested);
d18dd09b 48 }
085d898f 49
d18dd09b 50 /**
0283f7ff
FC
51 * @param dataType the event type
52 * @param range the requested time range
53 * @param nbRequested the number of events requested
54 * @param blockSize the event block size
d18dd09b 55 */
085d898f
FC
56 public TmfEventRequestStub(final Class<T> dataType, final TmfTimeRange range, final int nbRequested, final int blockSize) {
57 super(dataType, range, nbRequested, blockSize);
d18dd09b
ASL
58 }
59
923b8517 60 /**
0283f7ff
FC
61 * @param dataType the event type
62 * @param range the requested time range
63 * @param index the initial event index
64 * @param nbRequested the number of events requested
65 * @param blockSize the event block size
923b8517
FC
66 */
67 public TmfEventRequestStub(final Class<T> dataType, final TmfTimeRange range, final long index, final int nbRequested, final int blockSize) {
68 super(dataType, range, index, nbRequested, blockSize);
69 }
70
085d898f
FC
71 /* (non-Javadoc)
72 * @see org.eclipse.linuxtools.tmf.core.request.TmfDataRequest#handleData(org.eclipse.linuxtools.tmf.core.event.ITmfEvent)
73 */
74 @Override
75 public void handleData(final T data) {
76 super.handleData(data);
77 }
d18dd09b 78}
This page took 0.044087 seconds and 5 git commands to generate.