throws TimeRangeException, AttributeNotFoundException,
StateSystemDisposedException;
- /**
- * Simple check to make sure the requested timestamps are within the borders
- * of this state history. This is used internally, but could also be used by
- * the request sender (to check before sending in a lot of requests for
- * example).
- *
- * @param t
- * The queried timestamp
- * @return True if the timestamp is within range, false if not.
- */
- boolean checkValidTime(long t);
-
/**
* Debug method to print the contents of the history backend.
*
throw new AttributeNotFoundException();
}
- @Override
- public boolean checkValidTime(long t) {
+ private boolean checkValidTime(long t) {
if (t >= startTime && t <= latestTime) {
return true;
}
return null;
}
- /**
- * Null back-ends cannot run queries.
- *
- * @return Always returns false.
- */
- @Override
- public boolean checkValidTime(long t) {
- /* Cannot do past queries */
- return false;
- }
-
@Override
public void debugPrint(PrintWriter writer) {
writer.println("Null history backend"); //$NON-NLS-1$
return getRelevantInterval(t, attributeQuark);
}
- @Override
- public boolean checkValidTime(long t) {
+ private boolean checkValidTime(long t) {
return (t >= sht.getTreeStart() && t <= sht.getTreeEnd());
}
throw new UnsupportedOperationException();
}
- @Override
- public boolean checkValidTime(long t) {
+ private boolean checkValidTime(long t) {
return (t >= getStartTime() && t <= getEndTime());
}