agentland.resource.util
Class EmptyResourceManagerAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.resource.util.EmptyResourceManagerAgent
- All Implemented Interfaces:
- Agent, EmptyResourceManager, MetagluePrimitives, Remote, ResourceManager, Serializable
- public class EmptyResourceManagerAgent
- extends AgentAgent
- implements EmptyResourceManager
- See Also:
- Serialized Form
Method Summary |
void |
addRequestHook(AgentID watcher)
This is so agents can watch all resource requests on the java
side and add/modify them if necessary/desired. |
boolean |
connect(AgentID start,
AgentID end)
Connect two agents together (in whatever sense makes sense.) |
Collection |
getAgentNames(AgentID id)
Return any known String names for an agentID. |
ResourceBunch |
lookup(Request req,
Context con,
AgentID requestor)
Get a list of things which match the name of request. |
void |
registerInstance(AgentID resID)
Register a Managed Agent as alive and kicking. |
void |
removeRequestHook(AgentID watcher)
|
void |
replaceFor(AgentID requestor,
Resource res,
Request req,
Context con)
On behalf of some agent, replace the resource named with
some other requested resource and context as defined by
the passed request |
ResourceBunch |
request(Request request,
Context context,
AgentID requestor)
|
void |
updateNeed(AgentID requestor,
String requestBunchName,
Need need)
|
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, log, lookupClass, reliesOn, reliesOn, reliesOn, reliesOnSynch, removeAPHFromCatalog, removeFrozen, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, toString, whereAreYou |
registerInstance
public void registerInstance(AgentID resID)
throws RemoteException
- Register a Managed Agent as alive and kicking. Should
be called in the agent's constructor.
- Specified by:
registerInstance
in interface ResourceManager
request
public ResourceBunch request(Request request,
Context context,
AgentID requestor)
throws RemoteException
- Specified by:
request
in interface ResourceManager
lookup
public ResourceBunch lookup(Request req,
Context con,
AgentID requestor)
throws RemoteException
- Get a list of things which match the name of request. Do not
actually request anything, just get the things that fill the
request.
- Specified by:
lookup
in interface ResourceManager
replaceFor
public void replaceFor(AgentID requestor,
Resource res,
Request req,
Context con)
throws RemoteException
- On behalf of some agent, replace the resource named with
some other requested resource and context as defined by
the passed request
- Specified by:
replaceFor
in interface ResourceManager
connect
public boolean connect(AgentID start,
AgentID end)
throws RemoteException
- Connect two agents together (in whatever sense makes sense.)
- Specified by:
connect
in interface ResourceManager
addRequestHook
public void addRequestHook(AgentID watcher)
throws RemoteException
- This is so agents can watch all resource requests on the java
side and add/modify them if necessary/desired. (So a person
locator can add person's location to request info.)
- Specified by:
addRequestHook
in interface ResourceManager
removeRequestHook
public void removeRequestHook(AgentID watcher)
throws RemoteException
- Specified by:
removeRequestHook
in interface ResourceManager
getAgentNames
public Collection getAgentNames(AgentID id)
throws RemoteException
- Return any known String names for an agentID. This
can be used for speech recog, management of resource
or whatall.
- Specified by:
getAgentNames
in interface ResourceManager
updateNeed
public void updateNeed(AgentID requestor,
String requestBunchName,
Need need)
throws RemoteException
- Specified by:
updateNeed
in interface ResourceManager