|
||||||||||
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 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
|
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
|
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 <T> DesiredRateExpression<java.util.List<T>> newValuesOf(SourceRateExpression<T> expression)
T
- type readexpression
- source rate expression
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |