1 /*******************************************************************************
2 * Copyright (c) 2012, 2014 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Alexandre Montplaisir - Initial API
11 ******************************************************************************/
13 package org
.eclipse
.tracecompass
.statesystem
.core
.interval
;
15 import org
.eclipse
.jdt
.annotation
.NonNull
;
16 import org
.eclipse
.tracecompass
.statesystem
.core
.statevalue
.ITmfStateValue
;
19 * This is the basic interface for accessing state intervals. See
20 * StateInterval.java for a basic implementation.
22 * A StateInterval is meant to be immutable. All implementing (non-abstract)
23 * classes should ideally be marked as 'final'.
25 * @author Alexandre Montplaisir
27 public interface ITmfStateInterval
{
30 * Retrieve the start time of the interval
32 * @return the start time of the interval
37 * Retrieve the end time of the interval
39 * @return the end time of the interval
44 * Retrieve the quark of the attribute this state interval refers to
46 * @return the quark of the attribute this state interval refers to
51 * Retrieve the state value represented by this interval
53 * @return the state value represented by this interval
55 @NonNull ITmfStateValue
getStateValue();
58 * Test if this interval intersects another timestamp, inclusively.
61 * The target timestamp
62 * @return True if the interval and timestamp intersect, false if they don't
64 boolean intersects(long timestamp
);
This page took 0.03571 seconds and 6 git commands to generate.