Package org.jcsp.util.filter
Class FilteredAny2AnyChannelImpl
- java.lang.Object
-
- org.jcsp.util.filter.FilteredAny2AnyChannelImpl
-
- All Implemented Interfaces:
Any2AnyChannel,FilteredAny2AnyChannel
class FilteredAny2AnyChannelImpl extends java.lang.Object implements FilteredAny2AnyChannel
This wraps up an Any2AnyChannel object so that its input and output ends are separate objects. Both ends of the channel have filtering enabled.
-
-
Field Summary
Fields Modifier and Type Field Description private FilteredSharedChannelInputinThe input end of the channel.private FilteredSharedChannelOutputoutThe output end of the channel.
-
Constructor Summary
Constructors Constructor Description FilteredAny2AnyChannelImpl(Any2AnyChannel chan)Constructs a new filtered channel object based on 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 an interface for configuring read filters on the channel.SharedChannelOutputout()Returns the output end of the channel.WriteFilteredoutFilter()Returns an interface for configuring write filters on the channel.
-
-
-
Field Detail
-
in
private FilteredSharedChannelInput in
The input end of the channel.
-
out
private FilteredSharedChannelOutput out
The output end of the channel.
-
-
Constructor Detail
-
FilteredAny2AnyChannelImpl
FilteredAny2AnyChannelImpl(Any2AnyChannel chan)
Constructs a new filtered channel object based on an existing channel.
-
-
Method Detail
-
in
public SharedChannelInput in()
Description copied from interface:Any2AnyChannelReturns the input end of the channel.- Specified by:
inin interfaceAny2AnyChannel
-
out
public SharedChannelOutput out()
Description copied from interface:Any2AnyChannelReturns the output end of the channel.- Specified by:
outin interfaceAny2AnyChannel
-
inFilter
public ReadFiltered inFilter()
Description copied from interface:FilteredAny2AnyChannelReturns an interface for configuring read filters on the channel.- Specified by:
inFilterin interfaceFilteredAny2AnyChannel
-
outFilter
public WriteFiltered outFilter()
Description copied from interface:FilteredAny2AnyChannelReturns an interface for configuring write filters on the channel.- Specified by:
outFilterin interfaceFilteredAny2AnyChannel
-
-