Util

This module implements utils for component managers in SAT.LMC.

check_communicating(func)

Return a function that checks component communication before calling a function.

The component manager needs to have established communications with the component, in order for the function to be called.

This function is intended to be used as a decorator:

@check_communicating
def scan(self):
    ...
Parameters:

func (TypeVar(Wrapped, bound= Callable[..., Any])) – the wrapped function

Return type:

TypeVar(Wrapped, bound= Callable[..., Any])

Returns:

the wrapped function