Frame Listener Module

class mtf.network_port._frame_listener.FrameListerner
__init__(channel_name: str, frame_id: str)
get_queue() Queue

Get the queue

reset()

clear listerner event queue

clean_up()
start_listening(callback: Callable[[MtfDataFrameEvent], None] | None = None, direction: Direction = Direction.Rx, mode: PublishingMode = PublishingMode.Always, silent_mode: bool = False)

start listening for bus events

stop_listening()

stop listening (captured events remain, queue not cleared)

static __new__(cls, *args, **kwargs)

Initialize a new instance of the ControllerBase.

The instance will be automatically added to the list of controllers.

adapt_queue_elements() Queue[BaseEvent]

ensure the object.timestamp, object.payload

classmethod controllers_cleanup()

Clean up all controller instances.

Calls the clean_up() method for each instance.

class mtf.network_port._frame_listener.FlexrayFrameListener
__init__(channel_name: str, frame_id: str)
static __new__(cls, *args, **kwargs)

Initialize a new instance of the ControllerBase.

The instance will be automatically added to the list of controllers.

adapt_queue_elements() Queue[BaseEvent]

ensure the object.timestamp, object.payload

clean_up()
classmethod controllers_cleanup()

Clean up all controller instances.

Calls the clean_up() method for each instance.

get_queue() Queue

Get the queue

reset()

clear listerner event queue

start_listening(callback: Callable[[MtfDataFrameEvent], None] | None = None, direction: Direction = Direction.Rx, mode: PublishingMode = PublishingMode.Always, silent_mode: bool = False)

start listening for bus events

stop_listening()

stop listening (captured events remain, queue not cleared)

class mtf.network_port._frame_listener.LinFrameListener
__init__(channel_name: str, frame_id: str)
static __new__(cls, *args, **kwargs)

Initialize a new instance of the ControllerBase.

The instance will be automatically added to the list of controllers.

adapt_queue_elements() Queue[BaseEvent]

ensure the object.timestamp, object.payload

clean_up()
classmethod controllers_cleanup()

Clean up all controller instances.

Calls the clean_up() method for each instance.

get_queue() Queue

Get the queue

reset()

clear listerner event queue

start_listening(callback: Callable[[MtfDataFrameEvent], None] | None = None, direction: Direction = Direction.Rx, mode: PublishingMode = PublishingMode.Always, silent_mode: bool = False)

start listening for bus events

stop_listening()

stop listening (captured events remain, queue not cleared)

class mtf.network_port._frame_listener.CanFrameListener
get_payloads()

gather payloads from captured events

__init__(channel_name: str, frame_id: str)
static __new__(cls, *args, **kwargs)

Initialize a new instance of the ControllerBase.

The instance will be automatically added to the list of controllers.

adapt_queue_elements() Queue[BaseEvent]

ensure the object.timestamp, object.payload

clean_up()
classmethod controllers_cleanup()

Clean up all controller instances.

Calls the clean_up() method for each instance.

get_queue() Queue

Get the queue

reset()

clear listerner event queue

start_listening(callback: Callable[[MtfDataFrameEvent], None] | None = None, direction: Direction = Direction.Rx, mode: PublishingMode = PublishingMode.Always, silent_mode: bool = False)

start listening for bus events

stop_listening()

stop listening (captured events remain, queue not cleared)