spinn_front_end_common.utilities.notification_protocol package

Module contents

class spinn_front_end_common.utilities.notification_protocol.NotificationProtocol

Bases: object

The protocol which hand shakes with external devices about the database and starting execution.

The messages sent by this are received by instances of DatabaseConnection (and its subclasses). They are not routed via SpiNNaker.

close() None[source]

Closes the thread pool and the connections.

send_read_notification() None[source]

Sends notifications to all devices which have expressed an interest in when the database has been written

send_start_resume_notification() None[source]

Either waits till all sources have confirmed read the database and are configured, and/or just sends the start notification (when the system is executing).

send_stop_pause_notification() None[source]

Sends the pause / stop notifications when the script has either finished or paused.

property sent_visualisation_confirmation: bool

Whether the external application has actually been notified yet.

Return type:

bool

wait_for_confirmation() None[source]

If asked to wait for confirmation, waits for all external systems to confirm that they are configured and have read the database.