ChannelInputList is used to create a list of ChannelInputEnds
Constructor and description |
---|
ChannelInputList
(One2OneChannel[] channelArray) ChannelInputList uses the ArrayList class of java
This constructor takes an array of One2One Channels as its
constructor parameter and converts them to a list of ChannelInputEnds |
ChannelInputList
(One2AnyChannel[] channelArray) ChannelInputList uses the ArrayList class of java
This constructor takes an array of One2Any Channels as its
constructor parameter and converts them to a list of ChannelInputEnds |
ChannelInputList
(Any2AnyChannel[] channelArray) ChannelInputList uses the ArrayList class of java
This constructor takes an array of Any2Any Channels as its
constructor parameter and converts them to a list of ChannelInputEnds |
ChannelInputList
(Any2OneChannel[] channelArray) ChannelInputList uses the ArrayList class of java
This constructor takes an array of Any2One Channels as its
constructor parameter and converts them to a list of ChannelInputEnds |
ChannelInputList
() ChannelInputList uses the ArrayList class of java
This constructor creates an empty ArrayList to be populated with
NetChannelInputs or Channel Input Ends |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
append(ChannelInput value) Appends the channel input end or net channel input to the ChannelInputList. |
|
boolean |
contains(ChannelInput value) The method contains determines whether or not the Channel Input List contains a specific value |
|
def |
getAt(int index) This method returns the channel input 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, ChannelInput value) This method puts a channel end specified by value at the position specified by index into the channel list |
|
def |
read() Reads in parallel from every element if the ChannelInputList. |
|
def |
readSeq() The same as read except that the channels are read in sequence |
|
boolean |
remove(ChannelInput value) This method removes a value that is a channel input end from the list |
|
int |
size() Returns the length of the Channel Input List |
|
Object[] |
toArray() converts the ChannelInputList to an array |
The list that holds the Channel Input Ends
ChannelInputList uses the ArrayList
class of java
This constructor takes an array of One2One Channels
as its
constructor parameter and converts them to a list of ChannelInputEnds
channelArray
- an array of channels ChannelInputList uses the ArrayList
class of java
This constructor takes an array of One2Any Channels
as its
constructor parameter and converts them to a list of ChannelInputEnds
ChannelInputList uses the ArrayList
class of java
This constructor takes an array of Any2Any Channels
as its
constructor parameter and converts them to a list of ChannelInputEnds
ChannelInputList uses the ArrayList
class of java
This constructor takes an array of Any2One Channels
as its
constructor parameter and converts them to a list of ChannelInputEnds
ChannelInputList uses the ArrayList
class of java
This constructor creates an empty ArrayList
to be populated with
NetChannelInputs
or Channel Input Ends
Appends the channel input end or net channel input to the ChannelInputList.
value
- The channel end to be added to the list of channelsThe method contains determines whether or not the Channel Input List contains a specific value
value
- The element value which is to be looked forThis method returns the channel input end located at the subscript specified by index
index
- the subscript of the channel end returned form the ChannelInputListThis 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 input 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 input endReads in parallel from every element if the ChannelInputList.
The same as read except that the channels are read in sequence
This method removes a value that is a channel input end from the list
value
- the channel input end to be removedReturns the length of the Channel Input List
converts the ChannelInputList to an array
Groovy JCSP for Java 1.8 and Groovy 2.4 generated 18-09-2017 (c) Jon Kerridge, Edinburgh Napier University