agentland.software
Class MSWindowsDisplayEHA

java.lang.Object
  |
  +--agentland.software.MSWindowsDisplayEHA

public class MSWindowsDisplayEHA
extends Object
implements ExceptionHandler, MSWindowsDisplay, Agent


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
MSWindowsDisplayEHA(MetagluePrimitives ap, AgentID agentID, Catalog c)
           
 
Method Summary
 void activateWindow(String param0)
           
 void addMonitor(Spy param0)
          Add a log monitor that gets all the screen output.
 boolean alive()
           
 Vector enumerateWindows()
           
 Agent getAgent()
          get the internal stub used.
 AgentID getAgentID()
           
 AgentID getAgtID()
          get the internal agentID used.
 AgentID getMetaglueAgentID()
           
 void hideWindow(String param0)
           
 void instantiate(Agent a)
           
 void maximizeAndActivateWindow(String param0)
           
 void minimizeWindow(String param0)
           
 void replaceExceptionHandler(AgentExceptionHandler r)
           
 void resizeWindow(String param0, int param1, int param2, int param3, int param4, int param5, int param6)
           
 void restoreWindow(String param0)
           
 void runCommand(String param0)
          Run a command on behalf of the sending program (so controller programs do not have to be tied to a particular machine)
 void sendKeyPress(int param0)
           
 void sendKeyToWindow(int param0, String param1)
           
 void sendMetaKeyPress(int param0)
           
 void sendMetaKeyToWindow(int param0, String param1)
           
 void sendModifiedKeyPress(int param0, int param1)
           
 void sendModifiedKeyPressToWindow(int param0, int param1, String param2)
           
 void setAgent(Agent a)
          set the internal stub used to passed agent.
 void setAgtID(AgentID a)
          set the internal agentID used to passed agent.
 void setWindowSelectionMethod(int param0)
           
 void showWindowOperation(String param0, int param1)
           
 void shutdown()
           
 void startup()
           
 InetAddress whereAreYou()
          Returns the InetAddress of the machine where the agent is running
 String windowContaining(String param0)
          Returns a window name containing a substring
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSWindowsDisplayEHA

public MSWindowsDisplayEHA(MetagluePrimitives ap,
                           AgentID agentID,
                           Catalog c)
                    throws RemoteException
Method Detail

getAgent

public Agent getAgent()
Description copied from interface: ExceptionHandler
get the internal stub used. (Used for resource management interception)
Specified by:
getAgent in interface ExceptionHandler

setAgent

public void setAgent(Agent a)
Description copied from interface: ExceptionHandler
set the internal stub used to passed agent. (Used for resource management interception)
Specified by:
setAgent in interface ExceptionHandler

getAgtID

public AgentID getAgtID()
Description copied from interface: ExceptionHandler
get the internal agentID used. (Used for resource management interception)
Specified by:
getAgtID in interface ExceptionHandler

setAgtID

public void setAgtID(AgentID a)
Description copied from interface: ExceptionHandler
set the internal agentID used to passed agent. (Used for resource management interception)
Specified by:
setAgtID in interface ExceptionHandler

instantiate

public void instantiate(Agent a)
Specified by:
instantiate in interface ExceptionHandler

replaceExceptionHandler

public void replaceExceptionHandler(AgentExceptionHandler r)
Specified by:
replaceExceptionHandler in interface ExceptionHandler

addMonitor

public void addMonitor(Spy param0)
                throws RemoteException
Description copied from interface: Agent
Add a log monitor that gets all the screen output.
Specified by:
addMonitor in interface Agent

alive

public boolean alive()
              throws RemoteException
Specified by:
alive in interface Agent

getAgentID

public AgentID getAgentID()
Specified by:
getAgentID in interface Agent

getMetaglueAgentID

public AgentID getMetaglueAgentID()
                           throws RemoteException
Specified by:
getMetaglueAgentID in interface Agent

shutdown

public void shutdown()
              throws RemoteException
