Package spade :: Module Agent :: Class Agent
[hide private]
[frames] | no frames]

Class Agent

source code


This is the main class which may be inherited to build a SPADE agent

Instance Methods [hide private]
 
__init__(self, agentjid, password, port=5222, debug=[], p2p=False)
inits an agent with a JID (user@server) and a platform JID (acc.platformserver)
source code
 
setSocialItem(self, jid, presence='') source code
 
_register(self, password, autoregister=True)
registers the agent in the Jabber server
source code
 
_shutdown(self) source code
 
__register_in_AMS(self, state='active', ownership=None, debug=False) source code
 
__register_in_AMS_with_ACL(self, state='active', ownership=None, debug=False) source code
 
__deregister_from_AMS(self, state=None, ownership=None, debug=False) source code
 
__deregister_from_AMS_with_ACL(self, state=None, ownership=None, debug=False) source code

Inherited from AbstractAgent: DEBUG, WUIController_admin, WUIController_log, WUIController_login, WUIController_logout, WUIController_messages, WUIController_search, WUIController_sendmsg, WUIController_sent, addAddress, addBehaviour, addBelieve, askBelieve, configureKB, createEvent, deleteEvent, deregisterService, forceKill, getAID, getAMS, getDF, getDefaultBehaviour, getDomain, getFact, getLog, getMUC, getName, getP2PUrl, getPlatformInfo, getSocialNetwork, getSpadePlatformJID, initiateStream, invokeService, isRunning, modifyAgent, modifyService, newContentObject, newMessage, publishEvent, registerLogComponent, registerService, removeBehaviour, removeBelieve, requestDiscoInfo, run, runBehaviourOnce, saveFact, searchAgent, searchService, send, send_p2p, setAID, setAdminPasswd, setDebug, setDebugToFile, setDebugToScreen, setDefaultBehaviour, stop, subscribeToEvent, subscribeToFriend, takeDown, unsubscribeFromEvent, unsubscribeToFriend

Inherited from MessageReceiver.MessageReceiver: postMessage

Inherited from MessageReceiver.MessageReceiver (private): _receive

Inherited from threading.Thread: __repr__, isAlive, isDaemon, is_alive, join, setDaemon, setName, start

Inherited from threading.Thread (private): _reset_internal_locks, _set_daemon, _set_ident

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from threading.Thread: daemon, ident, name

Inherited from threading.Thread (private): _block

Inherited from object: __class__

Method Details [hide private]

__init__(self, agentjid, password, port=5222, debug=[], p2p=False)
(Constructor)

source code 

inits an agent with a JID (user@server) and a platform JID (acc.platformserver)

Overrides: object.__init__
(inherited documentation)