agentland.device.pscreen
Class ProjectionScreenMetaAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.GoodAgent
                                |
                                +--agentland.resource.ManagedAgent
                                      |
                                      +--agentland.device.pscreen.ProjectionScreenMetaAgent
All Implemented Interfaces:
Agent, Good, Managed, MetagluePrimitives, ProjectionScreenMeta, Remote, Serializable, Spy

public class ProjectionScreenMetaAgent
extends ManagedAgent
implements ProjectionScreenMeta

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  PersistentMap knownScreens
           
 
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
ProjectionScreenMetaAgent()
           
 
Method Summary
 boolean activateScreen(Object designation, DeviceState state)
           
 void addKnownScreen(AgentID aid)
           
 void addKnownScreen(String aid)
           
 AgentID getKnownScreen(Object designation)
           
 void tell(Secret s)
          This is called if the Agent is to receive a particular secret.
 
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
 
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, lookupClass, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, 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 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, shutdown, startup, whereAreYou
 

Field Detail

knownScreens

protected PersistentMap knownScreens
Constructor Detail

ProjectionScreenMetaAgent

public ProjectionScreenMetaAgent()
                          throws RemoteException
Method Detail

addKnownScreen

public void addKnownScreen(String aid)
                    throws RemoteException
Specified by:
addKnownScreen in interface ProjectionScreenMeta

addKnownScreen

public void addKnownScreen(AgentID aid)
                    throws RemoteException
Specified by:
addKnownScreen in interface ProjectionScreenMeta

getKnownScreen

public AgentID getKnownScreen(Object designation)

tell

public void tell(Secret s)
          throws RemoteException
Description copied from interface: Spy
This is called if the Agent is to receive a particular secret.
Specified by:
tell in interface Spy
Overrides:
tell in class GoodAgent
Following copied from interface: agentland.util.Spy
Parameters:
secret - a Secret value
Throws:
RemoteException - if an error occurs

activateScreen

public boolean activateScreen(Object designation,
                              DeviceState state)
                       throws RemoteException