R - type of the read payloadpublic class DesiredRateExpressionImpl<R> extends DesiredRateExpressionListImpl<R> implements DesiredRateExpression<R>
DesiredRateExpression.| Constructor and Description |
|---|
DesiredRateExpressionImpl(DesiredRateExpressionList<?> childExpressions,
ReadFunction<R> function,
String defaultName)
Creates a new aggregated expression.
|
DesiredRateExpressionImpl(SourceRateExpression<?> expression,
Collector<?,R> collector,
String defaultName)
Creates a new expression at the desired rate.
|
| Modifier and Type | Method and Description |
|---|---|
DesiredRateExpressionImpl<R> |
as(String name)
Changes the name for this expression
|
void |
fillReadRecipe(PVDirector director,
ReadRecipeBuilder builder)
Prepares the recipe to connect the channels needed by this expression.
|
DesiredRateExpressionImpl<R> |
getDesiredRateExpressionImpl()
The implementation for this expression.
|
ReadFunction<R> |
getFunction()
The function that calculates new values for this expression.
|
String |
getName()
The default name for a PV of this expression.
|
and, getDesiredRateExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, getDesiredRateExpressionspublic DesiredRateExpressionImpl(SourceRateExpression<?> expression, Collector<?,R> collector, String defaultName)
expression - the original source rate expressioncollector - the collector for the original sourcedefaultName - the display name of the expressionpublic DesiredRateExpressionImpl(DesiredRateExpressionList<?> childExpressions, ReadFunction<R> function, String defaultName)
DesiredRateExpression that is a function of a number of
DesiredRateExpressions.childExpressions - expressions for the arguments of the functionfunction - the function that calculates the value of the new expressiondefaultName - the display name of the expressionpublic final DesiredRateExpressionImpl<R> as(String name)
DesiredRateExpressionas in interface DesiredRateExpression<R>name - new namepublic final String getName()
getName in interface DesiredRateExpression<R>public void fillReadRecipe(PVDirector director, ReadRecipeBuilder builder)
DesiredRateExpressionA dynamic expression, one for which the child expressions can change, can keep a reference to the director to connect/disconnect new child expressions.
fillReadRecipe in interface DesiredRateExpression<R>director - the director for the readerbuilder - the recipe to fillpublic final ReadFunction<R> getFunction()
getFunction in interface DesiredRateExpression<R>public final DesiredRateExpressionImpl<R> getDesiredRateExpressionImpl()
getDesiredRateExpressionImpl in interface DesiredRateExpression<R>Copyright © 2010–2015. All rights reserved.