|
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.lang.StandardChannelIntFactory
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 Summary | |
---|---|
StandardChannelIntFactory()
Constructs a new factory. |
Method Summary | |
---|---|
Any2AnyChannelInt |
createAny2Any()
Constructs and returns an Any2AnyChannelInt object. |
Any2AnyChannelInt |
createAny2Any(ChannelDataStoreInt buffer)
Constructs and returns a Any2AnyChannelInt object which
uses the specified ChannelDataStoreInt object as a buffer. |
Any2AnyChannelInt[] |
createAny2Any(ChannelDataStoreInt buffer,
int n)
Constructs and returns an array of Any2AnyChannelInt objects
which use the specified ChannelDataStoreInt object as a
buffer. |
Any2AnyChannelInt[] |
createAny2Any(int n)
Constructs and returns an array of Any2AnyChannelInt
objects. |
Any2OneChannelInt |
createAny2One()
Constructs and returns an Any2OneChannelInt object. |
Any2OneChannelInt |
createAny2One(ChannelDataStoreInt buffer)
Constructs and returns a Any2OneChannelInt object which
uses the specified ChannelDataStoreInt object as a buffer. |
Any2OneChannelInt[] |
createAny2One(ChannelDataStoreInt buffer,
int n)
Constructs and returns an array of Any2OneChannelInt objects
which use the specified ChannelDataStoreInt object as a
buffer. |
Any2OneChannelInt[] |
createAny2One(int n)
Constructs and returns an array of Any2OneChannelInt
objects. |
One2AnyChannelInt |
createOne2Any()
Constructs and returns a One2AnyChannelInt object. |
One2AnyChannelInt |
createOne2Any(ChannelDataStoreInt buffer)
Constructs and returns a One2AnyChannelInt object which
uses the specified ChannelDataStoreInt object as a buffer. |
One2AnyChannelInt[] |
createOne2Any(ChannelDataStoreInt buffer,
int n)
Constructs and returns an array of One2AnyChannelInt objects
which use the specified ChannelDataStoreInt object as a
buffer. |
One2AnyChannelInt[] |
createOne2Any(int n)
Constructs and returns an array of One2AnyChannelInt
objects. |
One2OneChannelInt |
createOne2One()
Constructs and returns a One2OneChannelInt object. |
One2OneChannelInt |
createOne2One(ChannelDataStoreInt buffer)
Constructs and returns a One2OneChannelInt object which
uses the specified ChannelDataStoreInt object as a buffer. |
One2OneChannelInt[] |
createOne2One(ChannelDataStoreInt buffer,
int n)
Constructs and returns an array of One2OneChannelInt objects
which use the specified ChannelDataStoreInt object as a
buffer. |
One2OneChannelInt[] |
createOne2One(int n)
Constructs and returns an array of One2OneChannelInt
objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardChannelIntFactory()
Method Detail |
---|
public One2OneChannelInt createOne2One()
One2OneChannelInt
object.
createOne2One
in interface ChannelIntFactory
ChannelIntFactory.createOne2One()
public Any2OneChannelInt createAny2One()
Any2OneChannelInt
object.
createAny2One
in interface ChannelIntFactory
ChannelIntFactory.createAny2One()
public One2AnyChannelInt createOne2Any()
One2AnyChannelInt
object.
createOne2Any
in interface ChannelIntFactory
ChannelIntFactory.createOne2Any()
public Any2AnyChannelInt createAny2Any()
Any2AnyChannelInt
object.
createAny2Any
in interface ChannelIntFactory
ChannelIntFactory.createAny2Any()
public One2OneChannelInt[] createOne2One(int n)
One2OneChannelInt
objects.
createOne2One
in interface ChannelIntArrayFactory
n
- the size of the array of channels.
ChannelIntArrayFactory.createOne2One(int)
public Any2OneChannelInt[] createAny2One(int n)
Any2OneChannelInt
objects.
createAny2One
in interface ChannelIntArrayFactory
n
- the size of the array of channels.
ChannelIntArrayFactory.createAny2One(int)
public One2AnyChannelInt[] createOne2Any(int n)
One2AnyChannelInt
objects.
createOne2Any
in interface ChannelIntArrayFactory
n
- the size of the array of channels.
ChannelIntArrayFactory.createOne2Any(int)
public Any2AnyChannelInt[] createAny2Any(int n)
Any2AnyChannelInt
objects.
createAny2Any
in interface ChannelIntArrayFactory
n
- the size of the array of channels.
ChannelIntArrayFactory.createAny2Any(int)
public One2OneChannelInt createOne2One(ChannelDataStoreInt buffer)
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.
createOne2One
in interface BufferedChannelIntFactory
buffer
- the ChannelDataStoreInt
to use.
BufferedChannelIntFactory.createOne2One(org.jcsp.util.ints.ChannelDataStoreInt)
,
ChannelDataStoreInt
public Any2OneChannelInt createAny2One(ChannelDataStoreInt buffer)
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.
createAny2One
in interface BufferedChannelIntFactory
buffer
- the ChannelDataStoreInt
to use.
BufferedChannelIntFactory.createAny2One(org.jcsp.util.ints.ChannelDataStoreInt)
,
ChannelDataStoreInt
public One2AnyChannelInt createOne2Any(ChannelDataStoreInt buffer)
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.
createOne2Any
in interface BufferedChannelIntFactory
buffer
- the ChannelDataStoreInt
to use.
BufferedChannelIntFactory.createOne2Any(org.jcsp.util.ints.ChannelDataStoreInt)
,
ChannelDataStoreInt
public Any2AnyChannelInt createAny2Any(ChannelDataStoreInt buffer)
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.
createAny2Any
in interface BufferedChannelIntFactory
buffer
- the ChannelDataStoreInt
to use.
BufferedChannelIntFactory.createAny2Any(org.jcsp.util.ints.ChannelDataStoreInt)
,
ChannelDataStoreInt
public One2OneChannelInt[] createOne2One(ChannelDataStoreInt buffer, int n)
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.
createOne2One
in interface BufferedChannelIntArrayFactory
buffer
- the ChannelDataStoreInt
to use.n
- the size of the array of channels.
BufferedChannelIntArrayFactory.createOne2One(org.jcsp.util.ints.ChannelDataStoreInt,int)
,
ChannelDataStoreInt
public Any2OneChannelInt[] createAny2One(ChannelDataStoreInt buffer, int n)
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.
createAny2One
in interface BufferedChannelIntArrayFactory
buffer
- the ChannelDataStoreInt
to use.n
- the size of the array of channels.
BufferedChannelIntArrayFactory.createAny2One(org.jcsp.util.ints.ChannelDataStoreInt,int)
,
ChannelDataStoreInt
public One2AnyChannelInt[] createOne2Any(ChannelDataStoreInt buffer, int n)
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.
createOne2Any
in interface BufferedChannelIntArrayFactory
buffer
- the ChannelDataStoreInt
to use.n
- the size of the array of channels.
BufferedChannelIntArrayFactory.createOne2Any(org.jcsp.util.ints.ChannelDataStoreInt,int)
,
ChannelDataStoreInt
public Any2AnyChannelInt[] createAny2Any(ChannelDataStoreInt buffer, int n)
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.
createAny2Any
in interface BufferedChannelIntArrayFactory
buffer
- the ChannelDataStoreInt
to use.n
- the size of the array of channels.
BufferedChannelIntArrayFactory.createAny2Any(org.jcsp.util.ints.ChannelDataStoreInt,int)
,
ChannelDataStoreInt
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |