R
- type of the read payloadW
- type of the write payloadpublic class DesiredRateReadWriteExpressionImpl<R,W> extends DesiredRateReadWriteExpressionListImpl<R,W> implements DesiredRateReadWriteExpression<R,W>
DesiredRateReadWriteExpression
.Constructor and Description |
---|
DesiredRateReadWriteExpressionImpl(DesiredRateExpression<R> desiredRateExpression,
WriteExpression<W> writeExpression)
Creates an expression that can be both read at the desired rate and written.
|
Modifier and Type | Method and Description |
---|---|
DesiredRateReadWriteExpressionImpl<R,W> |
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.
|
void |
fillWriteRecipe(PVWriterDirector director,
WriteRecipeBuilder builder)
Prepares the recipe to connect the channels needed by this expression.
|
DesiredRateExpressionImpl<R> |
getDesiredRateExpressionImpl()
The implementation of this expression.
|
ReadFunction<R> |
getFunction()
The function that calculates this expression.
|
String |
getName()
Name of this expression.
|
WriteExpressionImpl<W> |
getWriteExpressionImpl()
The implementation of this expression.
|
WriteFunction<W> |
getWriteFunction()
The function that implements this expression.
|
and, and, and, getDesiredRateExpressions, getDesiredRateReadWriteExpressions, getWriteExpressions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, getDesiredRateReadWriteExpressions
and, getDesiredRateExpressions
and, getWriteExpressions
public DesiredRateReadWriteExpressionImpl(DesiredRateExpression<R> desiredRateExpression, WriteExpression<W> writeExpression)
desiredRateExpression
- the read part of the expressionwriteExpression
- the write part of the expressionpublic final DesiredRateReadWriteExpressionImpl<R,W> as(String name)
DesiredRateExpression
as
in interface DesiredRateExpression<R>
as
in interface DesiredRateReadWriteExpression<R,W>
name
- new namepublic final String getName()
DesiredRateExpression
getName
in interface DesiredRateExpression<R>
getName
in interface WriteExpression<W>
public final ReadFunction<R> getFunction()
DesiredRateExpression
getFunction
in interface DesiredRateExpression<R>
public final DesiredRateExpressionImpl<R> getDesiredRateExpressionImpl()
DesiredRateExpression
getDesiredRateExpressionImpl
in interface DesiredRateExpression<R>
public final WriteExpressionImpl<W> getWriteExpressionImpl()
WriteExpression
getWriteExpressionImpl
in interface WriteExpression<W>
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 WriteFunction<W> getWriteFunction()
WriteExpression
getWriteFunction
in interface WriteExpression<W>
public void fillWriteRecipe(PVWriterDirector director, WriteRecipeBuilder builder)
WriteExpression
A dynamic expression, one for which the child expressions can change, can keep a reference to the director to connect/disconnect new child expressions.
fillWriteRecipe
in interface WriteExpression<W>
director
- the director for the readerbuilder
- the recipe to fillCopyright © 2010–2015. All rights reserved.