|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcsp.util.filter.FilteredChannelFactory
public class FilteredChannelFactory
This class is used for constructing Filtered Channels.
The objects returned by instances of this class will implement
the appropriate Filtered Channel interfaces even though the return
types are not declared as being Filtered Channels. This is so
that this class can implement the ChannelFactory
and
ChannelArrayFactory
interfaces. Instances of this class
can therefore be used in place of the standard channel factory classes.
A set of read and/or write filters can be specified so that all of the channels created by this factory will have the same buffering properties.
Constructor Summary | |
---|---|
FilteredChannelFactory()
All channels constructed with a Factory constructed with this constructor will default to having no pre-installed filters. |
|
FilteredChannelFactory(Filter[] readFilters,
Filter[] writeFilters)
All channels constructed with this Factory instance will have the specified Filter objects inserted into them. |
Method Summary | |
---|---|
Any2AnyChannel |
createAny2Any()
Creates a new Any2Any channel with the filtering options set for this factory. |
Any2AnyChannel |
createAny2Any(ChannelDataStore buffer)
Creates a new Any2Any channel with the filtering options set for this factory and the specified data buffer. |
Any2AnyChannel[] |
createAny2Any(ChannelDataStore buffer,
int n)
Constructs and returns an array of Any2AnyChannel
objects with a given buffering behaviour. |
Any2AnyChannel[] |
createAny2Any(int n)
Constructs and returns an array of Any2AnyChannel
objects. |
Any2OneChannel |
createAny2One()
Creates a new Any2One channel with the filtering options set for this factory. |
Any2OneChannel |
createAny2One(ChannelDataStore buffer)
Creates a new Any2One channel with the filtering options set for this factory and the specified data buffer. |
Any2OneChannel[] |
createAny2One(ChannelDataStore buffer,
int n)
Constructs and returns an array of Any2OneChannel
objects with a given buffering behaviour. |
Any2OneChannel[] |
createAny2One(int n)
Constructs and returns an array of Any2OneChannel
objects. |
One2AnyChannel |
createOne2Any()
Creates a new One2Any channel with the filtering options set for this factory. |
One2AnyChannel |
createOne2Any(ChannelDataStore buffer)
Creates a new One2Any channel with the filtering options set for this factory and the specified data buffer. |
One2AnyChannel[] |
createOne2Any(ChannelDataStore buffer,
int n)
Constructs and returns an array of One2AnyChannel
objects with a given buffering behaviour. |
One2AnyChannel[] |
createOne2Any(int n)
Constructs and returns an array of One2AnyChannel
objects. |
One2OneChannel |
createOne2One()
Creates a new One2One channel with the filtering options set for this factory. |
One2OneChannel |
createOne2One(ChannelDataStore buffer)
Creates a new One2One channel with the filtering options set for this factory and the specified data buffer. |
One2OneChannel[] |
createOne2One(ChannelDataStore buffer,
int n)
Constructs and returns an array of One2OneChannel
objects with a given buffering behaviour. |
One2OneChannel[] |
createOne2One(int n)
Constructs and returns an array of One2OneChannel
objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilteredChannelFactory()
public FilteredChannelFactory(Filter[] readFilters, Filter[] writeFilters)
All channels constructed with this Factory instance will have the
specified Filter
objects inserted into them. The same
instances of the filters will be inserted into each channel.
Either of the parameters may be null
if read/write filters are not required.
readFilters
- optional read filters to install in new channels.writeFilters
- optional write filters to install in new channels.Method Detail |
---|
public One2OneChannel createOne2One()
createOne2One
in interface ChannelFactory
public Any2OneChannel createAny2One()
createAny2One
in interface ChannelFactory
public One2AnyChannel createOne2Any()
createOne2Any
in interface ChannelFactory
public Any2AnyChannel createAny2Any()
createAny2Any
in interface ChannelFactory
public One2OneChannel[] createOne2One(int n)
One2OneChannel
objects.
createOne2One
in interface ChannelArrayFactory
n
- the size of the array of channels.
ChannelArrayFactory.createOne2One(int)
public Any2OneChannel[] createAny2One(int n)
Any2OneChannel
objects.
createAny2One
in interface ChannelArrayFactory
n
- the size of the array of channels.
ChannelArrayFactory.createAny2One(int)
public One2AnyChannel[] createOne2Any(int n)
One2AnyChannel
objects.
createOne2Any
in interface ChannelArrayFactory
n
- the size of the array of channels.
ChannelArrayFactory.createOne2Any(int)
public Any2AnyChannel[] createAny2Any(int n)
Any2AnyChannel
objects.
createAny2Any
in interface ChannelArrayFactory
n
- the size of the array of channels.
ChannelArrayFactory.createAny2Any(int)
public One2OneChannel createOne2One(ChannelDataStore buffer)
createOne2One
in interface BufferedChannelFactory
buffer
- the buffer implementation to use.
public Any2OneChannel createAny2One(ChannelDataStore buffer)
createAny2One
in interface BufferedChannelFactory
buffer
- the buffer implementation to use.
public One2AnyChannel createOne2Any(ChannelDataStore buffer)
createOne2Any
in interface BufferedChannelFactory
buffer
- the buffer implementation to use.
public Any2AnyChannel createAny2Any(ChannelDataStore buffer)
createAny2Any
in interface BufferedChannelFactory
buffer
- the buffer implementation to use.
public One2OneChannel[] createOne2One(ChannelDataStore buffer, int n)
One2OneChannel
objects with a given buffering behaviour.
createOne2One
in interface BufferedChannelArrayFactory
n
- the size of the array of channels.buffer
- the buffer implementation to use.
ChannelArrayFactory.createOne2One(int)
public Any2OneChannel[] createAny2One(ChannelDataStore buffer, int n)
Any2OneChannel
objects with a given buffering behaviour.
createAny2One
in interface BufferedChannelArrayFactory
n
- the size of the array of channels.buffer
- the buffer implementation to use.
ChannelArrayFactory.createAny2One(int)
public One2AnyChannel[] createOne2Any(ChannelDataStore buffer, int n)
One2AnyChannel
objects with a given buffering behaviour.
createOne2Any
in interface BufferedChannelArrayFactory
n
- the size of the array of channels.buffer
- the buffer implementation to use.
ChannelArrayFactory.createOne2Any(int)
public Any2AnyChannel[] createAny2Any(ChannelDataStore buffer, int n)
Any2AnyChannel
objects with a given buffering behaviour.
createAny2Any
in interface BufferedChannelArrayFactory
n
- the size of the array of channels.buffer
- the buffer implementation to use.
ChannelArrayFactory.createAny2Any(int)
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |