service.inclass.functions.base_class module

class service.inclass.functions.base_class.Function[source]

Bases: object

This is the base class for all functions.

init_status = {}
static step(value, function_id, classroom_session)[source]

This is the main function step. The return value indicates whether it is required to force calling another function step. (No matter did we change the function or not, always get the latest function call step())

Parameters:
  • value (dict) – The input value for the function.

  • function_id (str) – The function id.

  • classroom_session (ClassroomSession) – The classroom session object.

Returns:

Whether it is required to force calling another function step.

Return type:

bool