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
.statevalue
;
15 import org
.eclipse
.tracecompass
.statesystem
.core
.exceptions
.StateValueTypeException
;
18 * This is the interface for using state values and reading their contents.
20 * @author Alexandre Montplaisir
23 public interface ITmfStateValue
{
26 * The supported types of state values
30 /** Null value, for an interval not carrying any information */
32 /** 32-bit integer value */
34 /** 64-bit integer value */
36 /** IEEE 754 double precision number
39 /** Variable-length string value */
44 * Each implementation has to define which one (among the supported types)
45 * they implement. There could be more than one implementation of each type,
46 * depending on the needs of the different users.
48 * @return The ITmfStateValue.Type enum representing the type of this value
54 * Only "null values" should return true here
56 * @return True if this type of SV is considered "null", false if it
57 * contains a real value.
62 * Read the contained value as an 'int' primitive
64 * @return The integer contained in the state value
65 * @throws StateValueTypeException
66 * If the contained value cannot be read as an integer
71 * Read the contained value as a 'long' primitive
73 * @return The long contained in the state value
74 * @throws StateValueTypeException
75 * If the contained value cannot be read as a long
81 * Read the contained value as a 'double' primitive
83 * @return The double contained in the state value
84 * @throws StateValueTypeException
85 * If the contained value cannot be read as a double
91 * Read the contained value as a String
93 * @return The String contained in the state value
94 * @throws StateValueTypeException
95 * If the contained value cannot be read as a String
This page took 0.04376 seconds and 5 git commands to generate.