1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 Ericsson
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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.request
;
15 import org
.eclipse
.linuxtools
.tmf
.event
.TmfEvent
;
16 import org
.eclipse
.linuxtools
.tmf
.event
.TmfTimeRange
;
19 * <b><u>TmfEventRequest</u></b>
21 * Implement me. Please.
23 public abstract class TmfEventRequest
<T
extends TmfEvent
> extends TmfDataRequest
<T
> implements ITmfEventRequest
<T
> {
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
29 private final TmfTimeRange fRange
; // The requested events time range
31 // ------------------------------------------------------------------------
33 // ------------------------------------------------------------------------
38 public TmfEventRequest(Class
<T
> dataType
) {
39 this(dataType
, TmfTimeRange
.Eternity
, ALL_DATA
, DEFAULT_BLOCK_SIZE
);
45 public TmfEventRequest(Class
<T
> dataType
, TmfTimeRange range
) {
46 this(dataType
, range
, ALL_DATA
, DEFAULT_BLOCK_SIZE
);
53 public TmfEventRequest(Class
<T
> dataType
, TmfTimeRange range
, int nbRequested
) {
54 this(dataType
, range
, nbRequested
, DEFAULT_BLOCK_SIZE
);
60 * @param blockSize Size of the largest blocks expected
62 public TmfEventRequest(Class
<T
> dataType
, TmfTimeRange range
, int nbRequested
, int blockSize
) {
63 super(dataType
, 0, nbRequested
, blockSize
);
68 public boolean equals(Object other
) {
69 if (other
instanceof TmfEventRequest
<?
>) {
70 TmfEventRequest
<?
> request
= (TmfEventRequest
<?
>) other
;
71 return super.equals(other
) && request
.fRange
.equals(fRange
);
76 // ------------------------------------------------------------------------
78 // ------------------------------------------------------------------------
81 * @return the requested time range
83 public TmfTimeRange
getRange() {
This page took 0.036794 seconds and 6 git commands to generate.