model.channel.set
Class AValueSet
java.lang.Object
model.channel.set.AValueSet
- All Implemented Interfaces:
- IValueSet
- Direct Known Subclasses:
- FaderValueSet
public abstract class AValueSet
- extends Object
- implements IValueSet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iPriority
protected IPriority iPriority
channels
protected Hashtable<Short,Channel> channels
source
protected float source
combineMethod
protected int combineMethod
AValueSet
public AValueSet(float _source,
IPriority _iPriority)
setIPriority
public void setIPriority(IPriority _iPriority)
- Specified by:
setIPriority
in interface IValueSet
getIPriority
public IPriority getIPriority()
- Specified by:
getIPriority
in interface IValueSet
getPriority
public int getPriority(Channel channel)
- Specified by:
getPriority
in interface IValueSet
getPriority
public int getPriority(short address)
- Specified by:
getPriority
in interface IValueSet
getChannel
public Channel getChannel(short address)
- This method will return a channel object for the given address.
- Specified by:
getChannel
in interface IValueSet
- Parameters:
address
- The address to return the Channel object for.
- Returns:
- The Channel object of the particular address in this cue.
getRawChannel
public Channel getRawChannel(short address)
- Specified by:
getRawChannel
in interface IValueSet
getChannelValue
public short getChannelValue(short address)
- This method will return the value of the given channel
in this cue.
- Specified by:
getChannelValue
in interface IValueSet
- Parameters:
address
- The address to return the value for
- Returns:
- The value of the channel. If the cue's hashtable does not have a
predefined value for this channel, it will return the default value of 0.
getChannel
public Channel getChannel(Channel channel)
- Specified by:
getChannel
in interface IValueSet
getChannels
public Channel[] getChannels()
- Specified by:
getChannels
in interface IValueSet
getChannels
public Channel[] getChannels(short[] addresses)
- Specified by:
getChannels
in interface IValueSet
setChannelValue
public void setChannelValue(Channel channel)
- This method will set the value of the given channel in this cue.
- Specified by:
setChannelValue
in interface IValueSet
- Parameters:
channel
- The Channel object with the address, value pair.
setChannelValue
public void setChannelValue(short address,
short value)
- Specified by:
setChannelValue
in interface IValueSet
setChannelValues
public void setChannelValues(Channel[] chls)
- Specified by:
setChannelValues
in interface IValueSet
getSource
public float getSource()
- Specified by:
getSource
in interface IValueSet
resetValues
public void resetValues()
- Specified by:
resetValues
in interface IValueSet
getCombineMethod
public int getCombineMethod()
- Specified by:
getCombineMethod
in interface IValueSet
setCombineMethod
public void setCombineMethod(int _combineMethod)
- Specified by:
setCombineMethod
in interface IValueSet