agentland.resource
Class ForwardingResourceManagerAgent

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

public abstract class ForwardingResourceManagerAgent
extends ManagedAgent
implements ForwardingResourceManager

Implements an abstract resource manager which can forward requests through the society agent to associated societies. Created: Tue Jul 24 20:03:34 2001

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
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
ForwardingResourceManagerAgent()
           
 
Method Summary
protected  void loadRemoteManager()
           
 ResourceBunch lookup(Request req, Context con, AgentID requestor)
          Get a list of things which match the name of request.
protected abstract  ResourceBunch lookupLocal(Request request, Context context, AgentID requestor)
           
 ResourceBunch request(Request request, Context context, AgentID requestor)
          Creates a combined request, using the results of requestLocal and the result from the request to the remote society.
protected abstract  ResourceBunch requestLocal(Request request, Context context, AgentID requestor)
           
 
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.ResourceManager
addRequestHook, connect, getAgentNames, registerInstance, removeRequestHook, replaceFor, updateNeed
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, getOldLogs, shutdown, startup, whereAreYou
 
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 agentland.util.Spy
tell
 

Constructor Detail

ForwardingResourceManagerAgent

public ForwardingResourceManagerAgent()
                               throws RemoteException
Method Detail

loadRemoteManager

protected void loadRemoteManager()

request

public ResourceBunch request(Request request,
                             Context context,
                             AgentID requestor)
Creates a combined request, using the results of requestLocal and the result from the request to the remote society.
Specified by:
request in interface ResourceManager
See Also:
requestLocal(Request, Context, AgentID)

requestLocal

protected abstract ResourceBunch requestLocal(Request request,
                                              Context context,
                                              AgentID requestor)

lookup

public ResourceBunch lookup(Request req,
                            Context con,
                            AgentID requestor)
Description copied from interface: ResourceManager
Get a list of things which match the name of request. Do not actually request anything, just get the things that could fill the request.
Specified by:
lookup in interface ResourceManager

lookupLocal

protected abstract ResourceBunch lookupLocal(Request request,
                                             Context context,
                                             AgentID requestor)