Package org.jcsp.util.filter
Class FilteredOne2AnyChannelImpl
- java.lang.Object
-
- org.jcsp.util.filter.FilteredOne2AnyChannelImpl
-
- All Implemented Interfaces:
One2AnyChannel,FilteredOne2AnyChannel
class FilteredOne2AnyChannelImpl extends java.lang.Object implements FilteredOne2AnyChannel
Implements anOne2Anychannel that supports filtering at each end.- See Also:
One2AnyChannel,ReadFiltered,WriteFiltered
-
-
Field Summary
Fields Modifier and Type Field Description private FilteredSharedChannelInputinThe filtered input end of the channel.private FilteredChannelOutputoutThe filtered output end of the channel.
-
Constructor Summary
Constructors Constructor Description FilteredOne2AnyChannelImpl(One2AnyChannel chan)Constructs a new filtered channel from an existing channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedChannelInputin()Returns the input end of the channel.ReadFilteredinFilter()Returns the control interface to manipulate the read filters.ChannelOutputout()Returns the output end of the channel.WriteFilteredoutFilter()Returns the control interface to manipulate the write filters.
-
-
-
Field Detail
-
in
private FilteredSharedChannelInput in
The filtered input end of the channel.
-
out
private FilteredChannelOutput out
The filtered output end of the channel.
-
-
Constructor Detail
-
FilteredOne2AnyChannelImpl
public FilteredOne2AnyChannelImpl(One2AnyChannel chan)
Constructs a new filtered channel from an existing channel.- Parameters:
chan- the existing channel.
-
-
Method Detail
-
in
public SharedChannelInput in()
Description copied from interface:One2AnyChannelReturns the input end of the channel.- Specified by:
inin interfaceOne2AnyChannel
-
out
public ChannelOutput out()
Description copied from interface:One2AnyChannelReturns the output end of the channel.- Specified by:
outin interfaceOne2AnyChannel
-
inFilter
public ReadFiltered inFilter()
Description copied from interface:FilteredOne2AnyChannelReturns the control interface to manipulate the read filters.- Specified by:
inFilterin interfaceFilteredOne2AnyChannel
-
outFilter
public WriteFiltered outFilter()
Description copied from interface:FilteredOne2AnyChannelReturns the control interface to manipulate the write filters.- Specified by:
outFilterin interfaceFilteredOne2AnyChannel
-
-