package org.eclipse.linuxtools.tmf.experiment;
import org.eclipse.linuxtools.tmf.event.TmfTimestamp;
-import org.eclipse.linuxtools.tmf.trace.TmfContext;
+import org.eclipse.linuxtools.tmf.trace.TmfTraceContext;
/**
* <b><u>TmfExperimentCheckpoint</u></b>
// ------------------------------------------------------------------------
private final TmfTimestamp fTimestamp;
- private final TmfContext[] fContexts;
+ private final TmfTraceContext[] fContexts;
// ------------------------------------------------------------------------
// Constructors
* @param ts
* @param location
*/
- public TmfExperimentCheckpoint(TmfTimestamp ts, TmfContext[] contexts) {
+ public TmfExperimentCheckpoint(TmfTimestamp ts, TmfTraceContext[] contexts) {
fTimestamp = ts;
fContexts = contexts;
}
/**
* @return the checkpoint event stream location
*/
- public TmfContext[] getContexts() {
+ public TmfTraceContext[] getContexts() {
return fContexts;
}
- // ------------------------------------------------------------------------
- // Object
- // ------------------------------------------------------------------------
-
- @Override
- public int hashCode() {
- int result = 37;
- result = 17 * result + fTimestamp.hashCode();
- return result;
- }
-
- @Override
- public boolean equals(Object other) {
- if (!(other instanceof TmfExperimentCheckpoint)) {
- return false;
- }
- TmfExperimentCheckpoint o = (TmfExperimentCheckpoint) other;
- return fTimestamp.equals(o.fTimestamp);
- }
-
// ------------------------------------------------------------------------
// Comparable
// ------------------------------------------------------------------------