Overview  Package   Class  Tree  Index 

be.lassi.domain
Class Channel

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.Controlable
                  extended by be.lassi.domain.Channel

public class Channel
extends Controlable

Represents a logical show channel.


Field Summary
 
Fields inherited from class be.lassi.domain.Controlable
levelControl
 
Constructor Summary
Channel(Dirty dirty, int id, java.lang.String name)
          Constructs a new channel.
Channel(int id, java.lang.String name)
          Constructs a new channel.
 
Method Summary
 void add(Dimmer dimmer)
          Adds given dimmer to the collection of dimmers that this channel is patched to.
 boolean equals(java.lang.Object object)
          
static java.lang.String getDefaultName(int id)
           
 java.lang.String getLabel()
          Gets the text to be shown on the Sheet table row.
 LevelControl getLevelControl()
          Gets the level control that is controlling this channel.
 int hashCode()
          
 boolean isControlled()
          Indicates whether this channel is controlled through a fader.
 boolean isPatched()
          Indicates whether this channel is patched to one or more dimmers.
 boolean isUsed()
           
 void remove(Dimmer dimmer)
          Removes given dimmer from the collection of dimmers that this channel is patched to.
 void setLevelControl(LevelControl levelControl)
          Sets the level control that will control this channel.
 java.lang.String toString()
          
 
Methods inherited from class be.lassi.domain.Controlable
getSheetGroupId
 
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

Channel

public Channel(Dirty dirty,
               int id,
               java.lang.String name)
Constructs a new channel.

Parameters:
dirty - the dirty indicator
id - the channel identifier
name - the channel name

Channel

public Channel(int id,
               java.lang.String name)
Constructs a new channel.

Parameters:
id - the channel identifier
name - the channel name
Method Detail

add

public void add(Dimmer dimmer)
Adds given dimmer to the collection of dimmers that this channel is patched to.

Parameters:
dimmer - the dimmer to be added

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class LevelObject

getDefaultName

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

getLabel

public java.lang.String getLabel()
Description copied from class: Controlable
Gets the text to be shown on the Sheet table row.

Specified by:
getLabel in class Controlable
Returns:
the Sheet row text

getLevelControl

public LevelControl getLevelControl()
Gets the level control that is controlling this channel.

Overrides:
getLevelControl in class Controlable
Returns:
the level control that is controlling this channel, null if no level control is controlling this channel

hashCode

public int hashCode()

Overrides:
hashCode in class LevelObject

isControlled

public boolean isControlled()
Indicates whether this channel is controlled through a fader.

Overrides:
isControlled in class Controlable
Returns:
true if controlled through a fader

isPatched

public boolean isPatched()
Indicates whether this channel is patched to one or more dimmers.

Returns:
true if this channel is patched to one or more dimmers

isUsed

public boolean isUsed()

remove

public void remove(Dimmer dimmer)
Removes given dimmer from the collection of dimmers that this channel is patched to.

Parameters:
dimmer - the dimmer to be removed

setLevelControl

public void setLevelControl(LevelControl levelControl)
Sets the level control that will control this channel.

Overrides:
setLevelControl in class Controlable
Parameters:
levelControl - the level control that will control this channel

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2