R
- type of the read payloadW
- type of the write payloadpublic class SourceRateReadWriteExpressionImpl<R,W> extends SourceRateReadWriteExpressionListImpl<R,W> implements SourceRateReadWriteExpression<R,W>
SourceRateReadWriteExpression
.Constructor and Description |
---|
SourceRateReadWriteExpressionImpl(SourceRateExpression<R> sourceRateExpression,
WriteExpression<W> writeExpression)
Creates an expression that can be both read and written.
|
Modifier and Type | Method and Description |
---|---|
SourceRateReadWriteExpressionImpl<R,W> |
as(String name)
Changes the name for this expression
|
void |
fillWriteRecipe(PVWriterDirector director,
WriteRecipeBuilder builder)
Prepares the recipe to connect the channels needed by this expression.
|
ReadFunction<R> |
getFunction()
The function that calculates this expression.
|
String |
getName()
Name of the expression.
|
SourceRateExpressionImpl<R> |
getSourceRateExpressionImpl()
The implementation of this expression.
|
WriteExpressionImpl<W> |
getWriteExpressionImpl()
The implementation of this expression.
|
WriteFunction<W> |
getWriteFunction()
The function that implements this expression.
|
and, and, and, getSourceRateExpressions, getSourceRateReadWriteExpressions, getWriteExpressions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, getSourceRateReadWriteExpressions
and, getSourceRateExpressions
and, getWriteExpressions
public SourceRateReadWriteExpressionImpl(SourceRateExpression<R> sourceRateExpression, WriteExpression<W> writeExpression)
sourceRateExpression
- the read part of the expressionwriteExpression
- the write part of the expressionpublic SourceRateReadWriteExpressionImpl<R,W> as(String name)
SourceRateExpression
as
in interface SourceRateExpression<R>
as
in interface SourceRateReadWriteExpression<R,W>
name
- new namepublic final String getName()
SourceRateExpression
getName
in interface SourceRateExpression<R>
getName
in interface WriteExpression<W>
public final ReadFunction<R> getFunction()
SourceRateExpression
getFunction
in interface SourceRateExpression<R>
public final SourceRateExpressionImpl<R> getSourceRateExpressionImpl()
SourceRateExpression
getSourceRateExpressionImpl
in interface SourceRateExpression<R>
public final WriteExpressionImpl<W> getWriteExpressionImpl()
WriteExpression
getWriteExpressionImpl
in interface WriteExpression<W>
public 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.