Overview  Package   Class  Tree  Index 

be.lassi.cues
Class CueChannelLevel

java.lang.Object
  extended by be.lassi.cues.CueLevel
      extended by be.lassi.cues.CueChannelLevel

public class CueChannelLevel
extends CueLevel

Represent the level (intensity) of a channel within a Cue. The level is composed of the level setting of the individual channel and the contributions of the submasters to this channel.

The string representation of the cue channel level consists of the channel and submaster levels separated by two dots.

Example: 50..60

Note that the submaster level value is composed of the levels of all submasters. The resulting level information is duplicated here for convenience. It is the responsibility of the class LightCues to keep these values in sync.


Constructor Summary
CueChannelLevel()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true is this object is equal to given object.
 int getChannelIntValue()
          Get channel level percentage value.
 LevelValue getChannelLevelValue()
           
 int getSubmasterIntValue()
          Get submaster level percentage value.
 LevelValue getSubmasterLevelValue()
           
 float getSubmasterValue()
          Get submaster level float value.
 float getValue()
          Return the level value, calculated using HTP (Highest Takes Precendence) rule.
 boolean isActive()
           
 void set(CueChannelLevel other)
          Set the values of given CueChannelLevel to the values of this instance.
 void setSubmasterValue(float value)
          Set submaster level float value.
 java.lang.String string()
          Return string representation.
 java.lang.String toString()
          
 
Methods inherited from class be.lassi.cues.CueLevel
getLevelControl, hashCode, isControlled, isDerived, isSelected, setDerived, setLevelControl, setSelected
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CueChannelLevel

public CueChannelLevel()
Method Detail

equals

public boolean equals(java.lang.Object object)
Returns true is this object is equal to given object.

Overrides:
equals in class CueLevel

getChannelIntValue

public int getChannelIntValue()
Get channel level percentage value.

Returns:
int

getChannelLevelValue

public LevelValue getChannelLevelValue()

getSubmasterIntValue

public int getSubmasterIntValue()
Get submaster level percentage value.

Returns:
int

getSubmasterLevelValue

public LevelValue getSubmasterLevelValue()

getSubmasterValue

public float getSubmasterValue()
Get submaster level float value.

Returns:
float

getValue

public float getValue()
Return the level value, calculated using HTP (Highest Takes Precendence) rule.

Returns:
float

isActive

public boolean isActive()

set

public void set(CueChannelLevel other)
Set the values of given CueChannelLevel to the values of this instance.

Parameters:
other -

setSubmasterValue

public void setSubmasterValue(float value)
Set submaster level float value.

Parameters:
value -

string

public java.lang.String string()
Return string representation.
   xx..yy
     xx = channel level value
     yy = submaster level value

   xx
     if submaster level value is 0

 

Returns:
String

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2