* @version 1.0
* @author Matthew khouzam
*/
-public class CtfTmfTrace extends TmfTrace implements ITmfEventParser{
+public class CtfTmfTrace extends TmfTrace implements ITmfEventParser {
//-------------------------------------------
* @see org.eclipse.linuxtools.tmf.core.trace.ITmfTrace#getCurrentLocation()
*/
@Override
- public ITmfLocation<?> getCurrentLocation() {
+ public ITmfLocation getCurrentLocation() {
return null;
}
@Override
- public double getLocationRatio(ITmfLocation<?> location) {
+ public double getLocationRatio(ITmfLocation location) {
final CtfLocation curLocation = (CtfLocation) location;
final CtfTmfLightweightContext context = new CtfTmfLightweightContext(this);
context.setLocation(curLocation);
- context.seek(curLocation.getLocation());
- final CtfLocationData currentTime = ((CtfLocationData)context.getLocation().getLocation());
+ context.seek(curLocation.getLocationData());
+ final CtfLocationData currentTime = ((CtfLocationData)context.getLocation().getLocationData());
final long startTime = getIterator(this, context).getStartTime();
final long endTime = getIterator(this, context).getEndTime();
return ((double) currentTime.getTimestamp() - startTime)
* @return ITmfContext
*/
@Override
- public ITmfContext seekEvent(final ITmfLocation<?> location) {
+ public ITmfContext seekEvent(final ITmfLocation location) {
CtfLocation currentLocation = (CtfLocation) location;
CtfTmfLightweightContext context = new CtfTmfLightweightContext(this);
/*
currentLocation = new CtfLocation(new CtfLocationData(0L, 0L));
context.setRank(0);
}
- if (currentLocation.getLocation() == CtfLocation.INVALID_LOCATION) {
+ if (currentLocation.getLocationData() == CtfLocation.INVALID_LOCATION) {
((CtfTmfTimestamp) getEndTime()).setType(TimestampType.NANOS);
currentLocation.setLocation(getEndTime().getValue() + 1, 0L);
}
public synchronized CtfTmfEvent getNext(final ITmfContext context) {
CtfTmfEvent event = null;
if (context instanceof CtfTmfLightweightContext) {
- if (CtfLocation.INVALID_LOCATION.equals(context.getLocation().getLocation())) {
+ if (CtfLocation.INVALID_LOCATION.equals(context.getLocation().getLocationData())) {
return null;
}
CtfTmfLightweightContext ctfContext = (CtfTmfLightweightContext) context;