Class NamedChannels
Object
NamedChannels
A collection of
Channel
s each with an associated unique-name.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionNamedChannels
(boolean rgb) Creates a newNamedChannels
instance.NamedChannels
(Stream<NamedChannels> channelsToCombine) Creates by combining multiple existingNamedChannels
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NamedChannels
public NamedChannels(boolean rgb) Creates a newNamedChannels
instance.- Parameters:
rgb
- whether the channels originate from an RGBStack
or not.
-
NamedChannels
Creates by combining multiple existingNamedChannels
.- Parameters:
channelsToCombine
- theNamedChannels
to combine.- Throws:
OperationFailedException
- if the RGB-state is inconsistent acrossStack
s.
-
-
Method Details
-
iterator
-
add
Adds aChannel
with a name.- Parameters:
name
- a unique name for the channel.channel
- the channel to add.- Throws:
OperationFailedException
- if a channel with the same name has already been previously added.
-
names
The names of theChannel
s.- Returns:
- the channel names.
-
isRgb
public boolean isRgb()Whether the channels originate from aStack
that is RGB, or not.
-