agentland.software
Class AOLIMAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.software.AOLIMAgent
- public class AOLIMAgent
- extends AgentAgent
- implements AOLIM, agentland.software.AOL.TocCallback
The AOL InstantMessanger Agent.
AOL IM is an interface into the AOL Instant Messaging system, so
that Intelligent Room agents can send messages to AOL IM users, if
it thought it had a good reason to do so.
This agent is using a string-ified version of the IM protocol,
created for a Tcl client to IM. More information can be found at
- See Also:
Toc
, Serialized Form
Method Summary |
Vector |
getUsers()
Show all the users that we care about who are currently logged
in. |
void |
login(String screenname,
String password)
Login to the AOL IM system. |
void |
logout()
Exits the system. |
void |
sendMessage(String username,
String message)
Sends a message to a given AOL user. |
void |
TocClosed(String reason)
|
void |
TocConfig(String data)
|
void |
TocError(int code,
String args)
|
void |
TocEviled(int evil,
String eviler)
|
void |
TocIMIn(String from,
String msg,
boolean auto)
|
void |
TocNick(String nick)
|
void |
TocSignOn(String version)
|
void |
TocUpdateBuddy(String user,
boolean online,
int evil,
int signon,
int idle)
|
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,
log,
obtainMetaglueAgent,
obtainMetaglueAgent,
obtainMetaglueAgentByName,
reliesOn,
reliesOn,
reliesOn,
reliesOnSynch,
removeFrozen,
replaceExceptionHandler,
setFreezeName,
setLogLevel,
setLogName,
shutdown,
startAgent,
startAgentOn,
startAgentOn,
startup,
status,
tiedTo,
tiedTo,
tiedTo,
tiedTo,
tieToDesignation,
whereAreYou |
AOLIMAgent
public AOLIMAgent()
throws RemoteException
login
public void login(String screenname,
String password)
throws RemoteException
- Description copied from interface: AOLIM
- Login to the AOL IM system. The screen name and password are
given here. In the current incarnation, this starts up the
socket to the backend cmdline program.
- Specified by:
- login in interface AOLIM
getUsers
public Vector getUsers()
throws RemoteException
- Description copied from interface: AOLIM
- Show all the users that we care about who are currently logged
in. This sends back a vector of strings, which the calling agent
can pop up in a dialog box.
- Specified by:
- getUsers in interface AOLIM
sendMessage
public void sendMessage(String username,
String message)
throws RemoteException
- Description copied from interface: AOLIM
- Sends a message to a given AOL user. Messages from other users
are sent as notifications to the notification agent. To get
messages from AOLIM, call the Notifier with an addSpy() asking to
be told of "InstantMessage" notifications.
- Specified by:
- sendMessage in interface AOLIM
logout
public void logout()
throws RemoteException
- Description copied from interface: AOLIM
- Exits the system.
- Specified by:
- logout in interface AOLIM
TocSignOn
public void TocSignOn(String version)
- Specified by:
- TocSignOn in interface agentland.software.AOL.TocCallback
TocConfig
public void TocConfig(String data)
- Specified by:
- TocConfig in interface agentland.software.AOL.TocCallback
TocNick
public void TocNick(String nick)
- Specified by:
- TocNick in interface agentland.software.AOL.TocCallback
TocIMIn
public void TocIMIn(String from,
String msg,
boolean auto)
- Specified by:
- TocIMIn in interface agentland.software.AOL.TocCallback
TocUpdateBuddy
public void TocUpdateBuddy(String user,
boolean online,
int evil,
int signon,
int idle)
- Specified by:
- TocUpdateBuddy in interface agentland.software.AOL.TocCallback
TocEviled
public void TocEviled(int evil,
String eviler)
- Specified by:
- TocEviled in interface agentland.software.AOL.TocCallback
TocClosed
public void TocClosed(String reason)
- Specified by:
- TocClosed in interface agentland.software.AOL.TocCallback
TocError
public void TocError(int code,
String args)
- Specified by:
- TocError in interface agentland.software.AOL.TocCallback