agentland.device
Interface Presetable

All Known Subinterfaces:
AudioMux

public interface Presetable


Method Summary
 boolean addPresetName(String presetName)
          Adds a preset name to the frozen list
 boolean clearPresetNames()
          Clears the names associated with all presets.
 int getNumPresets()
          Gets the number of presets currently programmed in the mux.
 String getPresetName(int number)
          Gets the name of the preset associated with a given number.
 Vector getPresets()
          Get the names of the presets.
 boolean setPresetName(int number, String presetName)
          Assign presetName to the preset with the given number.
 boolean setPresets(Vector presets)
          Set the names of the presets.
 

Method Detail

setPresetName

public boolean setPresetName(int number,
                             String presetName)
                      throws RemoteException
Assign presetName to the preset with the given number.
Parameters:
number - an int between 1 and getNumPresets()
presetName - a String value
Returns:
true if successful
Throws:
RemoteException - if an error occurs

getPresetName

public String getPresetName(int number)
                     throws RemoteException
Gets the name of the preset associated with a given number.
Parameters:
number - an int between 1 and getNumPresets()
Returns:
the corresponding preset's name
Throws:
RemoteException - if an error occurs

addPresetName

public boolean addPresetName(String presetName)
                      throws RemoteException
Adds a preset name to the frozen list
Parameters:
presetName - a String value to add to the preset Vector
Returns:
true if successful
Throws:
RemoteException - if an error occurs

getPresets

public Vector getPresets()
                  throws RemoteException
Get the names of the presets.
Returns:
a Vector of preset names stored as Strings
Throws:
RemoteException - if an error occurs

setPresets

public boolean setPresets(Vector presets)
                   throws RemoteException
Set the names of the presets.
Parameters:
presets - is a Vector representing the names of all presets in numerical order.
Returns:
true if successful
Throws:
RemoteException - if an error occurs

clearPresetNames

public boolean clearPresetNames()
                         throws RemoteException
Clears the names associated with all presets.
Returns:
true if successful
Throws:
RemoteException - if an error occurs

getNumPresets

public int getNumPresets()
                  throws RemoteException
Gets the number of presets currently programmed in the mux.
Returns:
the number of presets
Throws:
RemoteException - if an error occurs