/*******************************************************************************
- * Copyright (c) 2009, 2010, 2012 Ericsson
+ * Copyright (c) 2009, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* Contributors:
* Francois Chouinard - Initial API and implementation
* Francois Chouinard - Updated as per TMF Trace Model 1.0
+ * Patrick Tasse - Updated for removal of context clone
*******************************************************************************/
package org.eclipse.linuxtools.tmf.core.trace;
+import org.eclipse.linuxtools.tmf.core.trace.location.ITmfLocation;
+
/**
* The basic trace context structure in TMF. The purpose of the context is to
* associate a trace location to an event at a specific rank (order).
*
* @see ITmfLocation
*/
-public interface ITmfContext extends Cloneable {
+public interface ITmfContext {
// ------------------------------------------------------------------------
// Constants
/**
* @return the rank of the event at the context location
*/
- public long getRank();
+ long getRank();
/**
* @return the location of the event at the context rank
+ * @since 3.0
*/
- public ITmfLocation getLocation();
+ ITmfLocation getLocation();
/**
* @return indicates if the context rank is valid (!= UNKNOWN_RANK)
*/
- public boolean hasValidRank();
+ boolean hasValidRank();
// ------------------------------------------------------------------------
// Operations
/**
* @param location the new location
+ * @since 3.0
*/
- public void setLocation(ITmfLocation location);
+ void setLocation(ITmfLocation location);
/**
* @param rank the new rank
*/
- public void setRank(long rank);
+ void setRank(long rank);
/**
* Increment the context rank
*/
- public void increaseRank();
+ void increaseRank();
/**
* Cleanup hook
*/
- public void dispose();
-
- /**
- * @return a clone of the context
- */
- public ITmfContext clone();
+ void dispose();
}