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 aOne2One
channel that supports filtering at each end.
-
-
Field Summary
Fields Modifier and Type Field Description private FilteredAltingChannelInput
in
The filtered input end of the channel.private FilteredChannelOutput
out
The 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 AltingChannelInput
in()
Returns the input channel end.ReadFiltered
inFilter()
Returns the control interface for configuring the read filters on the channel.ChannelOutput
out()
Returns the output channel end.WriteFiltered
outFilter()
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:One2OneChannel
Returns the input channel end.- Specified by:
in
in interfaceOne2OneChannel
-
out
public ChannelOutput out()
Description copied from interface:One2OneChannel
Returns the output channel end.- Specified by:
out
in interfaceOne2OneChannel
-
inFilter
public ReadFiltered inFilter()
Description copied from interface:FilteredOne2OneChannel
Returns the control interface for configuring the read filters on the channel.- Specified by:
inFilter
in interfaceFilteredOne2OneChannel
-
outFilter
public WriteFiltered outFilter()
Description copied from interface:FilteredOne2OneChannel
Returns the control interface for configuring the write filters on the channel.- Specified by:
outFilter
in interfaceFilteredOne2OneChannel
-
-