|
||||||||||
| 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 ChannelExpression<java.lang.Object,java.lang.Object> |
channel(java.lang.String name)
A channel with the given name of any type. |
|
static
|
channel(java.lang.String name,
java.lang.Class<R> readType,
java.lang.Class<W> writeType)
A channel with the given name and type. |
|
static ChannelExpressionList<java.lang.Object,java.lang.Object> |
channels(java.util.Collection<java.lang.String> names)
A list of channels with the given names of any type. |
|
static
|
channels(java.util.Collection<java.lang.String> names,
java.lang.Class<R> readType,
java.lang.Class<W> writeType)
A list of channels with the given names and type. |
|
static ChannelExpressionList<java.lang.Object,java.lang.Object> |
channels(java.lang.String... names)
A list of channels with the given names of any type. |
|
static
|
constant(T value)
Creates a constant expression that always return that object. |
|
static
|
constant(T value,
java.lang.String name)
Creates a constant expression that always return that object, with the given name for the expression. |
|
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) the latest value computed from a SourceRateExpression. |
|
static
|
latestValueOf(SourceRateExpressionList<T> expressions)
Expression that returns (only) the latest value computed from a SourceRateExpression. |
|
static
|
latestValueOf(SourceRateReadWriteExpression<R,W> expression)
For reads, returns (only) the latest value computed from a SourceRateReadWriteExpression; for writes, same
as the given expression. |
|
static
|
latestValueOf(SourceRateReadWriteExpressionList<R,W> expressions)
For reads, returns (only) the latest value computed from a SourceRateReadWriteExpression; for writes, same
as the given expression. |
|
static
|
listOf(DesiredRateExpressionList<T> expressions)
Converts a list of expressions to an expression that returns the list of results. |
|
static
|
mapOf(DesiredRateExpressionList<T> expressions)
Converts a list of expressions to an expression that returns the map from the name to the results. |
|
static
|
mapOf(DesiredRateReadWriteExpressionList<R,W> expressions)
Converts a list of expressions to an expression that returns the map from the name to the results. |
|
static
|
mapOf(WriteExpressionList<T> expressions)
Converts a list of expressions to an expression that returns the map from the name to the results. |
|
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
|
newValuesOf(SourceRateExpressionList<T> expressions)
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<? extends A1> arg1Expression,
DesiredRateExpression<? extends A2> arg2Expression)
An expression that represents the result of a user provided function. |
|
static
|
resultOf(ExpressionLanguage.TwoArgFunction<R,A1,A2> function,
DesiredRateExpression<? extends A1> arg1Expression,
DesiredRateExpression<? extends A2> arg2Expression,
java.lang.String name)
An expression that represents the result of a user provided function. |
|
static
|
timedCacheOf(SourceRateExpression<T> expression,
TimeDuration maxIntervalBetweenSamples)
Returns all the values starting the latest value and older up to the time different given by the interval. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> DesiredRateExpression<T> constant(T value)
T - type of the valuevalue - the actual value
public static <T> DesiredRateExpression<T> constant(T value,
java.lang.String name)
T - type of the valuevalue - the actual valuename - the name of the expression
public static ChannelExpression<java.lang.Object,java.lang.Object> channel(java.lang.String name)
name - the channel name
public static <R,W> ChannelExpression<R,W> channel(java.lang.String name,
java.lang.Class<R> readType,
java.lang.Class<W> writeType)
R - read payloadW - write payloadname - the channel namereadType - type being readwriteType - type being written
public static ChannelExpressionList<java.lang.Object,java.lang.Object> channels(java.lang.String... names)
names - the channel names; can't be null
public static <R,W> ChannelExpressionList<R,W> channels(java.util.Collection<java.lang.String> names,
java.lang.Class<R> readType,
java.lang.Class<W> writeType)
R - read payloadW - write payloadreadType - type being readwriteType - type being writtennames - the channel names; can't be null
public static ChannelExpressionList<java.lang.Object,java.lang.Object> channels(java.util.Collection<java.lang.String> names)
names - the channel names; can't be null
public static <T> DesiredRateExpressionList<java.util.List<T>> newValuesOf(SourceRateExpressionList<T> expressions)
T - type being readexpressions - source rate expressions
public static <T> DesiredRateExpression<java.util.List<T>> newValuesOf(SourceRateExpression<T> expression)
T - type being readexpression - source rate expression
public static <T> DesiredRateExpression<java.util.List<T>> newValuesOf(SourceRateExpression<T> expression,
int maxValues)
T - type being 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)
T - type being readexpression - expression to readmaxIntervalBetweenSamples - maximum time difference between values
public static <T> DesiredRateExpression<T> latestValueOf(SourceRateExpression<T> expression)
SourceRateExpression.
T - type being readexpression - expression read at the source rate
public static <T> DesiredRateExpressionList<T> latestValueOf(SourceRateExpressionList<T> expressions)
SourceRateExpression.
T - type being readexpressions - expressions read at the source rate
public static <R,W> DesiredRateReadWriteExpression<R,W> latestValueOf(SourceRateReadWriteExpression<R,W> expression)
SourceRateReadWriteExpression; for writes, same
as the given expression.
R - read payloadW - write payloadexpression - expression read at the source rate
public static <R,W> DesiredRateReadWriteExpressionList<R,W> latestValueOf(SourceRateReadWriteExpressionList<R,W> expressions)
SourceRateReadWriteExpression; for writes, same
as the given expression.
R - read payloadW - write payloadexpressions - expressions 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<? extends A1> arg1Expression,
DesiredRateExpression<? extends 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 <R,A1,A2> DesiredRateExpression<R> resultOf(ExpressionLanguage.TwoArgFunction<R,A1,A2> function,
DesiredRateExpression<? extends A1> arg1Expression,
DesiredRateExpression<? extends A2> arg2Expression,
java.lang.String name)
R - result typeA1 - first argument typeA2 - second argument typefunction - the user provided functionarg1Expression - expression for the first argumentarg2Expression - expression for the second argumentname - expression name
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
public static <T> DesiredRateExpression<java.util.List<T>> listOf(DesiredRateExpressionList<T> expressions)
T - type being readexpressions - a list of expressions
public static <T> DesiredRateExpression<java.util.Map<java.lang.String,T>> mapOf(DesiredRateExpressionList<T> expressions)
T - type being readexpressions - a list of expressions
public static <T> WriteExpression<java.util.Map<java.lang.String,T>> mapOf(WriteExpressionList<T> expressions)
T - type being readexpressions - a list of expressions
public static <R,W> DesiredRateReadWriteExpression<java.util.Map<java.lang.String,R>,java.util.Map<java.lang.String,W>> mapOf(DesiredRateReadWriteExpressionList<R,W> expressions)
R - read payloadW - write payloadexpressions - a list of expressions
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||