|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.agent.FIPAOSAgent | +--repserver.RepAgent | +--ihelp.PersAgent
A users Personal Agent. Stores a little about a user and knows if the user is on line or off.
Inner Class Summary | |
class |
PersAgent.FindHelpTask
Find a helper. |
class |
PersAgent.FindMMTask
|
class |
PersAgent.HandleRequestTask
Handles all incoming i-help requests |
class |
PersAgent.IdleTask
IdleTask |
Inner classes inherited from class repserver.RepAgent |
RepAgent.RegisterTask, RepAgent.RepServerManagementTask, RepAgent.StateTask |
Inner classes inherited from class fipaos.agent.FIPAOSAgent |
fipaos.agent.FIPAOSAgent.TopLevelHandlerTask |
Fields inherited from class fipaos.agent.FIPAOSAgent |
_database_profile, _registered_with, _state, _tm |
Constructor Summary | |
PersAgent(java.lang.String platform,
java.lang.String name,
java.lang.String ownership,
fipaos.ont.fipa.fipaman.AgentID rs,
java.lang.String role,
java.lang.String group_name)
standard RepAgent constructor |
Method Summary | |
void |
addKeyword(java.lang.String kw)
add the given keyword to the list of keywords |
void |
checkForFailure()
generate a random number, and if the number is in the range to fail, shutdown this agent. |
void |
donePersAgent_FindMMTask(fipaos.agent.task.Task t)
|
byte[] |
getAState()
return the state of this agent. |
java.lang.String |
getKeywords()
get a string of the list of keywords |
boolean |
getStatus()
get the status. |
java.lang.String |
getStrStatus()
get the String status. |
fipaos.ont.fipa.fipaman.AgentID |
getUIAgent()
get the AgentID of the user interface agent |
java.lang.String |
getUserName()
get the user_name for the agent |
void |
goActive()
when going to ACTIVE_AGENT, look for a new MMAgent |
boolean |
hasKeyword(java.lang.String kw)
return true if the keyword is in the list. |
static void |
main(java.lang.String[] args)
|
boolean |
setAState(byte[] b)
set the state of the agent, given a byte stream. |
void |
setStatus(boolean st)
set the status, true is user is available, false otherwise. |
void |
setUIAgent(fipaos.ont.fipa.fipaman.AgentID aid)
set the AgentID of the user interface agent |
void |
setUserName(java.lang.String name)
set the user_name for the agent |
void |
shutdown()
Invoked when this Agent is about to be shutdown - this overrides the shutdown() method in the FIPAOSAgent class to enable the CountAgentGUI associated with this CountAgent to be removed |
Methods inherited from class repserver.RepAgent |
doneRepAgent_RegisterTask, getConvs, getGroupName, getLocalPostOffice, getProxyAID, getReceiver, getRepServer, getRole, isActiveAgent, isReplicant, removeConv, sendReply, sendReply, setLocalPostOffice, setRepServer, setRole |
Methods inherited from class fipaos.agent.FIPAOSAgent |
activate, addNewProtocol, deregisterWithAMS, deregisterWithDF, forward, forward, getAID, getCM, getCurrentConversation, getHAP, getLocalAMS, getLocalAMSAID, getLocalDF, getLocalDFAID, getNewConversation, getOwnership, getPlatformProfile, getProfile, getState, isShutdown, knowsProtocol, notify, notify, notifyDone, notifyError, notifyMessageInEndedConversation, notifyMessageUndeliverable, notifyTimeout, registeredWith, registeredWithAMS, registeredWithDF, registerWithAMS, registerWithAMS, registerWithAMS, registerWithAMS, registerWithDF, registerWithDF, registerWithDF, registerWithDF, sendNotUnderstood, sendNotUnderstood, setListenerTask, setMessageSender, startPushing, waitForPushLock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PersAgent(java.lang.String platform, java.lang.String name, java.lang.String ownership, fipaos.ont.fipa.fipaman.AgentID rs, java.lang.String role, java.lang.String group_name)
Method Detail |
public void goActive()
goActive
in class RepAgent
public void donePersAgent_FindMMTask(fipaos.agent.task.Task t)
public void shutdown()
shutdown
in class fipaos.agent.FIPAOSAgent
public void setUserName(java.lang.String name)
public java.lang.String getUserName()
public void setUIAgent(fipaos.ont.fipa.fipaman.AgentID aid)
public fipaos.ont.fipa.fipaman.AgentID getUIAgent()
public void addKeyword(java.lang.String kw)
public java.lang.String getKeywords()
public boolean hasKeyword(java.lang.String kw)
public void setStatus(boolean st)
public boolean getStatus()
public java.lang.String getStrStatus()
public byte[] getAState()
getAState
in class RepAgent
public boolean setAState(byte[] b)
setAState
in class RepAgent
repserver.RepAgent
state
- a byte stream representing the state of this agent.
returns true if successful.public void checkForFailure()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |