R
- type of the read payloadpublic class DesiredRateExpressionImpl<R> extends DesiredRateExpressionListImpl<R> implements DesiredRateExpression<R>
DesiredRateExpression
.Constructor and Description |
---|
DesiredRateExpressionImpl(DesiredRateExpressionList<?> childExpressions,
Function<R> function,
String defaultName)
Creates a new aggregated expression.
|
DesiredRateExpressionImpl(SourceRateExpression<?> expression,
Function<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
|
DataRecipe |
getDataRecipe()
The recipe for connect the channels for this expression.
|
DesiredRateExpressionImpl<R> |
getDesiredRateExpressionImpl()
The implementation for this expression.
|
Function<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, Function<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, Function<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 final DataRecipe getDataRecipe()
getDataRecipe
in interface DesiredRateExpression<R>
public final Function<R> getFunction()
getFunction
in interface DesiredRateExpression<R>
public final DesiredRateExpressionImpl<R> getDesiredRateExpressionImpl()
getDesiredRateExpressionImpl
in interface DesiredRateExpression<R>
Copyright © 2012. All Rights Reserved.