Package common :: Module nec :: Class NetworkEvent
[hide private]
[frames] | no frames]

Class NetworkEvent

source code


Instance Methods [hide private]
 
__init__(self, new_name, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
init(self) source code
 
generate(self)
Generates new event (sets it's attributes) based on event object.
source code
 
_set_kwargs_as_attributes(self, **kwargs) source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  name = ''
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, new_name, **kwargs)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

init(self)

source code 

generate(self)

source code 

Generates new event (sets it's attributes) based on event object.

Base event object name is one of those in base_network_events.

Reference to base event object is stored in self.base_event attribute.

Note that this is a reference, so modifications to that event object are possible before dispatching to Global Events Dispatcher.

Returns:
True if generated event should be dispatched, False otherwise.

_set_kwargs_as_attributes(self, **kwargs)

source code 

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

Class Variable Details [hide private]

name

Value:
''