Overview  Package   Class  Tree  Index 

be.lassi.domain
Class Dimmer

java.lang.Object
  extended by be.lassi.base.SaveableObject
      extended by be.lassi.base.NamedObject
          extended by be.lassi.domain.LevelObject
              extended by be.lassi.domain.Dimmer

public class Dimmer
extends LevelObject

Represents a physical dimmer channel. A physical dimmer channel can be assigned to a logical channel. One dimmer channel can be patched to one logical channel only, while one logical channel could be patched to multiple physical dimmer channels. This is why we have the patching information here.


Constructor Summary
Dimmer(Dirty dirty, int id, java.lang.String name)
          Constructs a new instance with given id and name.
Dimmer(int id, java.lang.String name)
          Constructs a new instance with given id and name.
 
Method Summary
 boolean equals(java.lang.Object object)
          
 Channel getChannel()
          Gets the channel that this dimmer is patched to, null if no channel is patched to this dimmer.
 int getChannelId()
          Gets the identifier of the channel that this dimmer is patched to.
static java.lang.String getDefaultName(int id)
           
 int getLanboxChannelId()
           
 int hashCode()
          
 boolean isPatched()
          Indicates whether this dimmer is patched to a channel.
 void setChannel(Channel channel)
          Sets the channel that this dimmer is patched to, null if no channel is patched to this dimmer.
 void setLanboxChannelId(int lanboxChannelId)
           
 java.lang.String toString()
          
 
Methods inherited from class be.lassi.domain.LevelObject
getIntValue, getLevel, getValue, setIntValue, setValue
 
Methods inherited from class be.lassi.base.NamedObject
addNameListener, getId, getName, removeNameListener, setName
 
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, wait, wait, wait
 

Constructor Detail

Dimmer

public Dimmer(Dirty dirty,
              int id,
              java.lang.String name)
Constructs a new instance with given id and name.

Parameters:
dirty - the dirty indicator
id - the of the dimmer in the show dimmer collection
name - the name of the dimmer

Dimmer

public Dimmer(int id,
              java.lang.String name)
Constructs a new instance with given id and name.

Parameters:
id - the of the dimmer in the show dimmer collection
name - the name of the dimmer
Method Detail

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class LevelObject

getChannel

public Channel getChannel()
Gets the channel that this dimmer is patched to, null if no channel is patched to this dimmer.

Returns:
the channel this dimmer is patched to, null if not patched

getChannelId

public int getChannelId()
Gets the identifier of the channel that this dimmer is patched to.

Returns:
the identifier of the logical channel that this dimmer is patched to. A value of -1 indicates that no channel is patched to this dimmer

getDefaultName

public static java.lang.String getDefaultName(int id)

getLanboxChannelId

public int getLanboxChannelId()

hashCode

public int hashCode()

Overrides:
hashCode in class LevelObject

isPatched

public boolean isPatched()
Indicates whether this dimmer is patched to a channel.

Returns:
true if this dimmer is patched to a channel

setChannel

public void setChannel(Channel channel)
Sets the channel that this dimmer is patched to, null if no channel is patched to this dimmer.

Parameters:
channel - the channel this dimmer is patched to, null if not patched

setLanboxChannelId

public void setLanboxChannelId(int lanboxChannelId)

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2