org.epics.pvmanager.data
Interface Scalar<T>

Type Parameters:
T - the type of the scalar
All Known Subinterfaces:
VDouble, VEnum, VInt, VString
All Known Implementing Classes:
IVString

public interface Scalar<T>

Basic type definition for all scalar types. getValue() never returns null, even if the channel never connected. One must always look at the alarm severity to be able to correctly interpret the value.

Coding to Scalart<T extends Object> allows to write a client that works with all scalars, regardless of their type. Coding to Scalart<T extends Number> allows to write a client that works with all numbers, regardless of their type.

Author:
carcassi

Method Summary
 T getValue()
          Returns the value.
 

Method Detail

getValue

T getValue()
Returns the value. Never null.

Returns:
the value


Copyright © 2010. All Rights Reserved.