agentland.device
Interface NamedMux

All Superinterfaces:
Agent, Connectable, Device, Good, Managed, Mux, Remote, Spy
All Known Subinterfaces:
AudioMux, AutoPatchVideoMux, BaseMux, CrossPointMux

public interface NamedMux
extends Mux, Connectable


Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 boolean connect(String in, String out)
           
 String getInputName(int position)
          Gets the name of the input connected to the given input number.
 Vector getInputs()
          Get a the names of the inputs.
 int getNumInputs()
          Gets the number of inputs the mux can take.
 int getNumOutputs()
          Gets the number of outputs the mux can take.
 String getOutputName(int position)
          Gets the name of the output connected to the given output number.
 Vector getOutputs()
          Get the names of the outputs.
 boolean resetNames()
           
 boolean setInputName(int position, String inName)
          Assign inName to the input with the given number.
 boolean setOutputName(int position, String outName)
          Assign outName to the output with the given number.
 
Methods inherited from interface agentland.device.Mux
connect, getInput, loadDefaults
 
Methods inherited from interface agentland.device.Device
addName, getName, getNames, getState, getState, getStateNames, hasName, resetAllStates, resetName, resetState, resetState, setName, setState
 
Methods inherited from interface agentland.resource.Managed
getNeed, replace, replace, resources, yank, yank
 
Methods inherited from interface agentland.util.Good
getHistory, getHistoryElement, resetHistory
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 
Methods inherited from interface agentland.util.Spy
tell
 

Method Detail

connect

public boolean connect(String in,
                       String out)
                throws RemoteException
Specified by:
connect in interface Connectable
Following copied from interface: agentland.resource.connect.Connectable
Returns:
true or false if connect successful.

setInputName

public boolean setInputName(int position,
                            String inName)
                     throws RemoteException
Assign inName to the input with the given number.
Parameters:
position - an int between 1 and getNumInputs()
inName - a String value
Returns:
true if successful
Throws:
RemoteException - if an error occurs

setOutputName

public boolean setOutputName(int position,
                             String outName)
                      throws RemoteException
Assign outName to the output with the given number.
Parameters:
position - an int between 1 and getNumOutputs()
outName - a String value
Returns:
true if successful
Throws:
RemoteException - if an error occurs

getInputName

public String getInputName(int position)
                    throws RemoteException
Gets the name of the input connected to the given input number.
Parameters:
position - an int between 1 and getNumInputs()
Returns:
the corresponding input's name
Throws:
RemoteException - if an error occurs

getOutputName

public String getOutputName(int position)
                     throws RemoteException
Gets the name of the output connected to the given output number.
Parameters:
position - an int between 1 and getNumOutputs()
Returns:
the corresponding output's name
Throws:
RemoteException - if an error occurs

getInputs

public Vector getInputs()
                 throws RemoteException
Get a the names of the inputs.
Returns:
a Vector of input names
Throws:
RemoteException - if an error occurs

getOutputs

public Vector getOutputs()
                  throws RemoteException
Get the names of the outputs.
Returns:
a Vector of output names
Throws:
RemoteException - if an error occurs

resetNames

public boolean resetNames()
                   throws RemoteException

getNumInputs

public int getNumInputs()
                 throws RemoteException
Gets the number of inputs the mux can take.
Returns:
the number of inputs
Throws:
RemoteException - if an error occurs

getNumOutputs

public int getNumOutputs()
                  throws RemoteException
Gets the number of outputs the mux can take.
Returns:
the number of outputs
Throws:
RemoteException - if an error occurs