org.epics.pvmanager.data
Class ExpressionLanguage

java.lang.Object
  extended by org.epics.pvmanager.data.ExpressionLanguage

public class ExpressionLanguage
extends java.lang.Object

PVManager expression language support for EPICS types.

Author:
carcassi

Method Summary
static DesiredRateExpression<VDouble> averageOf(SourceRateExpression<VDouble> doublePv)
          Aggregates the sample at the scan rate and takes the average.
static java.util.List<DesiredRateExpression<VStatistics>> statisticsOf(java.util.List<SourceRateExpression<VDouble>> doubleExpressions)
          Applies statisticsOf(org.epics.pvmanager.SourceRateExpression) to all arguments.
static DesiredRateExpression<VStatistics> statisticsOf(SourceRateExpression<VDouble> doublePv)
          Aggregates the sample at the scan rate and calculates statistical information.
static DesiredRateExpression<VMultiDouble> synchronizedArrayOf(TimeDuration tolerance, java.util.List<SourceRateExpression<VDouble>> expressions)
          A synchronized array from the given expression.
static DesiredRateExpression<VMultiDouble> synchronizedArrayOf(TimeDuration tolerance, TimeDuration cacheDepth, java.util.List<SourceRateExpression<VDouble>> expressions)
          A synchronized array from the given expression.
static SourceRateExpression<VDouble> vDouble(java.lang.String name)
          A channel with the given name of type VDouble.
static java.util.List<SourceRateExpression<VDouble>> vDoubles(java.util.List<java.lang.String> names)
          A list of channels with the given names, all of type VDouble.
static SourceRateExpression<VEnum> vEnum(java.lang.String name)
          A channel with the given name of type VEnum.
static SourceRateExpression<VInt> vInt(java.lang.String name)
          A channel with the given name of type VInt.
static SourceRateExpression<VString> vString(java.lang.String name)
          A channel with the given name of type VString.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

vDouble

public static SourceRateExpression<VDouble> vDouble(java.lang.String name)
A channel with the given name of type VDouble.

Parameters:
name - the channel name; can't be null
Returns:
an expression representing the channel

vInt

public static SourceRateExpression<VInt> vInt(java.lang.String name)
A channel with the given name of type VInt.

Parameters:
name - the channel name; can't be null
Returns:
an expression representing the channel

vString

public static SourceRateExpression<VString> vString(java.lang.String name)
A channel with the given name of type VString.

Parameters:
name - the channel name; can't be null
Returns:
an expression representing the channel

vEnum

public static SourceRateExpression<VEnum> vEnum(java.lang.String name)
A channel with the given name of type VEnum.

Parameters:
name - the channel name; can't be null
Returns:
an expression representing the channel

vDoubles

public static java.util.List<SourceRateExpression<VDouble>> vDoubles(java.util.List<java.lang.String> names)
A list of channels with the given names, all of type VDouble.

Parameters:
names - the channel names; can't be null
Returns:
a list of expressions representing the channels

averageOf

public static DesiredRateExpression<VDouble> averageOf(SourceRateExpression<VDouble> doublePv)
Aggregates the sample at the scan rate and takes the average.

Parameters:
doublePv - the expression to take the average of; can't be null
Returns:
an expression representing the average of the expression

statisticsOf

public static DesiredRateExpression<VStatistics> statisticsOf(SourceRateExpression<VDouble> doublePv)
Aggregates the sample at the scan rate and calculates statistical information.

Parameters:
doublePv - the expression to calculate the statistics information on; can't be null
Returns:
an expression representing the statistical information of the expression

statisticsOf

public static java.util.List<DesiredRateExpression<VStatistics>> statisticsOf(java.util.List<SourceRateExpression<VDouble>> doubleExpressions)
Applies statisticsOf(org.epics.pvmanager.SourceRateExpression) to all arguments.

Parameters:
doubleExpressions - a list of double expressions
Returns:
a list of statistical expressions

synchronizedArrayOf

public static DesiredRateExpression<VMultiDouble> synchronizedArrayOf(TimeDuration tolerance,
                                                                      java.util.List<SourceRateExpression<VDouble>> expressions)
A synchronized array from the given expression.

Parameters:
tolerance - maximum time difference between samples
expressions - the expressions from which to reconstruct the array
Returns:
an expression for the array

synchronizedArrayOf

public static DesiredRateExpression<VMultiDouble> synchronizedArrayOf(TimeDuration tolerance,
                                                                      TimeDuration cacheDepth,
                                                                      java.util.List<SourceRateExpression<VDouble>> expressions)
A synchronized array from the given expression.

Parameters:
tolerance - maximum time difference between samples in the reconstructed array
cacheDepth - maximum time difference between samples in the caches used to reconstruct the array
expressions - the expressions from which to reconstruct the array
Returns:
an expression for the array


Copyright © 2010. All Rights Reserved.