org.epics.pvmanager
Class PVManager

java.lang.Object
  extended by org.epics.pvmanager.PVManager

public class PVManager
extends java.lang.Object

Manages the PV creation and scanning.

Author:
carcassi

Nested Class Summary
static class PVManager.PVManagerExpression<T>
          An expression used to set the final parameters on how the pv expression should be monitored.
 
Constructor Summary
PVManager()
           
 
Method Summary
static
<T> PVManager.PVManagerExpression<T>
read(DesiredRateExpression<T> pvExpression)
          Reads the given expression.
static
<T> PVManager.PVManagerExpression<T>
read(SourceRateExpression<T> pvExpression)
          Reads the given expression.
static void setDefaultDataSource(DataSource dataSource)
          Changes the default source for data.
static void setDefaultThread(ThreadSwitch threadSwitch)
          Changes the default thread on which notifications are going to be posted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PVManager

public PVManager()
Method Detail

setDefaultThread

public static void setDefaultThread(ThreadSwitch threadSwitch)
Changes the default thread on which notifications are going to be posted.

Parameters:
threadSwitch - the new target thread

setDefaultDataSource

public static void setDefaultDataSource(DataSource dataSource)
Changes the default source for data.

Parameters:
dataSource - the data source

read

public static <T> PVManager.PVManagerExpression<T> read(SourceRateExpression<T> pvExpression)
Reads the given expression. Will return the average of the values collected at the scan rate.

Type Parameters:
T - type of the pv value
Parameters:
pvExpression - the expression to read
Returns:
a pv manager expression

read

public static <T> PVManager.PVManagerExpression<T> read(DesiredRateExpression<T> pvExpression)
Reads the given expression.

Type Parameters:
T - type of the pv value
Parameters:
pvExpression - the expression to read
Returns:
a pv manager expression


Copyright © 2011. All Rights Reserved.