agentland.software.util
Class DisplayHTMLAgent

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.util.DisplayHTMLAgent
All Implemented Interfaces:
Agent, DisplayHTML, Good, Managed, MetagluePrimitives, Remote, Serializable, Spy

public class DisplayHTMLAgent
extends ManagedAgent
implements DisplayHTML

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  int curDisplayNumber
           
protected  int curPageNumber
           
protected  String curText
           
protected  String display
           
protected  String filePrefix
           
protected  String fname
           
protected  String suffix
           
protected  WindowsWebBrowser wwBrowser
           
 
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
DisplayHTMLAgent()
           
 
Method Summary
 void addAtEnd(String html)
           
 void addOnTop(String html)
           
 void display(String html)
           
 void displayHoriz(String html1, String html2)
           
 void displayInstruction(String str)
           
 void displayURL(String u)
           
 void displayVert(String html1, String html2)
           
 String getCurText()
           
 String getDisplay()
           
 boolean loadBrowser()
           
 void setDisplay(String display)
           
 boolean showFirstPage()
           
 boolean showLastPage()
           
 boolean showNextPage()
           
 boolean showPageNumbered(int n)
           
 boolean showPrevPage()
           
 
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

filePrefix

protected String filePrefix

display

protected String display

wwBrowser

protected WindowsWebBrowser wwBrowser

fname

protected final String fname

suffix

protected String suffix

curPageNumber

protected int curPageNumber

curDisplayNumber

protected int curDisplayNumber

curText

protected String curText
Constructor Detail

DisplayHTMLAgent

public DisplayHTMLAgent()
                 throws RemoteException
Method Detail

setDisplay

public void setDisplay(String display)
                throws RemoteException
Specified by:
setDisplay in interface DisplayHTML

getDisplay

public String getDisplay()
                  throws RemoteException
Specified by:
getDisplay in interface DisplayHTML

addOnTop

public void addOnTop(String html)
              throws RemoteException
Specified by:
addOnTop in interface DisplayHTML

addAtEnd

public void addAtEnd(String html)
              throws RemoteException
Specified by:
addAtEnd in interface DisplayHTML

getCurText

public String getCurText()
                  throws RemoteException
Specified by:
getCurText in interface DisplayHTML

display

public void display(String html)
             throws RemoteException
Specified by:
display in interface DisplayHTML

loadBrowser

public boolean loadBrowser()

displayURL

public void displayURL(String u)
                throws RemoteException
Specified by:
displayURL in interface DisplayHTML

showPageNumbered

public boolean showPageNumbered(int n)
                         throws RemoteException
Specified by:
showPageNumbered in interface DisplayHTML

displayInstruction

public void displayInstruction(String str)
                        throws RemoteException
Specified by:
displayInstruction in interface DisplayHTML

showPrevPage

public boolean showPrevPage()
                     throws RemoteException
Specified by:
showPrevPage in interface DisplayHTML

showNextPage

public boolean showNextPage()
                     throws RemoteException
Specified by:
showNextPage in interface DisplayHTML

showFirstPage

public boolean showFirstPage()
                      throws RemoteException
Specified by:
showFirstPage in interface DisplayHTML

showLastPage

public boolean showLastPage()
                     throws RemoteException
Specified by:
showLastPage in interface DisplayHTML

displayVert

public void displayVert(String html1,
                        String html2)
                 throws RemoteException
Specified by:
displayVert in interface DisplayHTML

displayHoriz

public void displayHoriz(String html1,
                         String html2)
                  throws RemoteException
Specified by:
displayHoriz in interface DisplayHTML