be.lassi.domain
Class Dimmer
java.lang.Object
be.lassi.base.SaveableObject
be.lassi.base.NamedObject
be.lassi.domain.LevelObject
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Dimmer
public Dimmer(Dirty dirty,
int id,
java.lang.String name)
- Constructs a new instance with given id and name.
- Parameters:
dirty
- the dirty indicatorid
- the of the dimmer in the show dimmer collectionname
- 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 collectionname
- the name of the dimmer
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