org.epics.pvmanager.expression
Class DesiredRateReadWriteExpressionImpl<R,W>

java.lang.Object
  extended by org.epics.pvmanager.expression.DesiredRateReadWriteExpressionListImpl<R,W>
      extended by org.epics.pvmanager.expression.DesiredRateReadWriteExpressionImpl<R,W>
Type Parameters:
R - type of the read payload
W - type of the write payload
All Implemented Interfaces:
DesiredRateExpression<R>, DesiredRateExpressionList<R>, DesiredRateReadWriteExpression<R,W>, DesiredRateReadWriteExpressionList<R,W>, WriteExpression<W>, WriteExpressionList<W>

public class DesiredRateReadWriteExpressionImpl<R,W>
extends DesiredRateReadWriteExpressionListImpl<R,W>
implements DesiredRateReadWriteExpression<R,W>

Implementation class for DesiredRateReadWriteExpression.

Author:
carcassi

Constructor Summary
DesiredRateReadWriteExpressionImpl(DesiredRateExpression<R> desiredRateExpression, WriteExpression<W> writeExpression)
          Creates an expression that can be both read at the desired rate and written.
 
Method Summary
 DesiredRateReadWriteExpressionImpl<R,W> as(java.lang.String name)
          Changes the name for this expression
 WriteBuffer createWriteBuffer()
          The buffer that will contain the data to write.
 DataRecipe getDataRecipe()
          The recipe for connect the channels for this expression.
 DesiredRateExpressionImpl<R> getDesiredRateExpressionImpl()
          The implementation of this expression.
 Function<R> getFunction()
          The function that calculates this expression.
 java.lang.String getName()
          Name of this expression.
 WriteExpressionImpl<W> getWriteExpressionImpl()
          The implementation of this expression.
 WriteFunction<W> getWriteFunction()
          The function that implements this expression.
 
Methods inherited from class org.epics.pvmanager.expression.DesiredRateReadWriteExpressionListImpl
and, and, and, getDesiredRateExpressions, getDesiredRateReadWriteExpressions, getWriteExpressions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.epics.pvmanager.expression.DesiredRateReadWriteExpressionList
and, getDesiredRateReadWriteExpressions
 
Methods inherited from interface org.epics.pvmanager.expression.DesiredRateExpressionList
and, getDesiredRateExpressions
 
Methods inherited from interface org.epics.pvmanager.expression.WriteExpressionList
and, getWriteExpressions
 

Constructor Detail

DesiredRateReadWriteExpressionImpl

public DesiredRateReadWriteExpressionImpl(DesiredRateExpression<R> desiredRateExpression,
                                          WriteExpression<W> writeExpression)
Creates an expression that can be both read at the desired rate and written.

Parameters:
desiredRateExpression - the read part of the expression
writeExpression - the write part of the expression
Method Detail

as

public final DesiredRateReadWriteExpressionImpl<R,W> as(java.lang.String name)
Description copied from interface: DesiredRateExpression
Changes the name for this expression

Specified by:
as in interface DesiredRateExpression<R>
Specified by:
as in interface DesiredRateReadWriteExpression<R,W>
Parameters:
name - new name
Returns:
this

getName

public final java.lang.String getName()
Description copied from interface: DesiredRateExpression
Name of this expression.

Specified by:
getName in interface DesiredRateExpression<R>
Specified by:
getName in interface WriteExpression<W>
Returns:
the expression name

getFunction

public final Function<R> getFunction()
Description copied from interface: DesiredRateExpression
The function that calculates this expression.

Specified by:
getFunction in interface DesiredRateExpression<R>
Returns:
the expression function

getDesiredRateExpressionImpl

public final DesiredRateExpressionImpl<R> getDesiredRateExpressionImpl()
Description copied from interface: DesiredRateExpression
The implementation of this expression.

Specified by:
getDesiredRateExpressionImpl in interface DesiredRateExpression<R>
Returns:
the implementation

getWriteExpressionImpl

public final WriteExpressionImpl<W> getWriteExpressionImpl()
Description copied from interface: WriteExpression
The implementation of this expression.

Specified by:
getWriteExpressionImpl in interface WriteExpression<W>
Returns:
the implementation

getDataRecipe

public final DataRecipe getDataRecipe()
Description copied from interface: DesiredRateExpression
The recipe for connect the channels for this expression.

Specified by:
getDataRecipe in interface DesiredRateExpression<R>
Returns:
a data recipe

getWriteFunction

public final WriteFunction<W> getWriteFunction()
Description copied from interface: WriteExpression
The function that implements this expression.

Specified by:
getWriteFunction in interface WriteExpression<W>
Returns:
the expression function

createWriteBuffer

public final WriteBuffer createWriteBuffer()
Description copied from interface: WriteExpression
The buffer that will contain the data to write.

Specified by:
createWriteBuffer in interface WriteExpression<W>
Returns:
the data buffer