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, getDesiredRateExpressions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, getDesiredRateExpressions
public 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
DesiredRateExpression
s.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)
DesiredRateExpression
as
in interface DesiredRateExpression<R>
name
- new namepublic final String getName()
getName
in interface DesiredRateExpression<R>
public void fillReadRecipe(PVDirector director, ReadRecipeBuilder builder)
DesiredRateExpression
A 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.