|
CSP for Java (JCSP) 1.1-rc2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcsp.lang.Channel
public class Channel
This class provides static factory methods for constructing various different types of channel objects. There are also methods for constructing arrays of identical channels.
Method Summary | |
---|---|
static Any2AnyChannel |
any2any()
|
static Any2AnyChannel |
any2any(ChannelDataStore buffer)
|
static Any2AnyChannel |
any2any(ChannelDataStore buffer,
int immunity)
|
static Any2AnyChannel |
any2any(int immunity)
|
static Any2AnyChannel[] |
any2anyArray(int size)
|
static Any2AnyChannel[] |
any2anyArray(int size,
ChannelDataStore data)
|
static Any2AnyChannel[] |
any2anyArray(int size,
ChannelDataStore data,
int immunity)
|
static Any2AnyChannel[] |
any2anyArray(int size,
int immunity)
|
static Any2AnyChannelInt |
any2anyInt()
|
static Any2AnyChannelInt |
any2anyInt(ChannelDataStoreInt buffer)
|
static Any2AnyChannelInt |
any2anyInt(ChannelDataStoreInt buffer,
int immunity)
|
static Any2AnyChannelInt |
any2anyInt(int immunity)
|
static Any2AnyChannelInt[] |
any2anyIntArray(int size)
|
static Any2AnyChannelInt[] |
any2anyIntArray(int size,
ChannelDataStoreInt data)
|
static Any2AnyChannelInt[] |
any2anyIntArray(int size,
ChannelDataStoreInt data,
int immunity)
|
static Any2AnyChannelInt[] |
any2anyIntArray(int size,
int immunity)
|
static Any2OneChannel |
any2one()
|
static Any2OneChannel |
any2one(ChannelDataStore buffer)
|
static Any2OneChannel |
any2one(ChannelDataStore buffer,
int immunity)
|
static Any2OneChannel |
any2one(int immunity)
|
static Any2OneChannel[] |
any2oneArray(int size)
|
static Any2OneChannel[] |
any2oneArray(int size,
ChannelDataStore data)
|
static Any2OneChannel[] |
any2oneArray(int size,
ChannelDataStore data,
int immunity)
|
static Any2OneChannel[] |
any2oneArray(int size,
int immunity)
|
static Any2OneChannelInt |
any2oneInt()
|
static Any2OneChannelInt |
any2oneInt(ChannelDataStoreInt buffer)
|
static Any2OneChannelInt |
any2oneInt(ChannelDataStoreInt buffer,
int immunity)
|
static Any2OneChannelInt |
any2oneInt(int immunity)
|
static Any2OneChannelInt[] |
any2oneIntArray(int size)
|
static Any2OneChannelInt[] |
any2oneIntArray(int size,
ChannelDataStoreInt data)
|
static Any2OneChannelInt[] |
any2oneIntArray(int size,
ChannelDataStoreInt data,
int immunity)
|
static Any2OneChannelInt[] |
any2oneIntArray(int size,
int immunity)
|
static Any2AnyChannel |
createAny2Any()
Deprecated. Use the any2any() function instead. |
static Any2AnyChannel |
createAny2Any(ChannelDataStore buffer)
Deprecated. Use the any2any() function instead. |
static Any2AnyChannel[] |
createAny2Any(ChannelDataStore buffer,
int n)
Deprecated. Use the any2anyArray() function instead. |
static Any2AnyChannel[] |
createAny2Any(int n)
Deprecated. Use the any2anyArray() function instead. |
static Any2OneChannel |
createAny2One()
Deprecated. Use the any2one() function instead. |
static Any2OneChannel |
createAny2One(ChannelDataStore buffer)
Deprecated. Use the any2one() function instead. |
static Any2OneChannel[] |
createAny2One(ChannelDataStore buffer,
int n)
Deprecated. Use the any2oneArray() function instead. |
static Any2OneChannel[] |
createAny2One(int n)
Deprecated. Use the any2oneArray() function instead. |
static One2AnyChannel |
createOne2Any()
Deprecated. Use the one2any() function instead. |
static One2AnyChannel |
createOne2Any(ChannelDataStore buffer)
Deprecated. Use the one2any() function instead. |
static One2AnyChannel[] |
createOne2Any(ChannelDataStore buffer,
int n)
Deprecated. Use the one2anyArray() function instead. |
static One2AnyChannel[] |
createOne2Any(int n)
Deprecated. Use the one2anyArray() function instead. |
static One2OneChannel |
createOne2One()
Deprecated. Use the one2one() function instead. |
static One2OneChannel |
createOne2One(ChannelDataStore buffer)
Deprecated. Use the one2one() function instead. |
static One2OneChannel[] |
createOne2One(ChannelDataStore buffer,
int n)
Deprecated. Use the one2oneArray() function instead. |
static One2OneChannel[] |
createOne2One(int n)
Deprecated. Use the one2oneArray() function instead. |
static SharedChannelInput[] |
getInputArray(Any2AnyChannel[] c)
Constructs and returns an array of input channel ends, each of which can be shared by multiple concurrent readers. |
static AltingChannelInput[] |
getInputArray(Any2OneChannel[] c)
Constructs and returns an array of input channel ends, each of which can be used as guards in an Alternative . |
static SharedChannelInput[] |
getInputArray(One2AnyChannel[] c)
Constructs and returns an array of input channel ends, each of which can be shared by multiple concurrent readers. |
static AltingChannelInput[] |
getInputArray(One2OneChannel[] c)
Constructs and returns an array of input channel ends, each of which can be used as guards in an Alternative . |
static SharedChannelOutput[] |
getOutputArray(Any2AnyChannel[] c)
Constructs and returns an array of output channel ends, each of which can be shared by multiple concurrent writers. |
static SharedChannelOutput[] |
getOutputArray(Any2OneChannel[] c)
Constructs and returns an array of output channel ends, each of which can be shared by multiple concurrent writers. |
static ChannelOutput[] |
getOutputArray(One2AnyChannel[] c)
Constructs and returns an array of output channel ends, each of which can only be used by a single writer. |
static ChannelOutput[] |
getOutputArray(One2OneChannel[] c)
Constructs and returns an array of output channel ends, each of which can only be used by a single writer. |
static One2AnyChannel |
one2any()
|
static One2AnyChannel |
one2any(ChannelDataStore buffer)
|
static One2AnyChannel |
one2any(ChannelDataStore buffer,
int immunity)
|
static One2AnyChannel |
one2any(int immunity)
|
static One2AnyChannel[] |
one2anyArray(int size)
|
static One2AnyChannel[] |
one2anyArray(int size,
ChannelDataStore data)
|
static One2AnyChannel[] |
one2anyArray(int size,
ChannelDataStore data,
int immunity)
|
static One2AnyChannel[] |
one2anyArray(int size,
int immunity)
|
static One2AnyChannelInt |
one2anyInt()
|
static One2AnyChannelInt |
one2anyInt(ChannelDataStoreInt buffer)
|
static One2AnyChannelInt |
one2anyInt(ChannelDataStoreInt buffer,
int immunity)
|
static One2AnyChannelInt |
one2anyInt(int immunity)
|
static One2AnyChannelInt[] |
one2anyIntArray(int size)
|
static One2AnyChannelInt[] |
one2anyIntArray(int size,
ChannelDataStoreInt data)
|
static One2AnyChannelInt[] |
one2anyIntArray(int size,
ChannelDataStoreInt data,
int immunity)
|
static One2AnyChannelInt[] |
one2anyIntArray(int size,
int immunity)
|
static One2OneChannel |
one2one()
|
static One2OneChannel |
one2one(ChannelDataStore buffer)
|
static One2OneChannel |
one2one(ChannelDataStore buffer,
int immunity)
|
static One2OneChannel |
one2one(int immunity)
|
static One2OneChannel[] |
one2oneArray(int size)
|
static One2OneChannel[] |
one2oneArray(int size,
ChannelDataStore data)
|
static One2OneChannel[] |
one2oneArray(int size,
ChannelDataStore data,
int immunity)
|
static One2OneChannel[] |
one2oneArray(int size,
int immunity)
|
static One2OneChannelInt |
one2oneInt()
|
static One2OneChannelInt |
one2oneInt(ChannelDataStoreInt buffer)
|
static One2OneChannelInt |
one2oneInt(ChannelDataStoreInt buffer,
int immunity)
|
static One2OneChannelInt |
one2oneInt(int immunity)
|
static One2OneChannelInt[] |
one2oneIntArray(int size)
|
static One2OneChannelInt[] |
one2oneIntArray(int size,
ChannelDataStoreInt data)
|
static One2OneChannelInt[] |
one2oneIntArray(int size,
ChannelDataStoreInt data,
int immunity)
|
static One2OneChannelInt[] |
one2oneIntArray(int size,
int immunity)
|
static One2OneChannelSymmetricInt |
one2oneSymmetricInt()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static One2OneChannel createOne2One()
One2OneChannel
object.
ChannelFactory.createOne2One()
public static Any2OneChannel createAny2One()
Any2OneChannel
object.
ChannelFactory.createAny2One()
public static One2AnyChannel createOne2Any()
One2AnyChannel
object.
ChannelFactory.createOne2Any()
public static Any2AnyChannel createAny2Any()
Any2AnyChannel
object.
ChannelFactory.createAny2Any()
public static One2OneChannel[] createOne2One(int n)
One2OneChannel
objects.
n
- the size of the array of channels.
ChannelArrayFactory.createOne2One(int)
public static Any2OneChannel[] createAny2One(int n)
Any2OneChannel
objects.
n
- the size of the array of channels.
ChannelArrayFactory.createAny2One(int)
public static One2AnyChannel[] createOne2Any(int n)
One2AnyChannel
objects.
n
- the size of the array of channels.
ChannelArrayFactory.createOne2Any(int)
public static Any2AnyChannel[] createAny2Any(int n)
Any2AnyChannel
objects.
n
- the size of the array of channels.
ChannelArrayFactory.createAny2Any(int)
public static One2OneChannel createOne2One(ChannelDataStore buffer)
Constructs and returns a One2OneChannel
object which
uses the specified ChannelDataStore
object as a buffer.
The buffer supplied to this method is cloned before it is inserted into the channel.
buffer
- the ChannelDataStore
to use.
BufferedChannelFactory.createOne2One(ChannelDataStore)
,
ChannelDataStore
public static Any2OneChannel createAny2One(ChannelDataStore buffer)
Constructs and returns a Any2OneChannel
object which
uses the specified ChannelDataStore
object as a buffer.
The buffer supplied to this method is cloned before it is inserted into the channel.
buffer
- the ChannelDataStore
to use.
BufferedChannelFactory.createAny2One(ChannelDataStore)
,
ChannelDataStore
public static One2AnyChannel createOne2Any(ChannelDataStore buffer)
Constructs and returns a One2AnyChannel
object which
uses the specified ChannelDataStore
object as a buffer.
The buffer supplied to this method is cloned before it is inserted into the channel.
buffer
- the ChannelDataStore
to use.
BufferedChannelFactory.createOne2Any(ChannelDataStore)
,
ChannelDataStore
public static Any2AnyChannel createAny2Any(ChannelDataStore buffer)
Constructs and returns a Any2AnyChannel
object which
uses the specified ChannelDataStore
object as a buffer.
The buffer supplied to this method is cloned before it is inserted into the channel.
buffer
- the ChannelDataStore
to use.
BufferedChannelFactory.createAny2Any(ChannelDataStore)
,
ChannelDataStore
public static One2OneChannel[] createOne2One(ChannelDataStore buffer, int n)
Constructs and returns an array of One2OneChannel
objects
which use the specified ChannelDataStore
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 ChannelDataStore
to use.n
- the size of the array of channels.
BufferedChannelArrayFactory.createOne2One(ChannelDataStore, int)
,
ChannelDataStore
public static Any2OneChannel[] createAny2One(ChannelDataStore buffer, int n)
Constructs and returns an array of Any2OneChannel
objects
which use the specified ChannelDataStore
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 ChannelDataStore
to use.n
- the size of the array of channels.
BufferedChannelArrayFactory.createAny2One(ChannelDataStore, int)
,
ChannelDataStore
public static One2AnyChannel[] createOne2Any(ChannelDataStore buffer, int n)
Constructs and returns an array of One2AnyChannel
objects
which use the specified ChannelDataStore
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 ChannelDataStore
to use.n
- the size of the array of channels.
BufferedChannelArrayFactory.createOne2Any(ChannelDataStore, int)
,
ChannelDataStore
public static Any2AnyChannel[] createAny2Any(ChannelDataStore buffer, int n)
Constructs and returns an array of Any2AnyChannel
objects
which use the specified ChannelDataStore
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 ChannelDataStore
to use.n
- the size of the array of channels.
BufferedChannelArrayFactory.createAny2Any(ChannelDataStore, int)
,
ChannelDataStore
public static SharedChannelInput[] getInputArray(Any2AnyChannel[] c)
Constructs and returns an array of input channel ends, each of which can be shared by multiple
concurrent readers. The returned array, r
, is constructed such that
r[i] = c[i].in ()
for 0 <= i < c.length
.
c
- the array of channel to obtain input ends from.
public static AltingChannelInput[] getInputArray(Any2OneChannel[] c)
Alternative
. The returned array, r
, is constructed such that
r[i] = c[i].in ()
for 0 <= i < c.length
.
c
- the array of channel to obtain input ends from.
public static SharedChannelInput[] getInputArray(One2AnyChannel[] c)
r
, is constructed such that
r[i] = c[i].in ()
for 0 <= i < c.length
.
c
- the array of channel to obtain input ends from.
public static AltingChannelInput[] getInputArray(One2OneChannel[] c)
Alternative
. The returned array, r
, is constructed such that
r[i] = c[i].in ()
for 0 <= i < c.length
.
c
- the array of channel to obtain input ends from.
public static SharedChannelOutput[] getOutputArray(Any2AnyChannel[] c)
r
, is constructed such that
r[i] = c[i].out ()
for 0 <= i < c.length
.
c
- the array of channel to obtain output ends from.
public static SharedChannelOutput[] getOutputArray(Any2OneChannel[] c)
r
, is constructed such that
r[i] = c[i].out ()
for 0 <= i < c.length
.
c
- the array of channel to obtain output ends from.
public static ChannelOutput[] getOutputArray(One2AnyChannel[] c)
r
, is constructed such that
r[i] = c[i].out ()
for 0 <= i < c.length
.
c
- the array of channel to obtain output ends from.
public static ChannelOutput[] getOutputArray(One2OneChannel[] c)
r
, is constructed such that
r[i] = c[i].out ()
for 0 <= i < c.length
.
c
- the array of channel to obtain output ends from.
public static One2OneChannel one2one()
public static One2AnyChannel one2any()
public static Any2OneChannel any2one()
public static Any2AnyChannel any2any()
public static One2OneChannelSymmetricInt one2oneSymmetricInt()
public static One2OneChannel one2one(ChannelDataStore buffer)
public static One2AnyChannel one2any(ChannelDataStore buffer)
public static Any2OneChannel any2one(ChannelDataStore buffer)
public static Any2AnyChannel any2any(ChannelDataStore buffer)
public static One2OneChannel one2one(int immunity)
public static One2AnyChannel one2any(int immunity)
public static Any2OneChannel any2one(int immunity)
public static Any2AnyChannel any2any(int immunity)
public static One2OneChannel one2one(ChannelDataStore buffer, int immunity)
public static One2AnyChannel one2any(ChannelDataStore buffer, int immunity)
public static Any2OneChannel any2one(ChannelDataStore buffer, int immunity)
public static Any2AnyChannel any2any(ChannelDataStore buffer, int immunity)
public static One2OneChannel[] one2oneArray(int size)
public static One2AnyChannel[] one2anyArray(int size)
public static Any2OneChannel[] any2oneArray(int size)
public static Any2AnyChannel[] any2anyArray(int size)
public static One2OneChannel[] one2oneArray(int size, int immunity)
public static One2AnyChannel[] one2anyArray(int size, int immunity)
public static Any2OneChannel[] any2oneArray(int size, int immunity)
public static Any2AnyChannel[] any2anyArray(int size, int immunity)
public static One2OneChannel[] one2oneArray(int size, ChannelDataStore data)
public static One2AnyChannel[] one2anyArray(int size, ChannelDataStore data)
public static Any2OneChannel[] any2oneArray(int size, ChannelDataStore data)
public static Any2AnyChannel[] any2anyArray(int size, ChannelDataStore data)
public static One2OneChannel[] one2oneArray(int size, ChannelDataStore data, int immunity)
public static One2AnyChannel[] one2anyArray(int size, ChannelDataStore data, int immunity)
public static Any2OneChannel[] any2oneArray(int size, ChannelDataStore data, int immunity)
public static Any2AnyChannel[] any2anyArray(int size, ChannelDataStore data, int immunity)
public static One2OneChannelInt one2oneInt()
public static One2AnyChannelInt one2anyInt()
public static Any2OneChannelInt any2oneInt()
public static Any2AnyChannelInt any2anyInt()
public static One2OneChannelInt one2oneInt(ChannelDataStoreInt buffer)
public static One2AnyChannelInt one2anyInt(ChannelDataStoreInt buffer)
public static Any2OneChannelInt any2oneInt(ChannelDataStoreInt buffer)
public static Any2AnyChannelInt any2anyInt(ChannelDataStoreInt buffer)
public static One2OneChannelInt one2oneInt(int immunity)
public static One2AnyChannelInt one2anyInt(int immunity)
public static Any2OneChannelInt any2oneInt(int immunity)
public static Any2AnyChannelInt any2anyInt(int immunity)
public static One2OneChannelInt one2oneInt(ChannelDataStoreInt buffer, int immunity)
public static One2AnyChannelInt one2anyInt(ChannelDataStoreInt buffer, int immunity)
public static Any2OneChannelInt any2oneInt(ChannelDataStoreInt buffer, int immunity)
public static Any2AnyChannelInt any2anyInt(ChannelDataStoreInt buffer, int immunity)
public static One2OneChannelInt[] one2oneIntArray(int size)
public static One2AnyChannelInt[] one2anyIntArray(int size)
public static Any2OneChannelInt[] any2oneIntArray(int size)
public static Any2AnyChannelInt[] any2anyIntArray(int size)
public static One2OneChannelInt[] one2oneIntArray(int size, int immunity)
public static One2AnyChannelInt[] one2anyIntArray(int size, int immunity)
public static Any2OneChannelInt[] any2oneIntArray(int size, int immunity)
public static Any2AnyChannelInt[] any2anyIntArray(int size, int immunity)
public static One2OneChannelInt[] one2oneIntArray(int size, ChannelDataStoreInt data)
public static One2AnyChannelInt[] one2anyIntArray(int size, ChannelDataStoreInt data)
public static Any2OneChannelInt[] any2oneIntArray(int size, ChannelDataStoreInt data)
public static Any2AnyChannelInt[] any2anyIntArray(int size, ChannelDataStoreInt data)
public static One2OneChannelInt[] one2oneIntArray(int size, ChannelDataStoreInt data, int immunity)
public static One2AnyChannelInt[] one2anyIntArray(int size, ChannelDataStoreInt data, int immunity)
public static Any2OneChannelInt[] any2oneIntArray(int size, ChannelDataStoreInt data, int immunity)
public static Any2AnyChannelInt[] any2anyIntArray(int size, ChannelDataStoreInt data, int immunity)
|
CSP for Java (JCSP) 1.1-rc2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |