Refactor ITmfLocation and fix dependencies
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / trace / ITmfLocation.java
index 09ef7988717662e3bceed3ba1e579c088326e9e2..813a31edecc1b3ff754033c5b996cd9b6b3ede05 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2009, 2010 Ericsson
+ * 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
@@ -8,6 +8,7 @@
  * 
  * Contributors:
  *   Francois Chouinard - Initial API and implementation
+ *   Francois Chouinard - Updated as per TMF Trace Model 1.0
  *******************************************************************************/
 
 package org.eclipse.linuxtools.tmf.core.trace;
@@ -15,14 +16,30 @@ package org.eclipse.linuxtools.tmf.core.trace;
 /**
  * <b><u>ITmfLocation</u></b>
  * <p>
- * This is a place-holder for the location objects.
+ * An ITmfLocation is the equivalent of a random-access file position, holding
+ * enough information to allow the positioning of the trace 'pointer' to read an
+ * arbitrary event.
+ * <p>
+ * This location is trace-specific but must be comparable.
  */
 public interface ITmfLocation<L extends Comparable<?>> extends Cloneable {
 
-       public void setLocation(L location);
+    // ------------------------------------------------------------------------
+    // Getters
+    // ------------------------------------------------------------------------
+
+    /**
+     * @return the location
+     */
+    public L getLocation();
 
-       public L getLocation();
+    // ------------------------------------------------------------------------
+    // Cloneable
+    // ------------------------------------------------------------------------
 
-       public ITmfLocation<L> clone();
+    /**
+     * @return a clone of the location
+     */
+    public ITmfLocation<L> clone();
 
 }
This page took 0.024419 seconds and 5 git commands to generate.