agentland.software
Class MSWindowAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.GoodAgent
                                |
                                +--agentland.resource.ManagedAgent
                                      |
                                      +--agentland.software.MSWindowAgent
All Implemented Interfaces:
Agent, Good, Managed, MetagluePrimitives, MSWindow, Remote, Serializable, Spy
Direct Known Subclasses:
PowerPointDisplayAgent

public abstract class MSWindowAgent
extends ManagedAgent
implements MSWindow

MSWindow Agent The Intelligent Room/HAL Project MIT Artificial Intelligence Laboratory Cambridge, MA

MSWindow is a generic single window MS Application controller agent. Should be overridden

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  Runtime command
           
protected  MSWindowsDisplay n
           
 
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
 
Constructor Summary
MSWindowAgent()
           
 
Method Summary
 void activateWindow()
           
 void hideWindow()
           
 void maximizeAndActivate()
           
 void minimizeWindow()
           
 void msWindowInit()
          We have this method here so that agents that inherit from MSWindowAgent and want to make sophisticated use of resource management tools can do so by overriding this method...
 boolean weExist()
           
abstract  String windowName()
          This is the name of the application window so the windowdisplay agent can find it to do stuff to it.
 
Methods inherited from class agentland.resource.ManagedAgent
connect, getAlert, getNeed, isAvailable, isAvailable, reliesOn, reliesOn, replace, replace, request, request, request, requestAgent, requestAgent, resources, resourcesByAgentID, setNeed, tiedTo, 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, buildEHAFor, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getOldLogs, getProperties, getProxyHandlerClass, getSociety, installAPH, log, log, lookupClass, reliesOn, reliesOnSynch, removeAPHFromCatalog, removeFrozen, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, toString, 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, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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, getOldLogs, shutdown, startup, whereAreYou
 
Methods inherited from interface agentland.util.Spy
tell
 

Field Detail

n

protected MSWindowsDisplay n

command

protected Runtime command
Constructor Detail

MSWindowAgent

public MSWindowAgent()
              throws RemoteException,
                     MSWindowsDisplayException
Method Detail

msWindowInit

public void msWindowInit()
                  throws RemoteException,
                         MSWindowsDisplayException
We have this method here so that agents that inherit from MSWindowAgent and want to make sophisticated use of resource management tools can do so by overriding this method...

windowName

public abstract String windowName()
This is the name of the application window so the windowdisplay agent can find it to do stuff to it.

weExist

public boolean weExist()
Specified by:
weExist in interface MSWindow

maximizeAndActivate

public void maximizeAndActivate()
                         throws RemoteException,
                                MSWindowsDisplayException
Specified by:
maximizeAndActivate in interface MSWindow

hideWindow

public void hideWindow()
                throws RemoteException,
                       MSWindowsDisplayException
Specified by:
hideWindow in interface MSWindow

activateWindow

public void activateWindow()
                    throws RemoteException,
                           MSWindowsDisplayException
Specified by:
activateWindow in interface MSWindow

minimizeWindow

public void minimizeWindow()
                    throws RemoteException,
                           MSWindowsDisplayException
Specified by:
minimizeWindow in interface MSWindow