simple_auxiliary

Simple Auxiliary Interface

module

simple_auxiliary

synopsis

common auxiliary interface for very simple auxiliary (without usage of thread or multiprocessing)

class pykiso.interfaces.simple_auxiliary.SimpleAuxiliaryInterface(name=None, activate_log=None)[source]

Define the interface for all simple auxiliary where usage of thread or mulitprocessing is not necessary.

Auxiliary initialization.

Parameters
  • activate_log (Optional[List[str]]) – loggers to deactivate

  • name (Optional[str]) – alias of the auxiliary instance

create_instance()[source]

Create an auxiliary instance and ensure the communication to it.

Return type

bool

Returns

True if creation was successful otherwise False

delete_instance()[source]

Delete an auxiliary instance and its communication to it.

Return type

bool

Returns

True if deletion was successful otherwise False

static initialize_loggers(loggers)[source]

Deactivate all external loggers except the specified ones.

Parameters

loggers (Optional[List[str]]) – list of logger names to keep activated

Return type

None

resume()[source]

Resume current auxiliary’s run.

Return type

None

stop()[source]

Stop the auxiliary

suspend()[source]

Suspend current auxiliary’s run.

Return type

None