|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodel.channel.ChannelValues
public class ChannelValues
This class stores all the current channel values. Additionally, it decides what the actual value of a channel will be when it is receiving values from multiple sources.
TODO: I need to rewrite this entire class using a numbered priority system. The current system does not allow enough flexibility for the power I want to have in the program. For now, this does work well, and until I have time to rewrite this entire portion of the program, I will leave it as it is.
Field Summary | |
---|---|
static float |
FADE_DOWN_SOURCE
These modes relate to the status of specific channels at any given time. |
static float |
FADE_UP_SOURCE
These modes relate to the status of specific channels at any given time. |
static float |
FADER_SOURCE
When a channel value is being changed, the channel source value is passed in with the method. |
static float |
SUBMASTER_SOURCE
When a channel value is being changed, the channel source value is passed in with the method. |
Constructor Summary | |
---|---|
ChannelValues(int _maxChannel)
This constructor will create a new ChannelValue object with the set maximum number of channels. |
Method Summary | |
---|---|
void |
addSet(model.channel.IValueSet set)
|
Channel |
getChannel(Channel channel)
This method returns the Channel object for the given channel address. |
Channel[] |
getChannels()
This method will return an array of Channel objects for every channel with a non-zero value. |
Channel[] |
getChannels(Channel[] channels)
This method will return Channel objects for the given channels. |
Channel[] |
getChannels(Channel[] channels,
float source)
This method will return a Channel object with the value from the given source for each given channel address. |
Channel[] |
getChannelsForCue()
This is a specilized form of getChannels() used when creating new cues. |
float[] |
getChannelSource(Channel channel)
|
float[][] |
getChannelSources(Channel[] channels)
|
short |
getChannelValue(Channel channel)
|
short |
getChannelValue(short address)
This method returns the value of the given channel address. |
short[] |
getChannelValues(short[] addresses)
This method will return an array of Channel objects for every channel with a non-zero value. |
model.channel.IValueSet |
getValueSet(float source)
|
void |
removeAllCues()
|
void |
removeSet(float source)
|
void |
removeSet(model.channel.IValueSet set)
|
Channel[] |
resetValues(float source)
|
void |
updateChannel(Channel channel,
float source)
This method will update the value for the given address, value pair. |
void |
updateChannels(Channel[] channels,
float source)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float FADER_SOURCE
public static final float SUBMASTER_SOURCE
public static final float FADE_UP_SOURCE
The FADE_UP_MODE is utilized when a channel is being faded up in value by a cue transition.
public static final float FADE_DOWN_SOURCE
The FADE_DOWN_MODE is utilized when a channel is being faded down in value by a cue transition.
Constructor Detail |
---|
public ChannelValues(int _maxChannel)
TODO: Update Comments
_maxChannel
- The maximum number of channels for this setup.Method Detail |
---|
public void removeSet(model.channel.IValueSet set)
public void removeSet(float source)
public void addSet(model.channel.IValueSet set)
public short getChannelValue(short address)
address
- The address whos value will be returned.
public short getChannelValue(Channel channel)
public Channel getChannel(Channel channel)
channel
- The channel to return the Channel object for.
public Channel[] getChannels(Channel[] channels)
channels
- The channels to return Channel objects for.
public short[] getChannelValues(short[] addresses)
public Channel[] getChannels()
public Channel[] getChannelsForCue()
public void updateChannel(Channel channel, float source)
channel
- The channel object with the address, value pair to be updated.source
- The source of the new channel value.public void updateChannels(Channel[] channels, float source)
public float[] getChannelSource(Channel channel)
public float[][] getChannelSources(Channel[] channels)
public model.channel.IValueSet getValueSet(float source)
public Channel[] getChannels(Channel[] channels, float source)
channels
- The channels that you want the values from the given source for. Only the
address parameter from these channels will the used, the value will be ignored.source
- The source to get the values from.
public Channel[] resetValues(float source)
public void removeAllCues()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |