public class StandardChannelIntFactory
This class acts as a Factory for creating channels. It can create non-buffered and buffered channels and also arrays of non-buffered and buffered channels.
The Channel objects created by this Factory are formed of
separate objects for the read and write ends. Therefore the
ChannelInput
object cannot be cast into the
ChannelOutput
object and vice-versa.
The current implementation uses an instance of the
RiskyChannelIntFactory
to construct the underlying
raw channels.
Constructor and description |
---|
StandardChannelIntFactory
() Constructs a new factory. |
Type | Name and description |
---|---|
Any2AnyChannelInt |
createAny2Any() Constructs and returns an Any2AnyChannelInt object. |
Any2AnyChannelInt[] |
createAny2Any(int n) Constructs and returns an array of Any2AnyChannelInt
objects. |
Any2AnyChannelInt |
createAny2Any(ChannelDataStoreInt buffer) |
Any2AnyChannelInt[] |
createAny2Any(ChannelDataStoreInt buffer, int n) |
Any2OneChannelInt |
createAny2One() Constructs and returns an Any2OneChannelInt object. |
Any2OneChannelInt[] |
createAny2One(int n) Constructs and returns an array of Any2OneChannelInt
objects. |
Any2OneChannelInt |
createAny2One(ChannelDataStoreInt buffer) |
Any2OneChannelInt[] |
createAny2One(ChannelDataStoreInt buffer, int n) |
One2AnyChannelInt |
createOne2Any() Constructs and returns a One2AnyChannelInt object. |
One2AnyChannelInt[] |
createOne2Any(int n) Constructs and returns an array of One2AnyChannelInt
objects. |
One2AnyChannelInt |
createOne2Any(ChannelDataStoreInt buffer) |
One2AnyChannelInt[] |
createOne2Any(ChannelDataStoreInt buffer, int n) |
One2OneChannelInt |
createOne2One() Constructs and returns a One2OneChannelInt object. |
One2OneChannelInt[] |
createOne2One(int n) Constructs and returns an array of One2OneChannelInt
objects. |
One2OneChannelInt |
createOne2One(ChannelDataStoreInt buffer) |
One2OneChannelInt[] |
createOne2One(ChannelDataStoreInt buffer, int n) |
Constructs and returns an Any2AnyChannelInt
object.
Constructs and returns an array of Any2AnyChannelInt
objects.
n the
- size of the array of channels.
Constructs and returns a Any2AnyChannelInt
object which
uses the specified ChannelDataStoreInt
object as a buffer.
The buffer supplied to this method is cloned before it is inserted into the channel.
buffer the
- ChannelDataStoreInt
to use.
Constructs and returns an array of Any2AnyChannelInt
objects
which use the specified ChannelDataStoreInt
object as a
buffer.
The buffer supplied to this method is cloned before it is inserted into the channel. This is why an array of buffers is not required.
buffer the
- ChannelDataStoreInt
to use.n
- the size of the array of channels. Constructs and returns an Any2OneChannelInt
object.
Constructs and returns an array of Any2OneChannelInt
objects.
n the
- size of the array of channels.
Constructs and returns a Any2OneChannelInt
object which
uses the specified ChannelDataStoreInt
object as a buffer.
The buffer supplied to this method is cloned before it is inserted into the channel.
buffer the
- ChannelDataStoreInt
to use.
Constructs and returns an array of Any2OneChannelInt
objects
which use the specified ChannelDataStoreInt
object as a
buffer.
The buffer supplied to this method is cloned before it is inserted into the channel. This is why an array of buffers is not required.
buffer the
- ChannelDataStoreInt
to use.n
- the size of the array of channels. Constructs and returns a One2AnyChannelInt
object.
Constructs and returns an array of One2AnyChannelInt
objects.
n the
- size of the array of channels.
Constructs and returns a One2AnyChannelInt
object which
uses the specified ChannelDataStoreInt
object as a buffer.
The buffer supplied to this method is cloned before it is inserted into the channel.
buffer the
- ChannelDataStoreInt
to use.
Constructs and returns an array of One2AnyChannelInt
objects
which use the specified ChannelDataStoreInt
object as a
buffer.
The buffer supplied to this method is cloned before it is inserted into the channel. This is why an array of buffers is not required.
buffer the
- ChannelDataStoreInt
to use.n
- the size of the array of channels. Constructs and returns a One2OneChannelInt
object.
Constructs and returns an array of One2OneChannelInt
objects.
n the
- size of the array of channels.
Constructs and returns a One2OneChannelInt
object which
uses the specified ChannelDataStoreInt
object as a buffer.
The buffer supplied to this method is cloned before it is inserted into the channel.
buffer the
- ChannelDataStoreInt
to use.
Constructs and returns an array of One2OneChannelInt
objects
which use the specified ChannelDataStoreInt
object as a
buffer.
The buffer supplied to this method is cloned before it is inserted into the channel. This is why an array of buffers is not required.
buffer the
- ChannelDataStoreInt
to use.n
- the size of the array of channels.JCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk