Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-Vendor: %Bundle-Vendor
-Bundle-Version: 2.3.0.qualifier
+Bundle-Version: 3.0.0.qualifier
Bundle-Localization: plugin
Bundle-SymbolicName: org.eclipse.tracecompass.statesystem.core;singleton:=true
Bundle-Activator: org.eclipse.tracecompass.internal.statesystem.core.Activator
transState.processStateChange(t, value, attributeQuark);
}
- @Deprecated
- @Override
- public void incrementAttribute(long t, int attributeQuark)
- throws StateValueTypeException, TimeRangeException {
- ITmfStateValue stateValue = queryOngoingState(attributeQuark);
- int prevValue = 0;
- /* if the attribute was previously null, start counting at 0 */
- if (!stateValue.isNull()) {
- prevValue = stateValue.unboxInt();
- }
- modifyAttribute(t, TmfStateValue.newValueInt(prevValue + 1),
- attributeQuark);
- }
-
@Override
public void pushAttribute(long t, @NonNull ITmfStateValue value, int attributeQuark)
throws TimeRangeException, StateValueTypeException {
* the number of attributes.
* @throws TimeRangeException
* If the smallest time is before the state system start time.
- * @since 2.3
+ * @since 3.0
*/
Iterable<@NonNull ITmfStateInterval> query2D(@NonNull Collection<Integer> quarks,
@NonNull Collection<Long> times) throws StateSystemDisposedException, IndexOutOfBoundsException, TimeRangeException;
* the number of attributes.
* @throws TimeRangeException
* If the smallest time is before the state system start time.
- * @since 2.3
+ * @since 3.0
*/
Iterable<@NonNull ITmfStateInterval> query2D(@NonNull Collection<Integer> quarks,
long start, long end) throws StateSystemDisposedException, IndexOutOfBoundsException, TimeRangeException;
* @author Alexandre Montplaisir
* @noimplement Only the internal StateSystem class should implement this
* interface.
+ * @since 3.0
*/
public interface ITmfStateSystemBuilder extends ITmfStateSystem {
void modifyAttribute(long t, @NonNull ITmfStateValue value, int attributeQuark)
throws StateValueTypeException;
- /**
- * Increment attribute method. Reads the current value of a given integer
- * attribute (this value is right now in the Transient State), and increment
- * it by 1. Useful for statistics.
- *
- * @param t
- * Timestamp of the state change
- * @param attributeQuark
- * Attribute to increment. If it doesn't exist it will be added,
- * with a new value of 1.
- * @throws StateValueTypeException
- * If the attribute already exists but is not of type Integer
- * @throws TimeRangeException
- * If the given timestamp is invalid
- * @throws IndexOutOfBoundsException
- * If the attribute quark is out of range
- * @deprecated Use
- * {@link StateSystemBuilderUtils#incrementAttributeInt(ITmfStateSystemBuilder, long, int, int)}
- * instead
- */
- @Deprecated
- void incrementAttribute(long t, int attributeQuark)
- throws StateValueTypeException;
-
/**
* "Push" helper method. This uses the given integer attribute as a stack:
* The value of that attribute will represent the stack depth (always >= 1).
* resolution, or consecutive timestamps if resolution == 0.
* @throws IllegalArgumentException
* if end < start or resolution < 0.
- * @since 2.3
+ * @since 3.0
*/
public static List<Long> getTimes(long from, long to, long resolution) {
if (to < from || resolution < 0) {
* @return An un-ordered iterable over the queried intervals
* @throws TimeRangeException
* if the time bounds are outside the range of the HistoryTree
- * @since 2.3
+ * @since 3.0
*/
default Iterable<@NonNull ITmfStateInterval> query2D(IntegerRangeCondition quarkCondition, TimeRangeCondition timeCondition)
throws TimeRangeException {