public class ExpressionLanguage extends Object
Modifier and Type | Method and Description |
---|---|
static DesiredRateExpression<VDouble> |
averageOf(SourceRateExpression<VDouble> doublePv)
Aggregates the sample at the scan rate and takes the average.
|
static VTableColumn |
column(String name,
DesiredRateExpressionList<?> values)
A column for an aggregated vTable.
|
static DesiredRateExpression<VStatistics> |
statisticsOf(SourceRateExpression<VDouble> doublePv)
Aggregates the sample at the scan rate and calculates statistical information.
|
static DesiredRateExpressionList<VStatistics> |
statisticsOf(SourceRateExpressionList<VDouble> doubleExpressions)
Applies
statisticsOf(org.epics.pvmanager.expression.SourceRateExpression) to all
arguments. |
static DesiredRateExpression<VMultiDouble> |
synchronizedArrayOf(org.epics.util.time.TimeDuration tolerance,
SourceRateExpressionList<VDouble> expressions)
A synchronized array from the given expression.
|
static DesiredRateExpression<VMultiDouble> |
synchronizedArrayOf(org.epics.util.time.TimeDuration tolerance,
org.epics.util.time.TimeDuration cacheDepth,
SourceRateExpressionList<VDouble> expressions)
A synchronized array from the given expression.
|
static <T extends Time> |
timedCacheOf(SourceRateExpression<T> expression,
org.epics.util.time.TimeDuration maxIntervalBetweenSamples)
Returns all the values starting the latest value and older up to
the time difference given by the interval.
|
static ChannelExpression<VByte,Byte> |
vByte(String name)
A channel with the given name of type VByte.
|
static ChannelExpression<VByteArray,org.epics.util.array.ArrayByte> |
vByteArray(String name)
A channel with the given name of type VByteArray.
|
static DesiredRateExpression<VDoubleArray> |
vConst(double... values)
A constant representing a double array.
|
static DesiredRateExpression<VDouble> |
vConst(double value)
A constant representing a double.
|
static DesiredRateExpression<VIntArray> |
vConst(int... values)
A constant representing an int array.
|
static DesiredRateExpression<VInt> |
vConst(int value)
A constant representing an int.
|
static DesiredRateExpression<VDoubleArray> |
vConst(org.epics.util.array.ListDouble values)
A constant representing a double array.
|
static DesiredRateExpression<VIntArray> |
vConst(org.epics.util.array.ListInt values)
A constant representing an int array.
|
static DesiredRateExpression<VString> |
vConst(String value)
A constant representing a string.
|
static ChannelExpression<VDouble,Double> |
vDouble(String name)
A channel with the given name of type VDouble.
|
static ChannelExpression<VDoubleArray,org.epics.util.array.ArrayDouble> |
vDoubleArray(String name)
A channel with the given name of type VDoubleArray.
|
static DesiredRateExpressionList<VDouble> |
vDoubleConstants(List<Double> values)
A list of constant expressions of type VDouble.
|
static ChannelExpressionList<VDouble,Double> |
vDoubles(Collection<String> names)
A list of channels with the given names, all of type VDouble.
|
static ChannelExpression<VEnum,Integer> |
vEnum(String name)
A channel with the given name of type VEnum.
|
static ChannelExpression<VFloat,Float> |
vFloat(String name)
A channel with the given name of type VFloat.
|
static ChannelExpression<VFloatArray,org.epics.util.array.ArrayFloat> |
vFloatArray(String name)
A channel with the given name of type VFloatArray.
|
static ChannelExpression<VInt,Integer> |
vInt(String name)
A channel with the given name of type VInt.
|
static ChannelExpression<VIntArray,org.epics.util.array.ArrayInt> |
vIntArray(String name)
A channel with the given name of type VIntArray.
|
static DesiredRateExpressionList<VInt> |
vIntConstants(List<Integer> values)
A list of constant expressions of type VDouble.
|
static ChannelExpression<VNumber,Number> |
vNumber(String name)
A channel with the given name of type VNumber.
|
static ChannelExpression<VNumberArray,org.epics.util.array.ListNumber> |
vNumberArray(String name)
A channel with the given name of type VNumberArray.
|
static DesiredRateExpression<VNumberArray> |
vNumberArrayOf(DesiredRateExpressionList<? extends VNumber> expressions)
Transforms a list of numeric scalar into an array.
|
static ChannelExpressionList<VNumber,Number> |
vNumbers(Collection<String> names)
A list of channels with the given names, all of type VNumber.
|
static ChannelExpression<VShort,Short> |
vShort(String name)
A channel with the given name of type VShort.
|
static ChannelExpression<VShortArray,org.epics.util.array.ArrayShort> |
vShortArray(String name)
A channel with the given name of type VShortArray.
|
static ChannelExpression<VString,String> |
vString(String name)
A channel with the given name of type VString.
|
static ChannelExpression<VStringArray,List<String>> |
vStringArray(String name)
A channel with the given name of type VStringArray.
|
static DesiredRateExpressionList<VString> |
vStringConstants(List<String> values)
A list of constant expressions of type VString.
|
static DesiredRateExpression<VString> |
vStringOf(DesiredRateExpression<? extends VType> expression)
An expression that formats the given expression to a string using the
default format.
|
static DesiredRateExpression<VString> |
vStringOf(DesiredRateExpression<? extends VType> expression,
ValueFormat valueFormat)
An expression that formats the given expression to a string using the
given format.
|
static DesiredRateReadWriteExpression<VString,String> |
vStringOf(DesiredRateReadWriteExpression<? extends VType,? extends Object> expression)
An expression that formats the given expression to a string using the
default format.
|
static DesiredRateReadWriteExpression<VString,String> |
vStringOf(DesiredRateReadWriteExpression<? extends VType,? extends Object> expression,
ValueFormat valueFormat)
An expression that formats the given expression to a string using the
given format.
|
static DesiredRateExpression<VTable> |
vTable(VTableColumn... columns)
Creates a vTable by aggregating different values from different pvs.
|
static ChannelExpression<VType,Object> |
vType(String name)
A channel with the given name that returns any of the value types.
|
static ChannelExpressionList<VType,Object> |
vTypes(Collection<String> names)
A list of channels with the given names that return any of the value types.
|
public static ChannelExpression<VType,Object> vType(String name)
name
- the channel name; can't be nullpublic static ChannelExpressionList<VType,Object> vTypes(Collection<String> names)
names
- the channel names; can't be nullpublic static ChannelExpression<VNumber,Number> vNumber(String name)
name
- the channel name; can't be nullpublic static ChannelExpressionList<VNumber,Number> vNumbers(Collection<String> names)
names
- the channel names; can't be nullpublic static ChannelExpression<VDouble,Double> vDouble(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VFloat,Float> vFloat(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VInt,Integer> vInt(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VShort,Short> vShort(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VByte,Byte> vByte(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VNumberArray,org.epics.util.array.ListNumber> vNumberArray(String name)
name
- the channel name; can't be nullpublic static DesiredRateExpression<VNumberArray> vNumberArrayOf(DesiredRateExpressionList<? extends VNumber> expressions)
expressions
- a list of numeric expressionspublic static ChannelExpression<VFloatArray,org.epics.util.array.ArrayFloat> vFloatArray(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VDoubleArray,org.epics.util.array.ArrayDouble> vDoubleArray(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VByteArray,org.epics.util.array.ArrayByte> vByteArray(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VShortArray,org.epics.util.array.ArrayShort> vShortArray(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VIntArray,org.epics.util.array.ArrayInt> vIntArray(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VString,String> vString(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VStringArray,List<String>> vStringArray(String name)
name
- the channel name; can't be nullpublic static ChannelExpression<VEnum,Integer> vEnum(String name)
name
- the channel name; can't be nullpublic static ChannelExpressionList<VDouble,Double> vDoubles(Collection<String> names)
names
- the channel names; can't be nullpublic static DesiredRateExpression<VString> vConst(String value)
value
- the constant valuepublic static DesiredRateExpression<VDouble> vConst(double value)
value
- the constant valuepublic static DesiredRateExpression<VInt> vConst(int value)
value
- the constant valuepublic static DesiredRateExpression<VDoubleArray> vConst(double... values)
values
- the constant valuespublic static DesiredRateExpression<VDoubleArray> vConst(org.epics.util.array.ListDouble values)
values
- the constant valuespublic static DesiredRateExpression<VIntArray> vConst(int... values)
values
- the constant valuespublic static DesiredRateExpression<VIntArray> vConst(org.epics.util.array.ListInt values)
values
- the constant valuespublic static DesiredRateExpressionList<VDouble> vDoubleConstants(List<Double> values)
values
- the list of constantspublic static DesiredRateExpressionList<VInt> vIntConstants(List<Integer> values)
values
- the list of constantspublic static DesiredRateExpressionList<VString> vStringConstants(List<String> values)
values
- the list of constantspublic static DesiredRateExpression<VString> vStringOf(DesiredRateExpression<? extends VType> expression, ValueFormat valueFormat)
expression
- the expression to formatvalueFormat
- the format to use for the conversionpublic static DesiredRateExpression<VString> vStringOf(DesiredRateExpression<? extends VType> expression)
expression
- the expression to formatpublic static DesiredRateReadWriteExpression<VString,String> vStringOf(DesiredRateReadWriteExpression<? extends VType,? extends Object> expression)
expression
- the expression to formatpublic static DesiredRateReadWriteExpression<VString,String> vStringOf(DesiredRateReadWriteExpression<? extends VType,? extends Object> expression, ValueFormat valueFormat)
expression
- the expression to formatvalueFormat
- the format to use for the conversionpublic static DesiredRateExpression<VDouble> averageOf(SourceRateExpression<VDouble> doublePv)
doublePv
- the expression to take the average of; can't be nullpublic static DesiredRateExpression<VStatistics> statisticsOf(SourceRateExpression<VDouble> doublePv)
doublePv
- the expression to calculate the statistics information on; can't be nullpublic static DesiredRateExpressionList<VStatistics> statisticsOf(SourceRateExpressionList<VDouble> doubleExpressions)
statisticsOf(org.epics.pvmanager.expression.SourceRateExpression)
to all
arguments.doubleExpressions
- a list of double expressionspublic static DesiredRateExpression<VMultiDouble> synchronizedArrayOf(org.epics.util.time.TimeDuration tolerance, SourceRateExpressionList<VDouble> expressions)
tolerance
- maximum time difference between samplesexpressions
- the expressions from which to reconstruct the arraypublic static DesiredRateExpression<VMultiDouble> synchronizedArrayOf(org.epics.util.time.TimeDuration tolerance, org.epics.util.time.TimeDuration cacheDepth, SourceRateExpressionList<VDouble> expressions)
tolerance
- maximum time difference between samples in the
reconstructed arraycacheDepth
- maximum time difference between samples in the caches
used to reconstruct the arrayexpressions
- the expressions from which to reconstruct the arraypublic static <T extends Time> DesiredRateExpression<List<T>> timedCacheOf(SourceRateExpression<T> expression, org.epics.util.time.TimeDuration maxIntervalBetweenSamples)
T
- type being readexpression
- expression to readmaxIntervalBetweenSamples
- maximum time difference between valuespublic static VTableColumn column(String name, DesiredRateExpressionList<?> values)
name
- the name of the columnvalues
- the value of the columnpublic static DesiredRateExpression<VTable> vTable(VTableColumn... columns)
columns
- columns of the tableCopyright © 2010–2015. All rights reserved.