|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--agentland.software.SynchronizedBrowserEHA
Fields inherited from interface metaglue.Agent |
ALIVE,
DIED,
NO_METAGLUE,
NOT_RUNNING,
STARTING |
Fields inherited from interface metaglue.Agent |
ALIVE,
DIED,
NO_METAGLUE,
NOT_RUNNING,
STARTING |
Fields inherited from interface metaglue.Agent |
ALIVE,
DIED,
NO_METAGLUE,
NOT_RUNNING,
STARTING |
Fields inherited from interface metaglue.Agent |
ALIVE,
DIED,
NO_METAGLUE,
NOT_RUNNING,
STARTING |
Constructor Summary | |
SynchronizedBrowserEHA(MetagluePrimitives ap,
AgentID agentID,
Catalog c)
|
Method Summary | |
void |
addMonitor(Spy param0)
Add a log monitor that gets all the screen output. |
void |
addSpy(AgentID param0,
String param1)
This assumes the Spy implements the Spy interface. |
void |
addSpy(AgentID param0,
String param1,
String param2)
Registers an agent as having an interest in certain messages. |
boolean |
alive()
|
Agent |
getAgent()
get the internal stub used. |
AgentID |
getAgentID()
|
AgentID |
getAgtID()
get the internal agentID used. |
AgentID |
getMetaglueAgentID()
|
String |
getSyncID()
|
String |
getURL()
|
void |
gossip(Secret param0)
Does the same work as notify . |
void |
goURL(String param0)
|
void |
hearURLchange(Secret param0)
|
void |
instantiate(Agent a)
|
void |
notify(Secret param0)
Sends a notification to any agents who have registered an interest in the given notification type. |
void |
notifyAllBrowsers(Secret param0)
|
void |
notifyStatus(Secret param0)
|
void |
passNotify(Secret param0)
So we can chain notifiers together in big nets o fun. |
void |
removeAllSpies()
|
void |
removeSpy(AgentID param0,
String param1)
This assumes the spy implements the Spy interface. |
void |
removeSpy(AgentID param0,
String param1,
String param2)
Unregisters an agent from having an interest in certain messages. |
void |
replaceExceptionHandler(AgentExceptionHandler r)
|
void |
setAgent(Agent a)
set the internal stub used to passed agent. |
void |
setAgtID(AgentID a)
set the internal agentID used to passed agent. |
void |
shutdown()
|
void |
startup()
|
void |
syncWith(String param0)
|
InetAddress |
whereAreYou()
Returns the InetAddress of the machine where the agent is running |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SynchronizedBrowserEHA(MetagluePrimitives ap, AgentID agentID, Catalog c) throws RemoteException
Method Detail |
public Agent getAgent()
public void setAgent(Agent a)
public AgentID getAgtID()
public void setAgtID(AgentID a)
public void instantiate(Agent a)
public void replaceExceptionHandler(AgentExceptionHandler r)
public void addMonitor(Spy param0) throws RemoteException
public boolean alive() throws RemoteException
public AgentID getAgentID()
public AgentID getMetaglueAgentID() throws RemoteException
public void shutdown() throws RemoteException
public void startup() throws RemoteException
public InetAddress whereAreYou() throws RemoteException
public void addSpy(AgentID param0, String param1) throws RemoteException
public void addSpy(AgentID param0, String param1, String param2) throws RemoteException
spyName
- The spy to be found.callMethod
- A string specifying the method name to call
when the requested notification occurs. The method should return
void, and take two arguments; first, a String specifying the
notification type, and second, another String with extra
information. This is the same signature as the notify method in
this class.noteType
- A simple string specifying the type of the
notification. Any Secret with a name string which _begins_ with the
passed notetype will be sent to the spy. So if a spy registers for
Boogie events, then a Boogie.Down event will get shipped to the spy
as well as strict Boogie events.AgentAgent.reliesOn(java.lang.String)
,
Notifier.removeSpy(metaglue.AgentID, java.lang.String, java.lang.String)
,
Notifier.notify(agentland.util.Secret)
public void gossip(Secret param0) throws RemoteException
notify
.Notifier.notify(Secret)
public void notify(Secret param0) throws RemoteException
secret
- This is the Secret to pass to any registered Spy agents.public void passNotify(Secret param0) throws RemoteException
public void removeAllSpies() throws RemoteException
public void removeSpy(AgentID param0, String param1) throws RemoteException
public void removeSpy(AgentID param0, String param1, String param2) throws RemoteException
spyName
- A string specifiying the agent's class name.callMethod
- A string specifying the method name.noteType
- A string specifying the type of the
notification.AgentAgent.reliesOn(java.lang.String)
,
Notifier.addSpy(metaglue.AgentID, java.lang.String, java.lang.String)
,
Notifier.notify(agentland.util.Secret)
public String getURL() throws RemoteException
public void goURL(String param0) throws RemoteException
public String getSyncID() throws RemoteException
public void hearURLchange(Secret param0) throws RemoteException
public void notifyAllBrowsers(Secret param0) throws RemoteException
public void notifyStatus(Secret param0) throws RemoteException
public void syncWith(String param0) throws RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |