Package org.jcsp.util.filter
Class FilteredOne2OneChannelImpl
- java.lang.Object
-
- org.jcsp.util.filter.FilteredOne2OneChannelImpl
-
- All Implemented Interfaces:
One2OneChannel,FilteredOne2OneChannel
class FilteredOne2OneChannelImpl extends java.lang.Object implements FilteredOne2OneChannel
Implements aOne2Onechannel that supports filtering at each end.
-
-
Field Summary
Fields Modifier and Type Field Description private FilteredAltingChannelInputinThe filtered input end of the channel.private FilteredChannelOutputoutThe filtered output end of the channel.
-
Constructor Summary
Constructors Constructor Description FilteredOne2OneChannelImpl(One2OneChannel chan)Constructs a new filtered channel based on an existing channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AltingChannelInputin()Returns the input channel end.ReadFilteredinFilter()Returns the control interface for configuring the read filters on the channel.ChannelOutputout()Returns the output channel end.WriteFilteredoutFilter()Returns the control interface for configuring the write filters on the channel.
-
-
-
Field Detail
-
in
private FilteredAltingChannelInput in
The filtered input end of the channel.
-
out
private FilteredChannelOutput out
The filtered output end of the channel.
-
-
Constructor Detail
-
FilteredOne2OneChannelImpl
public FilteredOne2OneChannelImpl(One2OneChannel chan)
Constructs a new filtered channel based on an existing channel.- Parameters:
chan- the existing channel.
-
-
Method Detail
-
in
public AltingChannelInput in()
Description copied from interface:One2OneChannelReturns the input channel end.- Specified by:
inin interfaceOne2OneChannel
-
out
public ChannelOutput out()
Description copied from interface:One2OneChannelReturns the output channel end.- Specified by:
outin interfaceOne2OneChannel
-
inFilter
public ReadFiltered inFilter()
Description copied from interface:FilteredOne2OneChannelReturns the control interface for configuring the read filters on the channel.- Specified by:
inFilterin interfaceFilteredOne2OneChannel
-
outFilter
public WriteFiltered outFilter()
Description copied from interface:FilteredOne2OneChannelReturns the control interface for configuring the write filters on the channel.- Specified by:
outFilterin interfaceFilteredOne2OneChannel
-
-