bppy.execution.listeners package

Submodules

bppy.execution.listeners.b_program_runner_listener module

class bppy.execution.listeners.b_program_runner_listener.BProgramRunnerListener[source]

Bases: ABC

Abstract Base Class representing a listener for BProgram execution 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.

abstract starting(b_program)[source]

Abstract method to handle the start of the execution of a BProgram.

abstract super_step_done(b_program)[source]

Abstract method to handle the completion of a super-step of a BProgram.

bppy.execution.listeners.print_b_program_runner_listener module

class bppy.execution.listeners.print_b_program_runner_listener.PrintBProgramRunnerListener[source]

Bases: BProgramRunnerListener

This class implements the BProgramRunnerListener interface, 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.

ended(b_program)[source]

Prints “ENDED” when the BProgram execution is about to start.

event_selected(b_program, event)[source]

Prints the selected event when an event has been selected during the BProgram’s execution.

halted(b_program)[source]

Abstract method to handle the halting of the execution of a BProgram.

started(b_program)[source]

Abstract method to handle the start of the execution of a BProgram.

starting(b_program)[source]

Prints “STARTED” when the BProgram execution is about to start.

super_step_done(b_program)[source]

Abstract method to handle the completion of a super-step of a BProgram.

Module contents