nopasaran.primitives.action_primitives.signaling_primitive.SignalingPrimitives

class nopasaran.primitives.action_primitives.signaling_primitive.SignalingPrimitives

Bases: object

Class containing signaling event primitives for the state machine.

__init__()

Methods

__init__()

signal_listening(inputs, outputs, state_machine)

Send a 'signal_listening' event to the signaling server.

signal_ready_connection(inputs, outputs, ...)

Send a 'signal_ready_connection' event to the signaling server.

signal_ready_listen(inputs, outputs, ...)

Send a 'signal_ready_listen' event to the signaling server.

signal_ready_stop(inputs, outputs, state_machine)

Send a 'signal_ready_stop' event to the signaling server.

static signal_listening(inputs, outputs, state_machine)

Send a ‘signal_listening’ event to the signaling server. If there’s a timeout, trigger the ‘TIMEOUT’ event.

Args:

inputs (List[str]): A list containing the signaling server address, port, client ID, and timeout duration. outputs (List[str]): The list of output variable names. state_machine: The state machine object.

Returns:

None

static signal_ready_connection(inputs, outputs, state_machine)

Send a ‘signal_ready_connection’ event to the signaling server. If there’s a timeout, trigger the ‘TIMEOUT’ event.

Args:

inputs (List[str]): A list containing the signaling server address, port, client ID, and timeout duration. outputs (List[str]): The list of output variable names. state_machine: The state machine object.

Returns:

None

static signal_ready_listen(inputs, outputs, state_machine)

Send a ‘signal_ready_listen’ event to the signaling server. If there’s a timeout, trigger the ‘TIMEOUT’ event.

Args:

inputs (List[str]): A list containing the signaling server address, port, client ID, and timeout duration. outputs (List[str]): The list of output variable names. state_machine: The state machine object.

Returns:

None

static signal_ready_stop(inputs, outputs, state_machine)

Send a ‘signal_ready_stop’ event to the signaling server. If there’s a timeout, trigger the ‘TIMEOUT’ event.

Args:

inputs (List[str]): A list containing the signaling server address, port, client ID, and timeout duration. outputs (List[str]): The list of output variable names. state_machine: The state machine object.

Returns:

None