Base class for EventProcessors, i.e. objects that can accept and
handle events. This base class handles the basic mechanics of
connections and sending events, and stores both incoming and outgoing
connections.
The dest_ports attribute specifies which dest_ports are supported
by this class; subclasses can augment or change this list if they
wish. The special value dest_ports=None means to accept
connections to any dest_port, while dest_ports=[None,'Trigger']
means that only connections to port None or port 'Trigger' are
accepted.
Similarly, the src_ports attribute specifies which src_ports will
be given output by this class.
|
|
|
|
|
|
|
|
_port_match(self,
key,
portlist)
Returns True if the given key matches any port on the given list. |
source code
|
|
|
|
|
|
|
input_event(self,
conn,
data)
Called by the simulation when an EPConnectionEvent is delivered;
the EventProcessor should process the data somehow. |
source code
|
|
|
|
|
|
|
script_repr(self,
imports=[],
prefix=' ')
Generate a runnable command for creating this EventProcessor. |
source code
|
|
|
|
send_output(self,
src_port=None,
data=None)
Send some data out to all connections on the given src_port. |
source code
|
|
|
|
start(self)
Called by the simulation when the EventProcessor is added to
the simulation. |
source code
|
|
|
Inherited from param.parameterized.Parameterized:
__getstate__,
__repr__,
__setstate__,
__str__,
debug,
defaults,
force_new_dynamic_value,
get_param_values,
get_value_generator,
inspect_value,
message,
print_param_values,
set_dynamic_time_fn,
state_pop,
state_push,
verbose,
warning
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|