agentland.device
Class BlindsAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.device.BlindsAgent
All Implemented Interfaces:
Agent, Blinds, MetagluePrimitives, Remote, Serializable

public class BlindsAgent
extends AgentAgent
implements Blinds

Blinds agent The Intelligent Room/HAL Project MIT Artificial Intelligence Laboratory Cambridge, MA Controls the blinds using the IR agent. Blinds do not know status and if reversed will continue to remain reversed. A blind operation takes approximately 5000 ms. A 500ms signal is sent to the BIRD, then exits. If another blinds operation happens within the 5000ms operation time, the beginning waitUntilReady() call sleeps until that time is up. Relies on: IR-/dev/ttyrg tiedTo: none

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
BlindsAgent()
           
 
Method Summary
 void close()
           
 boolean getOpenStatus()
           
 void open()
           
 void release()
           
 void setOpenStatus(boolean open)
           
 
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, log, lookupClass, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOn, 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
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 

Constructor Detail

BlindsAgent

public BlindsAgent()
            throws RemoteException
Method Detail

open

public void open()
          throws RemoteException
Specified by:
open in interface Blinds

close

public void close()
           throws RemoteException
Specified by:
close in interface Blinds

release

public void release()
             throws RemoteException

setOpenStatus

public void setOpenStatus(boolean open)
                   throws RemoteException
Specified by:
setOpenStatus in interface Blinds

getOpenStatus

public boolean getOpenStatus()
                      throws RemoteException
Specified by:
getOpenStatus in interface Blinds