Title: Groovy Classes to Implement JCSP parallelism
Description: Classes required to implement JCSP Constructs within Groovy
Copyright: Copyright (c) 2005
Company: Napier University
NetChannelOUTPUT
list creation (Jon Kerridge)
and changes to comply with Groovy-jsr03Constructor and description |
---|
ChannelOutputList
(Any2AnyChannel[] channelArray) ChannelOutputList uses the ArrayList class of java
This ChannelOutputList takes an array of Any2Any Channels as its
constructor parameter and converts them to a list of Channel Output Ends |
ChannelOutputList
(One2AnyChannel[] channelArray) ChannelOutputList uses the ArrayList class of java
This ChannelOutputList takes an array of One2Any Channels as its
constructor parameter and converts them to a list of Channel Output Ends |
ChannelOutputList
(Any2OneChannel[] channelArray) ChannelOutputList uses the ArrayList class of java
This ChannelOutputList takes an array of Any2One Channels as its
constructor parameter and converts them to a list of Channel Output Ends |
ChannelOutputList
(One2OneChannel[] channelArray) ChannelOutputList uses the ArrayList class of java
This ChannelOutputList takes an array of One2One Channels as its
constructor parameter and converts them to a list of Channel Output Ends |
ChannelOutputList
() ChannelOutputList uses the ArrayList class of java
This constructor creates an empty ArrayList to be populated with
Channel Output Ends |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
append(ChannelOutput value) Appends the channel output end or net channel output to the ChannelOutputList. |
|
void |
broadcast(Object bValue) The broadcast method writes the same cloned value to each element of the ChannelOutputList. |
|
void |
broadcastSeq(Object value) The broadcastSeq method writes the cloned value to each element of the ChannelOutputList. |
|
boolean |
contains(ChannelOutput value) The method contains determines whether or not the Channel Output List contains a specific value |
|
def |
getAt(int index) This method returns the channel output end located at the subscript specified by index |
|
List |
minus(List list) This method removes the elements specified in the list from the channel list |
|
List |
plus(List list) This method adds the elements contained in the list parameter to the channel list |
|
void |
putAt(int index, ChannelOutput value) This method puts a channel end specified by value at the position specified by index into the channel list |
|
boolean |
remove(ChannelOutput value) This method removes a value that is a channel output end from the list |
|
int |
size() Returns the length of the Channel Output List |
|
Object[] |
toArray() converts the ChannelOutputList to an array |
|
def |
write(List valueList) The write method writes to each channel in a ChannelOutputList a value from the list of values, one value per channel end, both subscripted using the same index. |
|
def |
writeSeq(List valueList) The writeSeq method writes to each channel in a ChannelOutputList a value from the list of values, one value per channel end, both subscripted using the same index. |
ChannelOutputList uses the ArrayList
class of java
This ChannelOutputList takes an array of Any2Any Channels
as its
constructor parameter and converts them to a list of Channel Output Ends
ChannelOutputList uses the ArrayList
class of java
This ChannelOutputList takes an array of One2Any Channels
as its
constructor parameter and converts them to a list of Channel Output Ends
ChannelOutputList uses the ArrayList
class of java
This ChannelOutputList takes an array of Any2One Channels
as its
constructor parameter and converts them to a list of Channel Output Ends
ChannelOutputList uses the ArrayList
class of java
This ChannelOutputList takes an array of One2One Channels
as its
constructor parameter and converts them to a list of Channel Output Ends
ChannelOutputList uses the ArrayList
class of java
This constructor creates an empty ArrayList
to be populated with
Channel Output Ends
Appends the channel output end or net channel output to the ChannelOutputList.
value
- The channel end to be added to the list of channelsThe broadcast method writes the same cloned value to each element of the ChannelOutputList. The channels are written to in parallel
value
- The value to be written, which must implement CloneableThe broadcastSeq method writes the cloned value to each element of the ChannelOutputList. The channels are written to in sequence
value
- The value to be written, which must implement CloneableThe method contains determines whether or not the Channel Output List contains a specific value
value
- The element value which is to be looked forThis method returns the channel output end located at the subscript specified by index
index
- the subscript of the channel end returned form the ChannelOutputListThis method removes the elements specified in the list from the channel list
list
- the list of channel ends to be removedThis method adds the elements contained in the list parameter to the channel list
list
- a list of channel output ends to be added to the existing channel listThis method puts a channel end specified by value at the position specified by index into the channel list
index
- the subscript of the element to be setvalue
- a channel output endThis method removes a value that is a channel output end from the list
value
- the channel output end to be removedReturns the length of the Channel Output List
converts the ChannelOutputList to an array
The write method writes to each channel in a ChannelOutputList a value from the list of values, one value per channel end, both subscripted using the same index. The channels are written to in parallel
valueList
- A list containing the values to be written one for each
channel in the ChannelOutputListThe writeSeq method writes to each channel in a ChannelOutputList a value from the list of values, one value per channel end, both subscripted using the same index. The channels are written to in sequence
valueList
- A list containing the values to be written one for each
channel in the ChannelOutputListGroovy JCSP for Java 1.8 and Groovy 2.4 generated 18-09-2017 (c) Jon Kerridge, Edinburgh Napier University