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

java.lang.Object
  extended by org.epics.pvmanager.expression.SourceRateReadWriteExpressionListImpl<R,W>
      extended by org.epics.pvmanager.expression.SourceRateReadWriteExpressionImpl<R,W>
Type Parameters:
R - type of the read payload
W - type of the write payload
All Implemented Interfaces:
SourceRateExpression<R>, SourceRateExpressionList<R>, SourceRateReadWriteExpression<R,W>, SourceRateReadWriteExpressionList<R,W>, WriteExpression<W>, WriteExpressionList<W>
Direct Known Subclasses:
ChannelExpression

public class SourceRateReadWriteExpressionImpl<R,W>
extends SourceRateReadWriteExpressionListImpl<R,W>
implements SourceRateReadWriteExpression<R,W>

Implementation class for SourceRateReadWriteExpression.

Author:
carcassi

Constructor Summary
SourceRateReadWriteExpressionImpl(SourceRateExpression<R> sourceRateExpression, WriteExpression<W> writeExpression)
          Creates an expression that can be both read and written.
 
Method Summary
 SourceRateReadWriteExpressionImpl<R,W> as(java.lang.String name)
          Changes the name for this expression
 WriteBuffer createWriteBuffer()
          The buffer that will contain the data to write.
 Function<R> getFunction()
          The function that calculates this expression.
 java.lang.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.
 
Methods inherited from class org.epics.pvmanager.expression.SourceRateReadWriteExpressionListImpl
and, and, and, getSourceRateExpressions, getSourceRateReadWriteExpressions, 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.SourceRateReadWriteExpressionList
and, getSourceRateReadWriteExpressions
 
Methods inherited from interface org.epics.pvmanager.expression.SourceRateExpressionList
and, getSourceRateExpressions
 
Methods inherited from interface org.epics.pvmanager.expression.WriteExpressionList
and, getWriteExpressions
 

Constructor Detail

SourceRateReadWriteExpressionImpl

public SourceRateReadWriteExpressionImpl(SourceRateExpression<R> sourceRateExpression,
                                         WriteExpression<W> writeExpression)
Creates an expression that can be both read and written.

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

as

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

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

getName

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

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

getFunction

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

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

getSourceRateExpressionImpl

public final SourceRateExpressionImpl<R> getSourceRateExpressionImpl()
Description copied from interface: SourceRateExpression
The implementation of this expression.

Specified by:
getSourceRateExpressionImpl in interface SourceRateExpression<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

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