Module: event
The event package. The sub-modules defined in this package are all related to implementing an event-based system.
Modules
data
This package defines events associated with the data structures defined in boduch.data.
event
This module defines the basic Event class which serves as the base class of any subsequent events that may be implemented in this event system.
eventmanager
This module defines the core event system functionality.
eventthread
This module defines the event thread class that is used to execute event handlers.
predicate
Copyright (C) 2008 Adam Boduch
state
Copyright (C) 2008 Adam Boduch
threadmanager
This module defines the ThreadManager class.
util
This module defines some utility functions that are designed to make using the event system slightly easier.
Classes
Event
This is the basic Event class which implements the IEvent interface. All events in this system should derive from this class.
EventEqual
EventGreater
EventHashGet
Event that is raised by the Hash.get() method.
EventHashPop
Event that is raised by the Hash.pop() method.
EventHashPush
Event that is raised by the Hash.push() method.
EventLesser
EventManager
This class is the core event system. This is an abstract class and there are therefore no instances. This class defines two class attributes.
EventSetGet
Event that is published by the Set.get() method.
EventSetPop
Event that is published by the Set.pop() method.
EventSetPush
Event that is published by the Set.push() method.
EventSetSort
Event that is published by the Set.sort() method.
EventStateMachineAddState
EventStateMachineAddTransition
EventStateMachineChangeState
EventStateMachineRemoveState
EventStateMachineTransition
EventStateTransitionTransition
EventThread
This class extends the core thread class to start a new thread of control.
ThreadManager
The ThreadManager is responsible for starting new event threads. Event threads are threads where handles are executed.
Functions
publish (evt, args=[], kw={}, atomic=False)
Make a publish event call to the event manager.
subscribe (evt, handle)
Make a subcribe to event call to the event manager.
threaded (is_threaded)
Set the mode of the event manager. True for threaded mode.
unsubscribe (evt, handle)
Make a unsubscribe to event call to the event manager.