|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.epics.pvmanager.ExpressionLanguage
public class ExpressionLanguage
Operators to constructs expression of PVs that the PVManager
will
be able to monitor.
Nested Class Summary | |
---|---|
static class |
ExpressionLanguage.Filter<T>
Filters a data stream, removing updates that match the given function. |
static interface |
ExpressionLanguage.OneArgFunction<R,A>
A user provided single argument function. |
static interface |
ExpressionLanguage.TwoArgFunction<R,A1,A2>
A user provided double argument function. |
Method Summary | ||
---|---|---|
static SourceRateExpression<java.lang.Object> |
channel(java.lang.String name)
A channel with the given name of any type. |
|
static
|
filterBy(ExpressionLanguage.Filter<?> filter,
DesiredRateExpression<java.util.List<T>> expression)
Filters a stream of updates with the given filter. |
|
static
|
latestValueOf(SourceRateExpression<T> expression)
Expression that returns (only) at the desired rate the latest value computed from a SourceRateExpression . |
|
static
|
newValuesOf(SourceRateExpression<T> expression)
Returns all the new values generated by the expression source rate. |
|
static
|
newValuesOf(SourceRateExpression<T> expression,
int maxValues)
Returns up to maxValues new values generated by the expression source rate. |
|
static
|
resultOf(ExpressionLanguage.OneArgFunction<R,A> function,
DesiredRateExpression<A> argExpression)
An expression that represents the result of a user provided function. |
|
static
|
resultOf(ExpressionLanguage.TwoArgFunction<R,A1,A2> function,
DesiredRateExpression<A1> arg1Expression,
DesiredRateExpression<A2> arg2Expression)
An expression that represents the result of a user provided function. |
|
static
|
timedCacheOf(SourceRateExpression<T> expression,
TimeDuration maxIntervalBetweenSamples)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SourceRateExpression<java.lang.Object> channel(java.lang.String name)
name
- the channel name; can't be null
public static <T> DesiredRateExpression<java.util.List<T>> newValuesOf(SourceRateExpression<T> expression)
T
- type readexpression
- source rate expression
public static <T> DesiredRateExpression<java.util.List<T>> newValuesOf(SourceRateExpression<T> expression, int maxValues)
T
- type readexpression
- source rate expressionmaxValues
- maximum number of values to send with each notification
public static <T> DesiredRateExpression<java.util.List<T>> timedCacheOf(SourceRateExpression<T> expression, TimeDuration maxIntervalBetweenSamples)
public static <T> DesiredRateExpression<T> latestValueOf(SourceRateExpression<T> expression)
SourceRateExpression
.
T
- result typeexpression
- expression read at the source rate
public static <R,A> DesiredRateExpression<R> resultOf(ExpressionLanguage.OneArgFunction<R,A> function, DesiredRateExpression<A> argExpression)
R
- result typeA
- argument typefunction
- the user provided functionargExpression
- expression for the function argument
public static <R,A1,A2> DesiredRateExpression<R> resultOf(ExpressionLanguage.TwoArgFunction<R,A1,A2> function, DesiredRateExpression<A1> arg1Expression, DesiredRateExpression<A2> arg2Expression)
R
- result typeA1
- first argument typeA2
- second argument typefunction
- the user provided functionarg1Expression
- expression for the first argumentarg2Expression
- expression for the second argument
public static <T> DesiredRateExpression<java.util.List<T>> filterBy(ExpressionLanguage.Filter<?> filter, DesiredRateExpression<java.util.List<T>> expression)
T
- the type of data streaming in and outfilter
- the filtering functionexpression
- the argument expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |