remotivelabs.topology.namespaces.filters

@dataclass(frozen=True)
class Filter(abc.ABC):
include: bool

Whether matching elements should be included or excluded.

def filter_frames(self, _: remotivelabs.broker.FrameInfo) -> bool:

Determine whether a frame matches the filter.

def filter_signals( self, _: remotivelabs.broker.SignalInfo, __: remotivelabs.broker.FrameInfo) -> bool:

Determine whether a signal matches the filter.

@dataclass(frozen=True)
class SignalFilter(Filter):

Match a single signal.

Attributes:
  • signal_name: Name of the signal to match.
  • include: Whether to include or exclude matches.
SignalFilter(signal_name: str, include: bool = True)
signal_name: str
include: bool = True

Whether matching elements should be included or excluded.

def filter_signals(self, si: remotivelabs.broker.SignalInfo, __) -> bool:

Determine whether a signal matches the filter.

Inherited Members
Filter
filter_frames
@dataclass(frozen=True)
class AllFramesFilter(Filter):

Match all frames.

Attributes:
  • include: Whether to include or exclude matches.
AllFramesFilter(include: bool = True)
include: bool = True

Whether matching elements should be included or excluded.

def filter_frames(self, _: remotivelabs.broker.FrameInfo) -> bool:

Determine whether a frame matches the filter.

def filter_signals( self, _: remotivelabs.broker.SignalInfo, __: remotivelabs.broker.FrameInfo) -> bool:

Determine whether a signal matches the filter.

@dataclass(frozen=True)
class FrameFilter(Filter):

Match a single frame.

Attributes:
  • frame_name: Name of the frame to match.
  • include: Whether to include or exclude matches.
FrameFilter(frame_name: str, include: bool = True)
frame_name: str
include: bool = True

Whether matching elements should be included or excluded.

def filter_frames(self, fi: remotivelabs.broker.FrameInfo) -> bool:

Determine whether a frame matches the filter.

def filter_signals( self, _: remotivelabs.broker.SignalInfo, fi: remotivelabs.broker.FrameInfo) -> bool:

Determine whether a signal matches the filter.

@dataclass(frozen=True)
class ReceiverFilter(Filter):

Match all frames and signals received by ecu_name.

Attributes:
  • ecu_name: Name of the ECU that receives the frames or signals.
  • include: Whether to include or exclude matches.
ReceiverFilter(ecu_name: str, include: bool = True)
ecu_name: str
include: bool = True

Whether matching elements should be included or excluded.

def filter_frames(self, fi: remotivelabs.broker.FrameInfo) -> bool:

Determine whether a frame matches the filter.

def filter_signals(self, si: remotivelabs.broker.SignalInfo, __) -> bool:

Determine whether a signal matches the filter.

@dataclass(frozen=True)
class SenderFilter(Filter):

Match all frames and signals sent by ecu_name.

Attributes:
  • ecu_name: Name of the ECU that sends the frames or signals.
  • include: Whether to include or exclude matches.
SenderFilter(ecu_name: str, include: bool = True)
ecu_name: str
include: bool = True

Whether matching elements should be included or excluded.

def filter_frames(self, fi: remotivelabs.broker.FrameInfo) -> bool:

Determine whether a frame matches the filter.

def filter_signals(self, si: remotivelabs.broker.SignalInfo, __) -> bool:

Determine whether a signal matches the filter.

@dataclass(frozen=True)
class SomeIPRequestFilter(Filter):

Match a SOME/IP request.

Attributes:
  • service_instance_name: Name of the service to match. If omitted, all services are considered.
  • method_name: Name of the method to match. If omitted, all methods are considered.
  • include: Whether to include or exclude matches.
SomeIPRequestFilter( service_instance_name: str | None = None, method_name: str | None = None, include: bool = True)
service_instance_name: str | None = None
method_name: str | None = None
include: bool = True

Whether matching elements should be included or excluded.

Inherited Members
Filter
filter_frames
filter_signals
@dataclass(frozen=True)
class SomeIPEventFilter(Filter):

"Match a SOME/IP event."

Attributes:
  • service_instance_name: Name of the service to match. If omitted, all services are considered.
  • event_name: Name of the event to match. If omitted, all events are considered.
  • include: Whether to include or exclude matches.
SomeIPEventFilter( service_instance_name: str | None = None, event_name: str | None = None, include: bool = True)
service_instance_name: str | None = None
event_name: str | None = None
include: bool = True

Whether matching elements should be included or excluded.

Inherited Members
Filter
filter_frames
filter_signals