agentland.device
Class ManualProjectorAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.GoodAgent
                                |
                                +--agentland.resource.ManagedAgent
                                      |
                                      +--agentland.device.DeviceAgent
                                            |
                                            +--agentland.device.ManualProjectorAgent

public class ManualProjectorAgent
extends DeviceAgent
implements ManualProjector

ManualProjector agent for dealing wih contention for the ManualProjector ports The Intelligent Room/HAL Project MIT Artificial Intelligence Laboratory Cambridge, MA The designation for this agent must be the full path-name for the serial port which to go through. It is automatically tied to the host specified in the "machine" attribute.

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  SpeechOut speech
           
 
Fields inherited from class agentland.device.DeviceAgent
defaultState, fName, names, states
 
Fields inherited from class agentland.resource.ManagedAgent
rm, society
 
Fields inherited from class agentland.util.GoodAgent
alert, notifier
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
ManualProjectorAgent()
           
 
Method Summary
protected  String[] getDefaultNames()
          Override this method to set the default names for your device; this method is only called if we cannot defrost names set previously
 boolean inputRGB1()
           
 boolean inputRGB2()
           
 boolean inputVideo()
           
protected  void setState()
           
 boolean switchTo(String channel)
           
 boolean turnOff()
           
 boolean turnOn()
           
 
Methods inherited from class agentland.device.DeviceAgent
addName, createStateChangeNotification, ensureState, getDefaultStateName, getName, getNames, getState, getState, getStateNames, hasName, quietException, resetAllStates, resetName, resetState, resetState, setDefaultStateName, setName, setState, throwException, updateState, updateState, updateState, updateState, updateState, updateState, updateState, updateState
 
Methods inherited from class agentland.resource.ManagedAgent
connect, getAlert, getNeed, reliesOn, reliesOn, replace, request, request, request, requestAgent, requestAgent, resources, resourcesByAgentID, setNeed, yank, yank, yank
 
Methods inherited from class agentland.util.GoodAgent
addSpy, addSpy, alert, alertString, beep, error, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell
 
Methods inherited from class metaglue.AgentAgent
addMonitor, alive, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getProperties, getSociety, log, log, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, whereAreYou
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

speech

protected SpeechOut speech
Constructor Detail

ManualProjectorAgent

public ManualProjectorAgent()
                     throws RemoteException
Method Detail

setState

protected void setState()
                 throws RemoteException

getDefaultNames

protected String[] getDefaultNames()
Description copied from class: DeviceAgent
Override this method to set the default names for your device; this method is only called if we cannot defrost names set previously
Overrides:
getDefaultNames in class DeviceAgent
Tags copied from class: DeviceAgent
Returns:
a Vector value

turnOn

public boolean turnOn()
               throws RemoteException

turnOff

public boolean turnOff()
                throws RemoteException

inputVideo

public boolean inputVideo()
                   throws RemoteException

inputRGB1

public boolean inputRGB1()
                  throws RemoteException

inputRGB2

public boolean inputRGB2()
                  throws RemoteException

switchTo

public boolean switchTo(String channel)
                 throws RemoteException