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

Class P2PBehaviour

source code


Nested Classes [hide private]
  P2PRequestHandler
Instance Methods [hide private]
 
_process(self)
main loop must be overridden
source code
 
onEnd(self)
this method runs when the behavior stops
source code
 
onStart(self)
this method runs when the behavior starts
source code

Inherited from Behaviour.Behaviour: __init__, done, exitCode, getAgent, getParent, kill, managePresence, registerPresenceHandler, root, run, setAgent, setParent, setTemplate

Inherited from MessageReceiver.MessageReceiver: postMessage

Inherited from MessageReceiver.MessageReceiver (private): _receive

Inherited from threading.Thread: __repr__, getName, 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__

Instance Variables [hide private]

Inherited from Behaviour.Behaviour (private): _exitcode

Properties [hide private]

Inherited from threading.Thread: daemon, ident, name

Inherited from threading.Thread (private): _block

Inherited from object: __class__

Method Details [hide private]

_process(self)

source code 

main loop must be overridden

Overrides: Behaviour.Behaviour._process
(inherited documentation)

onEnd(self)

source code 

this method runs when the behavior stops

Overrides: Behaviour.Behaviour.onEnd
(inherited documentation)

onStart(self)

source code 

this method runs when the behavior starts

Overrides: Behaviour.Behaviour.onStart
(inherited documentation)