agentland.software
Class PowerPointDisplayAgent
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
|
+--agentland.software.PowerPointDisplayAgent
- All Implemented Interfaces:
- Agent, Good, Managed, MetagluePrimitives, MSWindow, PowerPointDisplay, Remote, Serializable, Spy
- Direct Known Subclasses:
- ManagedPowerPointDisplayAgent
- public class PowerPointDisplayAgent
- extends MSWindowAgent
- implements PowerPointDisplay
PowerPoint Agent
The Intelligent Room/HAL Project
MIT Artificial Intelligence Laboratory
Cambridge, MA
PowerPointDisplay controls PowerPoint, if alive on the given
machine. This agent uses MSWindowDisplay to initialize, minimize,
maximize and hide PowerPoint on Window 95/98.
- See Also:
- Serialized Form
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 interface agentland.util.Spy |
tell |
PowerPointDisplayAgent
public PowerPointDisplayAgent()
throws RemoteException,
MSWindowsDisplayException
ensureStartupNeeds
protected boolean ensureStartupNeeds()
throws RemoteException
- This method is meant to be extended... All of the startup needs
should be requested here. If they are granted, true should be
returned. Otherwise the method should return false to indicated
that the agent cannot proceed.
startPowerPoint
public void startPowerPoint()
throws RemoteException,
MSWindowsDisplayException,
IOException
- Specified by:
startPowerPoint
in interface PowerPointDisplay
windowName
public String windowName()
- Description copied from class:
MSWindowAgent
- This is the name of the application window so the windowdisplay
agent can find it to do stuff to it.
- Overrides:
windowName
in class MSWindowAgent
startPresentation
public void startPresentation()
throws RemoteException
- Specified by:
startPresentation
in interface PowerPointDisplay
selectPresentation
public void selectPresentation()
throws RemoteException
- Pops up a window in power point that allows you to select a
presentation. If ppt is not running, it will start it. If
presentation is in progress, it will be stopped.
- Specified by:
selectPresentation
in interface PowerPointDisplay
- Following copied from interface:
agentland.software.PowerPointDisplay
- Throws:
RemoteException
- if an error occurs
stopPresentation
public void stopPresentation()
throws RemoteException
- Specified by:
stopPresentation
in interface PowerPointDisplay
nextSlide
public void nextSlide()
- Specified by:
nextSlide
in interface PowerPointDisplay
previousSlide
public void previousSlide()
- Specified by:
previousSlide
in interface PowerPointDisplay
firstSlide
public void firstSlide()
- Specified by:
firstSlide
in interface PowerPointDisplay
lastSlide
public void lastSlide()
- Specified by:
lastSlide
in interface PowerPointDisplay
forwardXSlides
public void forwardXSlides(int number)
- Specified by:
forwardXSlides
in interface PowerPointDisplay
backXSlides
public void backXSlides(int number)
- Specified by:
backXSlides
in interface PowerPointDisplay
charge
public void charge(int number)
- Description copied from interface:
PowerPointDisplay
- For testing--go that many number of slides, 2 sec delay bet.
- Specified by:
charge
in interface PowerPointDisplay