/*******************************************************************************
- * Copyright (c) 2009, 2010, 2012 Ericsson
- *
+ * Copyright (c) 2009, 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;
-
/**
* The generic trace location in TMF.
* <p>
* enough information to allow the positioning of the trace 'pointer' to read an
* arbitrary event.
* <p>
- * This location is trace-specific and must be comparable.
- *
- * @version 1.0
+ * This location is trace-specific, must be comparable and immutable.
+ *
+ * @version 2.0
* @author Francois Chouinard
*/
-public interface ITmfLocation<L extends Comparable<?>> {
+public interface ITmfLocation {
// ------------------------------------------------------------------------
// Getters
// ------------------------------------------------------------------------
/**
- * @return the location
- */
- public L getLocation();
-
- // ------------------------------------------------------------------------
- // Operations
- // ------------------------------------------------------------------------
-
- /**
- * @return a clone of the location
+ * Returns the concrete trace location information
+ *
+ * @return the location information
+ * @since 2.0
*/
- public ITmfLocation<L> clone();
+ Comparable<?> getLocationInfo();
}