Commit | Line | Data |
---|---|---|
8c8bf09f 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 | ||
13 | package org.eclipse.linuxtools.tmf.trace; | |
14 | ||
15 | /** | |
16 | * <b><u>ITmfContext</u></b> | |
17 | * <p> | |
18 | * This is a place-holder for the context objects. | |
19 | */ | |
cbd4ad82 | 20 | public interface ITmfContext { |
8c8bf09f | 21 | |
9b635e61 | 22 | public long UNKNOWN_RANK = -2L; |
abfad0aa | 23 | public long INITIAL_RANK = -1L; |
ff4ed569 | 24 | |
452ad365 | 25 | public void setLocation(ITmfLocation<?> location); |
a79913eb FC |
26 | @SuppressWarnings("rawtypes") |
27 | public ITmfLocation<? extends Comparable> getLocation(); | |
8c8bf09f | 28 | |
452ad365 | 29 | public void setRank(long rank); |
8c8bf09f | 30 | public long getRank(); |
452ad365 | 31 | public void updateRank(int rank); |
8c8bf09f | 32 | |
550d787e | 33 | public boolean isValidRank(); |
8c8bf09f | 34 | } |