Commit | Line | Data |
---|---|---|
8c8bf09f | 1 | /******************************************************************************* |
fcccd900 | 2 | * Copyright (c) 2009, 2010, 2012 Ericsson |
0283f7ff | 3 | * |
8c8bf09f 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 | * |
8c8bf09f ASL |
9 | * Contributors: |
10 | * Francois Chouinard - Initial API and implementation | |
fcccd900 | 11 | * Francois Chouinard - Updated as per TMF Trace Model 1.0 |
8c8bf09f ASL |
12 | *******************************************************************************/ |
13 | ||
6c13869b | 14 | package org.eclipse.linuxtools.tmf.core.trace; |
8c8bf09f | 15 | |
f7703ed6 | 16 | |
8c8bf09f | 17 | /** |
2848c377 FC |
18 | * The generic trace location in TMF. |
19 | * <p> | |
fcccd900 FC |
20 | * An ITmfLocation is the equivalent of a random-access file position, holding |
21 | * enough information to allow the positioning of the trace 'pointer' to read an | |
22 | * arbitrary event. | |
23 | * <p> | |
2848c377 | 24 | * This location is trace-specific and must be comparable. |
0283f7ff FC |
25 | * |
26 | * @param <L> The trace location type | |
27 | * | |
f7703ed6 FC |
28 | * @version 1.0 |
29 | * @author Francois Chouinard | |
8c8bf09f | 30 | */ |
0316808c | 31 | public interface ITmfLocation<L extends Comparable<?>> { |
452ad365 | 32 | |
fcccd900 FC |
33 | // ------------------------------------------------------------------------ |
34 | // Getters | |
35 | // ------------------------------------------------------------------------ | |
36 | ||
37 | /** | |
38 | * @return the location | |
39 | */ | |
40 | public L getLocation(); | |
452ad365 | 41 | |
fcccd900 | 42 | // ------------------------------------------------------------------------ |
0316808c | 43 | // Operations |
fcccd900 | 44 | // ------------------------------------------------------------------------ |
452ad365 | 45 | |
fcccd900 FC |
46 | /** |
47 | * @return a clone of the location | |
48 | */ | |
49 | public ITmfLocation<L> clone(); | |
8c8bf09f ASL |
50 | |
51 | } |