|
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.Channel
public class Channel
This class provides static factory methods for constructing all the different types of channel.
Channels carry either Objects or integers.
Basic channels are zero-buffered: the writer and reader processes must synchronise.
Buffered channels can be made with various buffering policies:
e.g. fixed size blocking FIFO (here
),
fixed size overwrite-oldest-when-full (here
),
fixed size discard-when-full (here
),
infinite sized FIFO (here
).
Channels can be made Poisonable
with user-chosen immunity
(for the simple and safe shutdown of networks or sub-networks).
Channels are either one-one (connecting a single writer process with a single reader), one-any (connecting a single writer process with any number of readers), any-one (connecting any number of writer processes with a single reader) or any-any (connecting any number of writer processes with any number of readers). Do not misuse them (e.g. use a one-one to connect more than one writer process to more than one reader).
Channels are used to construct process networks. Channel ends, obtained from a channel via its in() and out() methods, should be plugged into the processes that need them. An input-end is used for reading from the channel; an output-end is used for writing to the channel. A process should not be given a whole channel – only the end that it needs.
Channel input-ends of one-one and any-one channels
may be used as guards
in a choice
.
Channel input-ends of one-any or any-any channels
may not be so used.
Channel output-ends of one-one symmetric
channels
may also be used as guards
in a choice
.
Channel output-ends of all other kinds of channel may not.
Symmetric channels are currently an experiment: buffering and poisoning are not yet supported.
For convenience, there are also methods for constructing arrays of channels (and for extracting arrays of channel-ends from arrays of channels).
Method Summary | |
---|---|
static Any2AnyChannel |
any2any()
This constructs an Object carrying channel that may be connected to any number of writer processes and any number of reader processes. |
static Any2AnyChannel |
any2any(ChannelDataStore buffer)
This constructs an any-any Object channel with user chosen buffering size and policy. |
static Any2AnyChannel |
any2any(ChannelDataStore buffer,
int immunity)
This constructs a buffered poisonable any-any Object channel. |
static Any2AnyChannel |
any2any(int immunity)
This constructs a poisonable any-any Object channel. |
static Any2AnyChannel[] |
any2anyArray(int size)
This constructs an array of any-any Object channels. |
static Any2AnyChannel[] |
any2anyArray(int size,
ChannelDataStore buffer)
This constructs an array of buffered any-any Object channels. |
static Any2AnyChannel[] |
any2anyArray(int size,
ChannelDataStore buffer,
int immunity)
This constructs an array of buffered poisonable any-any Object channels. |
static Any2AnyChannel[] |
any2anyArray(int size,
int immunity)
This constructs an array of poisonable any-any Object channels. |
static Any2AnyChannelInt |
any2anyInt()
This constructs an integer carrying channel that may be connected to any number of writer processes and any number of reader processes. |
static Any2AnyChannelInt |
any2anyInt(ChannelDataStoreInt buffer)
This constructs an any-any integer channel with user chosen buffering size and policy. |
static Any2AnyChannelInt |
any2anyInt(ChannelDataStoreInt buffer,
int immunity)
This constructs a buffered poisonable any-any integer channel. |
static Any2AnyChannelInt |
any2anyInt(int immunity)
This constructs a poisonable any-any integer channel. |
static Any2AnyChannelInt[] |
any2anyIntArray(int size)
This constructs an array of any-any integer channels. |
static Any2AnyChannelInt[] |
any2anyIntArray(int size,
ChannelDataStoreInt buffer)
This constructs an array of buffered any-any integer channels. |
static Any2AnyChannelInt[] |
any2anyIntArray(int size,
ChannelDataStoreInt buffer,
int immunity)
This constructs an array of buffered poisonable any-any integer channels. |
static Any2AnyChannelInt[] |
any2anyIntArray(int size,
int immunity)
This constructs an array of poisonable any-any integer channels. |
static Any2OneChannel |
any2one()
This constructs an Object carrying channel that may be connected to any number of writer processes, but only one reader at a time. |
static Any2OneChannel |
any2one(ChannelDataStore buffer)
This constructs an any-one Object channel with user chosen buffering size and policy. |
static Any2OneChannel |
any2one(ChannelDataStore buffer,
int immunity)
This constructs a buffered poisonable any-one Object channel. |
static Any2OneChannel |
any2one(int immunity)
This constructs a poisonable any-one Object channel. |
static Any2OneChannel[] |
any2oneArray(int size)
This constructs an array of any-one Object channels. |
static Any2OneChannel[] |
any2oneArray(int size,
ChannelDataStore buffer)
This constructs an array of buffered any-one Object channels. |
static Any2OneChannel[] |
any2oneArray(int size,
ChannelDataStore buffer,
int immunity)
This constructs an array of buffered poisonable any-one Object channels. |
static Any2OneChannel[] |
any2oneArray(int size,
int immunity)
This constructs an array of poisonable any-one Object channels. |
static Any2OneChannelInt |
any2oneInt()
This constructs an integer carrying channel that may be connected to any number of writer processes, but only one reader at a time. |
static Any2OneChannelInt |
any2oneInt(ChannelDataStoreInt buffer)
This constructs an any-one integer channel with user chosen buffering size and policy. |
static Any2OneChannelInt |
any2oneInt(ChannelDataStoreInt buffer,
int immunity)
This constructs a buffered poisonable any-one integer channel. |
static Any2OneChannelInt |
any2oneInt(int immunity)
This constructs a poisonable any-one integer channel. |
static Any2OneChannelInt[] |
any2oneIntArray(int size)
This constructs an array of any-one integer channels. |
static Any2OneChannelInt[] |
any2oneIntArray(int size,
ChannelDataStoreInt buffer)
This constructs an array of buffered any-one integer channels. |
static Any2OneChannelInt[] |
any2oneIntArray(int size,
ChannelDataStoreInt buffer,
int immunity)
This constructs an array of buffered poisonable any-one integer channels. |
static Any2OneChannelInt[] |
any2oneIntArray(int size,
int immunity)
This constructs an array of poisonable any-one integer channels. |
static Any2AnyChannel |
createAny2Any()
Deprecated. Use the any2any() method instead. |
static Any2AnyChannel |
createAny2Any(ChannelDataStore buffer)
Deprecated. Use the any2any(ChannelDataStore) method instead. |
static Any2AnyChannel[] |
createAny2Any(ChannelDataStore buffer,
int n)
Deprecated. Use the any2anyArray(int,ChannelDataStore) method instead. |
static Any2AnyChannel[] |
createAny2Any(int n)
Deprecated. Use the any2anyArray(int) method instead. |
static Any2OneChannel |
createAny2One()
Deprecated. Use the any2one() method instead. |
static Any2OneChannel |
createAny2One(ChannelDataStore buffer)
Deprecated. Use the any2one(ChannelDataStore) method instead. |
static Any2OneChannel[] |
createAny2One(ChannelDataStore buffer,
int n)
Deprecated. Use the any2oneArray(int,ChannelDataStore) method instead. |
static Any2OneChannel[] |
createAny2One(int n)
Deprecated. Use the any2oneArray(int) method instead. |
static One2AnyChannel |
createOne2Any()
Deprecated. Use the one2any() method instead. |
static One2AnyChannel |
createOne2Any(ChannelDataStore buffer)
Deprecated. Use the one2any(ChannelDataStore) method instead. |
static One2AnyChannel[] |
createOne2Any(ChannelDataStore buffer,
int n)
Deprecated. Use the one2anyArray(int,ChannelDataStore) method instead. |
static One2AnyChannel[] |
createOne2Any(int n)
Deprecated. Use the one2anyArray(int) method instead. |
static One2OneChannel |
createOne2One()
Deprecated. Use the one2one() method instead. |
static One2OneChannel |
createOne2One(ChannelDataStore buffer)
Deprecated. Use the one2one(ChannelDataStore) method instead. |
static One2OneChannel[] |
createOne2One(ChannelDataStore buffer,
int n)
Deprecated. Use the one2oneArray(int,ChannelDataStore) method instead. |
static One2OneChannel[] |
createOne2One(int n)
Deprecated. Use the one2oneArray(int) method instead. |
static SharedChannelInput[] |
getInputArray(Any2AnyChannel[] c)
This extracts the input-ends from the given channel array. |
static SharedChannelInputInt[] |
getInputArray(Any2AnyChannelInt[] c)
This extracts the input-ends from the given channel array. |
static AltingChannelInput[] |
getInputArray(Any2OneChannel[] c)
This extracts the input-ends from the given channel array. |
static AltingChannelInputInt[] |
getInputArray(Any2OneChannelInt[] c)
This extracts the input-ends from the given channel array. |
static SharedChannelInput[] |
getInputArray(One2AnyChannel[] c)
This extracts the input-ends from the given channel array. |
static SharedChannelInputInt[] |
getInputArray(One2AnyChannelInt[] c)
This extracts the input-ends from the given channel array. |
static AltingChannelInput[] |
getInputArray(One2OneChannel[] c)
This extracts the input-ends from the given channel array. |
static AltingChannelInputInt[] |
getInputArray(One2OneChannelInt[] c)
This extracts the input-ends from the given channel array. |
static SharedChannelOutput[] |
getOutputArray(Any2AnyChannel[] c)
This extracts the output-ends from the given channel array. |
static SharedChannelOutputInt[] |
getOutputArray(Any2AnyChannelInt[] c)
This extracts the output-ends from the given channel array. |
static SharedChannelOutput[] |
getOutputArray(Any2OneChannel[] c)
This extracts the output-ends from the given channel array. |
static SharedChannelOutputInt[] |
getOutputArray(Any2OneChannelInt[] c)
This extracts the output-ends from the given channel array. |
static ChannelOutput[] |
getOutputArray(One2AnyChannel[] c)
This extracts the output-ends from the given channel array. |
static ChannelOutputInt[] |
getOutputArray(One2AnyChannelInt[] c)
This extracts the output-ends from the given channel array. |
static ChannelOutput[] |
getOutputArray(One2OneChannel[] c)
This extracts the output-ends from the given channel array. |
static ChannelOutputInt[] |
getOutputArray(One2OneChannelInt[] c)
This extracts the output-ends from the given channel array. |
static One2AnyChannel |
one2any()
This constructs an Object carrying channel that may only be connected to one writer at a time, but any number of reader processes. |
static One2AnyChannel |
one2any(ChannelDataStore buffer)
This constructs a one-any Object channel with user chosen buffering size and policy. |
static One2AnyChannel |
one2any(ChannelDataStore buffer,
int immunity)
This constructs a buffered poisonable one-any Object channel. |
static One2AnyChannel |
one2any(int immunity)
This constructs a poisonable one-any Object channel. |
static One2AnyChannel[] |
one2anyArray(int size)
This constructs an array of one-any Object channels. |
static One2AnyChannel[] |
one2anyArray(int size,
ChannelDataStore buffer)
This constructs an array of buffered one-any Object channels. |
static One2AnyChannel[] |
one2anyArray(int size,
ChannelDataStore buffer,
int immunity)
This constructs an array of buffered poisonable one-any Object channels. |
static One2AnyChannel[] |
one2anyArray(int size,
int immunity)
This constructs an array of poisonable one-any Object channels. |
static One2AnyChannelInt |
one2anyInt()
This constructs an integer carrying channel that may only be connected to one writer at a time, but any number of reader processes. |
static One2AnyChannelInt |
one2anyInt(ChannelDataStoreInt buffer)
This constructs a one-any integer channel with user chosen buffering size and policy. |
static One2AnyChannelInt |
one2anyInt(ChannelDataStoreInt buffer,
int immunity)
This constructs a buffered poisonable one-any integer channel. |
static One2AnyChannelInt |
one2anyInt(int immunity)
This constructs a poisonable one-any integer channel. |
static One2AnyChannelInt[] |
one2anyIntArray(int size)
This constructs an array of one-any integer channels. |
static One2AnyChannelInt[] |
one2anyIntArray(int size,
ChannelDataStoreInt buffer)
This constructs an array of buffered one-any integer channels. |
static One2AnyChannelInt[] |
one2anyIntArray(int size,
ChannelDataStoreInt buffer,
int immunity)
This constructs an array of buffered poisonable one-any integer channels. |
static One2AnyChannelInt[] |
one2anyIntArray(int size,
int immunity)
This constructs an array of poisonable one-any integer channels. |
static One2OneChannel |
one2one()
This constructs an Object carrying channel that may only be connected to one writer and one reader process at a time. |
static One2OneChannel |
one2one(ChannelDataStore buffer)
This constructs a one-one Object channel with user chosen buffering size and policy. |
static One2OneChannel |
one2one(ChannelDataStore buffer,
int immunity)
This constructs a buffered poisonable one-one Object channel. |
static One2OneChannel |
one2one(int immunity)
This constructs a poisonable one-one Object channel. |
static One2OneChannel[] |
one2oneArray(int size)
This constructs an array of one-one Object channels. |
static One2OneChannel[] |
one2oneArray(int size,
ChannelDataStore buffer)
This constructs an array of buffered one-one Object channels. |
static One2OneChannel[] |
one2oneArray(int size,
ChannelDataStore buffer,
int immunity)
This constructs an array of buffered poisonable one-one Object channels. |
static One2OneChannel[] |
one2oneArray(int size,
int immunity)
This constructs an array of poisonable one-one Object channels. |
static One2OneChannelInt |
one2oneInt()
This constructs an integer carrying channel that may only be connected to one writer and one reader process at a time. |
static One2OneChannelInt |
one2oneInt(ChannelDataStoreInt buffer)
This constructs a one-one integer channel with user chosen buffering size and policy. |
static One2OneChannelInt |
one2oneInt(ChannelDataStoreInt buffer,
int immunity)
This constructs a buffered poisonable one-one integer channel. |
static One2OneChannelInt |
one2oneInt(int immunity)
This constructs a poisonable one-one integer channel. |
static One2OneChannelInt[] |
one2oneIntArray(int size)
This constructs an array of one-one integer channels. |
static One2OneChannelInt[] |
one2oneIntArray(int size,
ChannelDataStoreInt buffer)
This constructs an array of buffered one-one integer channels. |
static One2OneChannelInt[] |
one2oneIntArray(int size,
ChannelDataStoreInt buffer,
int immunity)
This constructs an array of buffered poisonable one-one integer channels. |
static One2OneChannelInt[] |
one2oneIntArray(int size,
int immunity)
This constructs an array of poisonable one-one integer channels. |
static One2OneChannelSymmetric |
one2oneSymmetric()
This constructs an Object carrying channel that may only be connected to one writer and one reader process at a time. |
static One2OneChannelSymmetric[] |
one2oneSymmetricArray(int size)
This constructs an array of symmetric one-one Object channels. |
static One2OneChannelSymmetricInt |
one2oneSymmetricInt()
This constructs an integer carrying channel that may only be connected to one writer and one reader process at a time. |
static One2OneChannelSymmetricInt[] |
one2oneSymmetricIntArray(int size)
This constructs an array of symmetric one-one integer channels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static One2OneChannel one2one()
public static One2AnyChannel one2any()
public static Any2OneChannel any2one()
public static Any2AnyChannel any2any()
public static One2OneChannel one2one(ChannelDataStore buffer)
buffer
- defines size and policy (the channel will clone its own).
public static One2AnyChannel one2any(ChannelDataStore buffer)
buffer
- defines size and policy (the channel will clone its own).
public static Any2OneChannel any2one(ChannelDataStore buffer)
buffer
- defines size and policy (the channel will clone its own).
public static Any2AnyChannel any2any(ChannelDataStore buffer)
buffer
- defines size and policy (the channel will clone its own).
public static One2OneChannel one2one(int immunity)
immunity
- the channel is immune to poison strengths up to and including this level.
public static One2AnyChannel one2any(int immunity)
immunity
- the channel is immune to poison strengths up to and including this level.
public static Any2OneChannel any2one(int immunity)
immunity
- the channel is immune to poison strengths up to and including this level.
public static Any2AnyChannel any2any(int immunity)
immunity
- the channel is immune to poison strengths up to and including this level.
public static One2OneChannel one2one(ChannelDataStore buffer, int immunity)
buffer
- defines size and policy (the channel will clone its own).immunity
- the channel is immune to poison strengths up to and including this level.
public static One2AnyChannel one2any(ChannelDataStore buffer, int immunity)
buffer
- defines size and policy (the channel will clone its own).immunity
- the channel is immune to poison strengths up to and including this level.
public static Any2OneChannel any2one(ChannelDataStore buffer, int immunity)
buffer
- defines size and policy (the channel will clone its own).immunity
- the channel is immune to poison strengths up to and including this level.
public static Any2AnyChannel any2any(ChannelDataStore buffer, int immunity)
buffer
- defines size and policy (the channel will clone its own).immunity
- the channel is immune to poison strengths up to and including this level.
public static One2OneChannel[] one2oneArray(int size)
size
- defines size of the array (must be positive).
public static One2AnyChannel[] one2anyArray(int size)
size
- defines size of the array (must be positive).
public static Any2OneChannel[] any2oneArray(int size)
size
- defines size of the array (must be positive).
public static Any2AnyChannel[] any2anyArray(int size)
size
- defines size of the array (must be positive).
public static One2OneChannel[] one2oneArray(int size, int immunity)
size
- defines size of the array (must be positive).immunity
- the channels are immune to poison strengths up to and including this level.
public static One2AnyChannel[] one2anyArray(int size, int immunity)
size
- defines size of the array (must be positive).immunity
- the channels are immune to poison strengths up to and including this level.
public static Any2OneChannel[] any2oneArray(int size, int immunity)
size
- defines size of the array (must be positive).immunity
- the channels are immune to poison strengths up to and including this level.
public static Any2AnyChannel[] any2anyArray(int size, int immunity)
size
- defines size of the array (must be positive).immunity
- the channels are immune to poison strengths up to and including this level.
public static One2OneChannel[] one2oneArray(int size, ChannelDataStore buffer)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).
public static One2AnyChannel[] one2anyArray(int size, ChannelDataStore buffer)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).
public static Any2OneChannel[] any2oneArray(int size, ChannelDataStore buffer)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).
public static Any2AnyChannel[] any2anyArray(int size, ChannelDataStore buffer)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).
public static One2OneChannel[] one2oneArray(int size, ChannelDataStore buffer, int immunity)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).immunity
- the channels are immune to poison strengths up to and including this level.
public static One2AnyChannel[] one2anyArray(int size, ChannelDataStore buffer, int immunity)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).immunity
- the channels are immune to poison strengths up to and including this level.
public static Any2OneChannel[] any2oneArray(int size, ChannelDataStore buffer, int immunity)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).immunity
- the channels are immune to poison strengths up to and including this level.
public static Any2AnyChannel[] any2anyArray(int size, ChannelDataStore buffer, int immunity)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).immunity
- the channels are immune to poison strengths up to and including this level.
public static One2OneChannelSymmetric one2oneSymmetric()
The symmetry relates to the use of the channel's ends as guards
in an Alternative
: both ends may be so used.
public static One2OneChannelSymmetric[] one2oneSymmetricArray(int size)
size
- defines size of the array (must be positive).
public static One2OneChannelInt one2oneInt()
public static One2AnyChannelInt one2anyInt()
public static Any2OneChannelInt any2oneInt()
public static Any2AnyChannelInt any2anyInt()
public static One2OneChannelInt one2oneInt(ChannelDataStoreInt buffer)
buffer
- defines size and policy (the channel will clone its own).
public static One2AnyChannelInt one2anyInt(ChannelDataStoreInt buffer)
buffer
- defines size and policy (the channel will clone its own).
public static Any2OneChannelInt any2oneInt(ChannelDataStoreInt buffer)
buffer
- defines size and policy (the channel will clone its own).
public static Any2AnyChannelInt any2anyInt(ChannelDataStoreInt buffer)
buffer
- defines size and policy (the channel will clone its own).
public static One2OneChannelInt one2oneInt(int immunity)
immunity
- the channel is immune to poison strengths up to and including this level.
public static One2AnyChannelInt one2anyInt(int immunity)
immunity
- the channel is immune to poison strengths up to and including this level.
public static Any2OneChannelInt any2oneInt(int immunity)
immunity
- the channel is immune to poison strengths up to and including this level.
public static Any2AnyChannelInt any2anyInt(int immunity)
immunity
- the channel is immune to poison strengths up to and including this level.
public static One2OneChannelInt one2oneInt(ChannelDataStoreInt buffer, int immunity)
buffer
- defines size and policy (the channel will clone its own).immunity
- the channel is immune to poison strengths up to and including this level.
public static One2AnyChannelInt one2anyInt(ChannelDataStoreInt buffer, int immunity)
buffer
- defines size and policy (the channel will clone its own).immunity
- the channel is immune to poison strengths up to and including this level.
public static Any2OneChannelInt any2oneInt(ChannelDataStoreInt buffer, int immunity)
buffer
- defines size and policy (the channel will clone its own).immunity
- the channel is immune to poison strengths up to and including this level.
public static Any2AnyChannelInt any2anyInt(ChannelDataStoreInt buffer, int immunity)
buffer
- defines size and policy (the channel will clone its own).immunity
- the channel is immune to poison strengths up to and including this level.
public static One2OneChannelInt[] one2oneIntArray(int size)
size
- defines size of the array (must be positive).
public static One2AnyChannelInt[] one2anyIntArray(int size)
size
- defines size of the array (must be positive).
public static Any2OneChannelInt[] any2oneIntArray(int size)
size
- defines size of the array (must be positive).
public static Any2AnyChannelInt[] any2anyIntArray(int size)
size
- defines size of the array (must be positive).
public static One2OneChannelInt[] one2oneIntArray(int size, int immunity)
size
- defines size of the array (must be positive).immunity
- the channels are immune to poison strengths up to and including this level.
public static One2AnyChannelInt[] one2anyIntArray(int size, int immunity)
size
- defines size of the array (must be positive).immunity
- the channels are immune to poison strengths up to and including this level.
public static Any2OneChannelInt[] any2oneIntArray(int size, int immunity)
size
- defines size of the array (must be positive).immunity
- the channels are immune to poison strengths up to and including this level.
public static Any2AnyChannelInt[] any2anyIntArray(int size, int immunity)
size
- defines size of the array (must be positive).immunity
- the channels are immune to poison strengths up to and including this level.
public static One2OneChannelInt[] one2oneIntArray(int size, ChannelDataStoreInt buffer)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).
public static One2AnyChannelInt[] one2anyIntArray(int size, ChannelDataStoreInt buffer)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).
public static Any2OneChannelInt[] any2oneIntArray(int size, ChannelDataStoreInt buffer)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).
public static Any2AnyChannelInt[] any2anyIntArray(int size, ChannelDataStoreInt buffer)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).
public static One2OneChannelInt[] one2oneIntArray(int size, ChannelDataStoreInt buffer, int immunity)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).immunity
- the channels are immune to poison strengths up to and including this level.
public static One2AnyChannelInt[] one2anyIntArray(int size, ChannelDataStoreInt buffer, int immunity)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).immunity
- the channels are immune to poison strengths up to and including this level.
public static Any2OneChannelInt[] any2oneIntArray(int size, ChannelDataStoreInt buffer, int immunity)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).immunity
- the channels are immune to poison strengths up to and including this level.
public static Any2AnyChannelInt[] any2anyIntArray(int size, ChannelDataStoreInt buffer, int immunity)
size
- defines size of the array (must be positive).buffer
- defines size and policy (the channel will clone its own).immunity
- the channels are immune to poison strengths up to and including this level.
public static One2OneChannelSymmetricInt one2oneSymmetricInt()
The symmetry relates to the use of the channel's ends as guards
in an Alternative
: both ends may be so used.
public static One2OneChannelSymmetricInt[] one2oneSymmetricIntArray(int size)
size
- defines size of the array (must be positive).
public static AltingChannelInput[] getInputArray(One2OneChannel[] c)
c
- an array of channels.
public static SharedChannelInput[] getInputArray(One2AnyChannel[] c)
c
- an array of channels.
public static AltingChannelInput[] getInputArray(Any2OneChannel[] c)
c
- an array of channels.
public static SharedChannelInput[] getInputArray(Any2AnyChannel[] c)
c
- an array of channels.
public static ChannelOutput[] getOutputArray(One2OneChannel[] c)
c
- an array of channels.
public static ChannelOutput[] getOutputArray(One2AnyChannel[] c)
c
- an array of channels.
public static SharedChannelOutput[] getOutputArray(Any2OneChannel[] c)
c
- an array of channels.
public static SharedChannelOutput[] getOutputArray(Any2AnyChannel[] c)
c
- an array of channels.
public static AltingChannelInputInt[] getInputArray(One2OneChannelInt[] c)
c
- an array of channels.
public static SharedChannelInputInt[] getInputArray(One2AnyChannelInt[] c)
c
- an array of channels.
public static AltingChannelInputInt[] getInputArray(Any2OneChannelInt[] c)
c
- an array of channels.
public static SharedChannelInputInt[] getInputArray(Any2AnyChannelInt[] c)
c
- an array of channels.
public static ChannelOutputInt[] getOutputArray(One2OneChannelInt[] c)
c
- an array of channels.
public static ChannelOutputInt[] getOutputArray(One2AnyChannelInt[] c)
c
- an array of channels.
public static SharedChannelOutputInt[] getOutputArray(Any2OneChannelInt[] c)
c
- an array of channels.
public static SharedChannelOutputInt[] getOutputArray(Any2AnyChannelInt[] c)
c
- an array of channels.
public static One2OneChannel createOne2One()
one2one()
method instead.
One2OneChannel
object.
ChannelFactory.createOne2One()
public static Any2OneChannel createAny2One()
any2one()
method instead.
Any2OneChannel
object.
ChannelFactory.createAny2One()
public static One2AnyChannel createOne2Any()
one2any()
method instead.
One2AnyChannel
object.
ChannelFactory.createOne2Any()
public static Any2AnyChannel createAny2Any()
any2any()
method instead.
Any2AnyChannel
object.
ChannelFactory.createAny2Any()
public static One2OneChannel[] createOne2One(int n)
one2oneArray(int)
method instead.
One2OneChannel
objects.
n
- the size of the array of channels.
ChannelArrayFactory.createOne2One(int)
public static Any2OneChannel[] createAny2One(int n)
any2oneArray(int)
method instead.
Any2OneChannel
objects.
n
- the size of the array of channels.
ChannelArrayFactory.createAny2One(int)
public static One2AnyChannel[] createOne2Any(int n)
one2anyArray(int)
method instead.
One2AnyChannel
objects.
n
- the size of the array of channels.
ChannelArrayFactory.createOne2Any(int)
public static Any2AnyChannel[] createAny2Any(int n)
any2anyArray(int)
method instead.
Any2AnyChannel
objects.
n
- the size of the array of channels.
ChannelArrayFactory.createAny2Any(int)
public static One2OneChannel createOne2One(ChannelDataStore buffer)
one2one(ChannelDataStore)
method instead.
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)
any2one(ChannelDataStore)
method instead.
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)
one2any(ChannelDataStore)
method instead.
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)
any2any(ChannelDataStore)
method instead.
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)
one2oneArray(int,ChannelDataStore)
method instead.
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)
any2oneArray(int,ChannelDataStore)
method instead.
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)
one2anyArray(int,ChannelDataStore)
method instead.
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)
any2anyArray(int,ChannelDataStore)
method instead.
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
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |