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

java.lang.Object
  extended by org.epics.pvmanager.expression.SourceRateReadWriteExpressionListImpl<R,W>
      extended by org.epics.pvmanager.expression.SourceRateReadWriteExpressionImpl<R,W>
          extended by org.epics.pvmanager.expression.ChannelExpression<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>

public class ChannelExpression<R,W>
extends SourceRateReadWriteExpressionImpl<R,W>

Represents a channel, which can be both read or written.

Author:
carcassi

Constructor Summary
ChannelExpression(java.lang.Class<R> readClass, java.lang.Class<W> writeClass)
          Constructor for the null channel.
ChannelExpression(java.lang.String channelName, java.lang.Class<R> readClass, java.lang.Class<W> writeClass)
          An expression for a channel with the given name, which is expected to provide a read payload of readClass and accept a write payload of writeClass.
 
Method Summary
 ChannelExpression<R,W> after(java.lang.String... channelNames)
          For writes only, marks that this channel should be written only after the given channels.
 
Methods inherited from class org.epics.pvmanager.expression.SourceRateReadWriteExpressionImpl
as, createWriteBuffer, getFunction, getName, getSourceRateExpressionImpl, getWriteExpressionImpl, getWriteFunction
 
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

ChannelExpression

public ChannelExpression(java.lang.String channelName,
                         java.lang.Class<R> readClass,
                         java.lang.Class<W> writeClass)
An expression for a channel with the given name, which is expected to provide a read payload of readClass and accept a write payload of writeClass.

Parameters:
channelName - the name of the channel
readClass - type of the read payload
writeClass - type of the write payload

ChannelExpression

public ChannelExpression(java.lang.Class<R> readClass,
                         java.lang.Class<W> writeClass)
Constructor for the null channel.

Parameters:
readClass - type of the read payload
writeClass - type of the write payload
Method Detail

after

public ChannelExpression<R,W> after(java.lang.String... channelNames)
For writes only, marks that this channel should be written only after the given channels.

Parameters:
channelNames - preceding channel names
Returns:
this