final CtfLocation curLocation = (CtfLocation) location;
final CtfTmfLightweightContext context = new CtfTmfLightweightContext(this);
context.setLocation(curLocation);
- context.seek(curLocation.getLocationData());
- final CtfLocationData currentTime = ((CtfLocationData)context.getLocation().getLocationData());
+ context.seek(curLocation.getLocationInfo());
+ final CtfLocationData currentTime = ((CtfLocationData)context.getLocation().getLocationInfo());
final long startTime = getIterator(this, context).getStartTime();
final long endTime = getIterator(this, context).getEndTime();
return ((double) currentTime.getTimestamp() - startTime)
currentLocation = new CtfLocation(new CtfLocationData(0L, 0L));
context.setRank(0);
}
- if (currentLocation.getLocationData() == CtfLocation.INVALID_LOCATION) {
+ if (currentLocation.getLocationInfo() == 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().getLocationData())) {
+ if (CtfLocation.INVALID_LOCATION.equals(context.getLocation().getLocationInfo())) {
return null;
}
CtfTmfLightweightContext ctfContext = (CtfTmfLightweightContext) context;