Specified by:
shutdown in interface Agent

startup

public void startup()
             throws RemoteException
Specified by:
startup in interface Agent

whereAreYou

public InetAddress whereAreYou()
                        throws RemoteException
Description copied from interface: Agent
Returns the InetAddress of the machine where the agent is running
Specified by:
whereAreYou in interface Agent

activateWindow

public void activateWindow(String param0)
                    throws RemoteException,
                           MSWindowsDisplayException
Specified by:
activateWindow in interface MSWindowsDisplay

enumerateWindows

public Vector enumerateWindows()
                        throws RemoteException,
                               MSWindowsDisplayException
Specified by:
enumerateWindows in interface MSWindowsDisplay

hideWindow

public void hideWindow(String param0)
                throws RemoteException,
                       MSWindowsDisplayException
Specified by:
hideWindow in interface MSWindowsDisplay

maximizeAndActivateWindow

public void maximizeAndActivateWindow(String param0)
                               throws RemoteException,
                                      MSWindowsDisplayException
Specified by:
maximizeAndActivateWindow in interface MSWindowsDisplay

minimizeWindow

public void minimizeWindow(String param0)
                    throws RemoteException,
                           MSWindowsDisplayException
Specified by:
minimizeWindow in interface MSWindowsDisplay

resizeWindow

public void resizeWindow(String param0,
                         int param1,
                         int param2,
                         int param3,
                         int param4,
                         int param5,
                         int param6)
                  throws RemoteException,
                         MSWindowsDisplayException
Specified by:
resizeWindow in interface MSWindowsDisplay

restoreWindow

public void restoreWindow(String param0)
                   throws RemoteException,
                          MSWindowsDisplayException
Specified by:
restoreWindow in interface MSWindowsDisplay

runCommand

public void runCommand(String param0)
                throws RemoteException
Description copied from interface: MSWindowsDisplay
Run a command on behalf of the sending program (so controller programs do not have to be tied to a particular machine)
Specified by:
runCommand in interface MSWindowsDisplay

sendKeyPress

public void sendKeyPress(int param0)
                  throws RemoteException
Specified by:
sendKeyPress in interface MSWindowsDisplay

sendKeyToWindow

public void sendKeyToWindow(int param0,
                            String param1)
                     throws RemoteException,
                            MSWindowsDisplayException
Specified by:
sendKeyToWindow in interface MSWindowsDisplay

sendMetaKeyPress

public void sendMetaKeyPress(int param0)
                      throws RemoteException
Specified by:
sendMetaKeyPress in interface MSWindowsDisplay

sendMetaKeyToWindow

public void sendMetaKeyToWindow(int param0,
                                String param1)
                         throws RemoteException,
                                MSWindowsDisplayException
Specified by:
sendMetaKeyToWindow in interface MSWindowsDisplay

sendModifiedKeyPress

public void sendModifiedKeyPress(int param0,
                                 int param1)
                          throws RemoteException
Specified by:
sendModifiedKeyPress in interface MSWindowsDisplay

sendModifiedKeyPressToWindow

public void sendModifiedKeyPressToWindow(int param0,
                                         int param1,
                                         String param2)
                                  throws RemoteException,
                                         MSWindowsDisplayException
Specified by:
sendModifiedKeyPressToWindow in interface MSWindowsDisplay

setWindowSelectionMethod

public void setWindowSelectionMethod(int param0)
                              throws RemoteException
Specified by:
setWindowSelectionMethod in interface MSWindowsDisplay

showWindowOperation

public void showWindowOperation(String param0,
                                int param1)
                         throws RemoteException,
                                MSWindowsDisplayException
Specified by:
showWindowOperation in interface MSWindowsDisplay

windowContaining

public String windowContaining(String param0)
                        throws RemoteException,
                               MSWindowsDisplayException
Description copied from interface: MSWindowsDisplay
Returns a window name containing a substring
Specified by:
windowContaining in interface MSWindowsDisplay