be.lassi.domain
Class Channel
java.lang.Object
  
be.lassi.base.SaveableObject
      
be.lassi.base.NamedObject
          
be.lassi.domain.LevelObject
              
be.lassi.domain.Controlable
                  
be.lassi.domain.Channel
public class Channel
- extends Controlable
 
Represents a logical show channel.
 
 
| 
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 java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
 
Channel
public Channel(Dirty dirty,
               int id,
               java.lang.String name)
- Constructs a new channel.
- Parameters:
 dirty - the dirty indicatorid - the channel identifiername - the channel name
 
Channel
public Channel(int id,
               java.lang.String name)
- Constructs a new channel.
- Parameters:
 id - the channel identifiername - the channel name
 
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