Overview  Package   Class  Tree  Index 

be.lassi.domain
Class Channels

java.lang.Object
  extended by be.lassi.base.SaveableObject
      extended by be.lassi.base.NamedObjects
          extended by be.lassi.domain.Channels
All Implemented Interfaces:
java.lang.Iterable<Channel>

public class Channels
extends NamedObjects
implements java.lang.Iterable<Channel>

Collection of Channel objects.


Constructor Summary
Channels()
          Constructs a new instance.
Channels(Dirty dirty)
          Constructs a new instance.
 
Method Summary
 void add(Channel channel)
          Adds a channel.
 boolean equals(java.lang.Object object)
          
 Channel get(int index)
          Get the channel object at given index.
 NamedObject getNamedObject(int index)
          Gets the object at given index.
 float getValue(int index)
          Get the level value of the channel at given index.
 int hashCode()
          
 java.util.Iterator<Channel> iterator()
          
 void set(Channels c)
          Set the names of our channels to the names of the channels in given collection.
 void setValue(int index, float value)
          Set the level value of channel with given index to given value.
 int size()
          The number of named objects in the collection.
 
Methods inherited from class be.lassi.base.NamedObjects
addNameListener, removeNameListener
 
Methods inherited from class be.lassi.base.SaveableObject
doNotMarkDirty, getDirty, isDirty, markDirty, setDirty
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Channels

public Channels()
Constructs a new instance.


Channels

public Channels(Dirty dirty)
Constructs a new instance.

Parameters:
dirty - the dirty indicator
Method Detail

add

public void add(Channel channel)
Adds a channel.

Parameters:
channel - the channel to be added

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class java.lang.Object

get

public Channel get(int index)
Get the channel object at given index.

Parameters:
index - the index in the channel collection
Returns:
the channel at given index

getNamedObject

public NamedObject getNamedObject(int index)
Gets the object at given index.

Specified by:
getNamedObject in class NamedObjects
Parameters:
index - the index of the object to be returned
Returns:
the object at given index

getValue

public float getValue(int index)
Get the level value of the channel at given index.

Parameters:
index - the index in the channel collection
Returns:
the value of the channel at given index

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

iterator

public java.util.Iterator<Channel> iterator()

Specified by:
iterator in interface java.lang.Iterable<Channel>

set

public void set(Channels c)
Set the names of our channels to the names of the channels in given collection.

Parameters:
c - the channels from which to set the names

setValue

public void setValue(int index,
                     float value)
Set the level value of channel with given index to given value.

Parameters:
index - the channel index
value - the value to set

size

public int size()
The number of named objects in the collection.

Specified by:
size in class NamedObjects
Returns:
the number of objects in the collection

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2