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

Class EventBehaviour

source code


A behaviour that is executed in response to a certain event. The 'onetime' parameter in the constructor represents the re-usability of the behaviour. By default, an Event behaviour is re-instanced (and re-launched) every time a new event that matches the template arrives. This can be changed by setting 'onetime' to True, which renders the behaviour for one use only

Instance Methods [hide private]
 
__init__(self, onetime=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from OneShotBehaviour: done

Inherited from Behaviour: exitCode, getAgent, getParent, kill, managePresence, onEnd, onStart, registerPresenceHandler, root, run, setAgent, setParent, setTemplate

Inherited from Behaviour (private): _process

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 (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]

__init__(self, onetime=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)