Overview  Package   Class  Tree  Index 

be.lassi.domain
Class Dimmers

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

public class Dimmers
extends NamedObjects
implements java.lang.Iterable<Dimmer>

Collection with Dimmer objects.


Constructor Summary
Dimmers()
          Constructs a new instance.
Dimmers(Dirty dirty)
          Constructs a new instance.
 
Method Summary
 void add(Dimmer dimmer)
          Adds a dimmer.
 boolean equals(java.lang.Object object)
          
 Dimmer get(int index)
          Gets the dimmer with given index.
 NamedObject getNamedObject(int index)
          Gets the object at given index.
 float getValue(int index)
          Gets the level value of dimmer with given index.
 int hashCode()
          
 java.util.Iterator<Dimmer> iterator()
           
 void setValue(int channelIndex, float value)
          Set level value of all dimmers that are patched to channel with given index.
 int size()
          The number of dimmers.
 
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

Dimmers

public Dimmers()
Constructs a new instance.


Dimmers

public Dimmers(Dirty dirty)
Constructs a new instance.

Parameters:
dirty - the dirty indicator
Method Detail

add

public void add(Dimmer dimmer)
Adds a dimmer.

Parameters:
dimmer - the dimmer to be added

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class java.lang.Object

get

public Dimmer get(int index)
Gets the dimmer with given index.

Parameters:
index - the dimmer index
Returns:
the dimmer 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)
Gets the level value of dimmer with given index.

Parameters:
index - the dimmer index
Returns:
the level value of dimmer at given index

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

iterator

public java.util.Iterator<Dimmer> iterator()
Specified by:
iterator in interface java.lang.Iterable<Dimmer>

setValue

public void setValue(int channelIndex,
                     float value)
Set level value of all dimmers that are patched to channel with given index.

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

size

public int size()
The number of dimmers.

Specified by:
size in class NamedObjects
Returns:
the number of dimmers

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2