bppy.execution.listeners package
Submodules
bppy.execution.listeners.b_program_runner_listener module
- class bppy.execution.listeners.b_program_runner_listener.BProgramRunnerListener[source]
Bases:
ABCAbstract Base Class representing a listener for
BProgramexecution events.- abstract assertion_failed(b_program)[source]
Abstract method to handle assertion failures in the execution of a
BProgram.
- abstract b_thread_added(b_program)[source]
Abstract method to handle the addition of a bthread in the
BProgram.
- abstract b_thread_done(b_program)[source]
Abstract method to handle the termination of a bthread in the execution of a
BProgram.
- abstract b_thread_removed(b_program)[source]
Abstract method to handle the removal of a bthread in the
BProgram.
- abstract ended(b_program)[source]
Abstract method to handle the end of the execution of a
BProgram.
- abstract event_selected(b_program, event)[source]
Abstract method to handle the selection of event during the execution of a
BProgram.
- abstract halted(b_program)[source]
Abstract method to handle the halting of the execution of a
BProgram.
- abstract started(b_program)[source]
Abstract method to handle the start of the execution of a
BProgram.
bppy.execution.listeners.print_b_program_runner_listener module
- class bppy.execution.listeners.print_b_program_runner_listener.PrintBProgramRunnerListener[source]
Bases:
BProgramRunnerListenerThis class implements the
BProgramRunnerListenerinterface, providing basic print statements for specific events in the BProgram’s execution.- assertion_failed(b_program)[source]
Abstract method to handle assertion failures in the execution of a
BProgram.
- b_thread_added(b_program)[source]
Abstract method to handle the addition of a bthread in the
BProgram.
- b_thread_done(b_program)[source]
Abstract method to handle the termination of a bthread in the execution of a
BProgram.
- b_thread_removed(b_program)[source]
Abstract method to handle the removal of a bthread in the
BProgram.