tmf: CtfTmfContext rename
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / trace / ITmfContext.java
index 2d7aed53660aa126178d8ab057bcc5dc29299eca..1c2cd13ba24aded0b3025a6ba2cdf97b9db7296c 100644 (file)
@@ -1,11 +1,11 @@
 /*******************************************************************************
  * Copyright (c) 2009, 2010, 2012 Ericsson
- * 
+ *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
  * accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *   Francois Chouinard - Initial API and implementation
  *   Francois Chouinard - Updated as per TMF Trace Model 1.0
 package org.eclipse.linuxtools.tmf.core.trace;
 
 /**
- * <b><u>ITmfContext</u></b>
- * <p>
  * The basic trace context structure in TMF. The purpose of the context is to
- * associate a trace location to an event of a specific rank (order).
+ * associate a trace location to an event at a specific rank (order).
  * <p>
  * The context should be sufficient to allow the trace to position itself so
- * that performing a trace read operation will yield the corresponding event.
+ * that performing a trace read operation will yield the corresponding 'nth'
+ * event.
+ *
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see ITmfLocation
  */
 public interface ITmfContext extends Cloneable {
 
@@ -28,29 +32,24 @@ public interface ITmfContext extends Cloneable {
     // Constants
     // ------------------------------------------------------------------------
 
-    /**
-     * The initial context event rank, before anything is read from the trace
-     */
-    public long INITIAL_RANK = -1L;
-
     /**
      * The unknown event rank
      */
-    public long UNKNOWN_RANK = -2L;
+    public long UNKNOWN_RANK = -1L;
 
     // ------------------------------------------------------------------------
     // Getters
     // ------------------------------------------------------------------------
 
     /**
-     * @return the rank of the event referred to by the context
+     * @return the rank of the event at the context location
      */
     public long getRank();
 
     /**
-     * @return the location of the event referred to by the context
+     * @return the location of the event at the context rank
      */
-    public ITmfLocation<? extends Comparable<?>> getLocation();
+    public ITmfLocation getLocation();
 
     /**
      * @return indicates if the context rank is valid (!= UNKNOWN_RANK)
@@ -64,7 +63,7 @@ public interface ITmfContext extends Cloneable {
     /**
      * @param location the new location
      */
-    public void setLocation(ITmfLocation<? extends Comparable<?>> location);
+    public void setLocation(ITmfLocation location);
 
     /**
      * @param rank the new rank
@@ -81,10 +80,6 @@ public interface ITmfContext extends Cloneable {
      */
     public void dispose();
 
-    // ------------------------------------------------------------------------
-    // Cloneable
-    // ------------------------------------------------------------------------
-
     /**
      * @return a clone of the context
      */
This page took 0.025635 seconds and 5 git commands to generate.