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
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.util.Spy |
tell |
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