agentland.device.display
Interface ProjectorManager

All Superinterfaces:
AbstractDeviceManager, Agent, Connectable, Device, DeviceManager, DisplayDevice, Good, Managed, MultiDevice, Projector, Remote, Spy
All Known Implementing Classes:
ProjectorManagerAgent

public interface ProjectorManager
extends AbstractDeviceManager, Projector

ProjectorManager manages several ProjectorAgents.

See Also:
AbstractDeviceManager, Projector

Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 boolean inputRGB1()
          Switch all the projectors to RGB1 input.
 boolean inputRGB1(String name)
           
 boolean inputRGB2()
          Switch all the projectors to RGB2 input.
 boolean inputRGB2(String name)
           
 boolean inputVideo()
          Switch all the projectors to video input.
 boolean inputVideo(String name)
           
 boolean switchTo(String name, String channel)
          Switch the named projector to the given channel.
 boolean turnOff()
           
 boolean turnOff(String name)
          Turn off the projector with the given name.
 boolean turnOn()
           
 boolean turnOn(String name)
          Turn on the projector with the given name.
 
Methods inherited from interface agentland.device.AbstractDeviceManager
addSecretDevice, getDeviceIDs
 
Methods inherited from interface agentland.device.DeviceManager
addDevice, getDevices, removeDevice
 
Methods inherited from interface agentland.device.MultiDevice
addManagedGrammar, getNameResolver, removeManagedGrammar
 
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
 
Methods inherited from interface agentland.device.display.Projector
switchTo
 
Methods inherited from interface agentland.resource.connect.Connectable
connect
 

Method Detail

turnOn

public boolean turnOn(String name)
               throws RemoteException
Turn on the projector with the given name.
Parameters:
name - the name of the projector
Returns:
true if successful
Throws:
RemoteException - if an error occurs

turnOff

public boolean turnOff(String name)
                throws RemoteException
Turn off the projector with the given name.
Parameters:
name - the name of the projector
Returns:
true if successful
Throws:
RemoteException - if an error occurs

inputVideo

public boolean inputVideo()
                   throws RemoteException
Switch all the projectors to video input.
Specified by:
inputVideo in interface Projector
Returns:
true if successful
Throws:
RemoteException - if an error occurs

inputRGB1

public boolean inputRGB1()
                  throws RemoteException
Switch all the projectors to RGB1 input.
Specified by:
inputRGB1 in interface Projector
Returns:
true if successful
Throws:
RemoteException - if an error occurs

inputRGB2

public boolean inputRGB2()
                  throws RemoteException
Switch all the projectors to RGB2 input.
Specified by:
inputRGB2 in interface Projector
Returns:
true if successful
Throws:
RemoteException - if an error occurs

turnOn

public boolean turnOn()
               throws RemoteException
Specified by:
turnOn in interface DisplayDevice

turnOff

public boolean turnOff()
                throws RemoteException
Specified by:
turnOff in interface DisplayDevice

inputVideo

public boolean inputVideo(String name)
                   throws RemoteException

inputRGB1

public boolean inputRGB1(String name)
                  throws RemoteException

inputRGB2

public boolean inputRGB2(String name)
                  throws RemoteException

switchTo

public boolean switchTo(String name,
                        String channel)
                 throws RemoteException
Switch the named projector to the given channel.
Parameters:
name - the name of the projector
channel - the channel to switch to
Returns:
true if successful
Throws:
RemoteException - if an error occurs