.. _f-baseclasses: module ``activities.base_classes`` ================================== .. inheritance-diagram:: mathenjeu.activities.base_classes Short summary +++++++++++++ module ``mathenjeu.activities.base_classes`` Base classes. :githublink:`%|py|6` Classes +++++++ +--------------------------------------------------------------------------+------------------------------------------------+ | class | truncated documentation | +==========================================================================+================================================+ | :class:`Activity ` | Defines an activity, a question, a game... | +--------------------------------------------------------------------------+------------------------------------------------+ | :class:`ActivityGroup ` | Defines a set of activities. | +--------------------------------------------------------------------------+------------------------------------------------+ | :class:`Base ` | Base class. | +--------------------------------------------------------------------------+------------------------------------------------+ | :class:`Display ` | Defines how an activity should be displayed. | +--------------------------------------------------------------------------+------------------------------------------------+ | :class:`LanguageBase ` | Base class for language specific content. | +--------------------------------------------------------------------------+------------------------------------------------+ | :class:`Notion ` | Defines what an activity intents to introduce. | +--------------------------------------------------------------------------+------------------------------------------------+ Properties ++++++++++ +-------------------------------------------------------------------------+-------------------------+ | property | truncated documentation | +=========================================================================+=========================+ | :meth:`Fields ` | Returns all the fields. | +-------------------------------------------------------------------------+-------------------------+ | :meth:`Fields ` | Returns all the fields. | +-------------------------------------------------------------------------+-------------------------+ | :meth:`Fields ` | Returns all the fields. | +-------------------------------------------------------------------------+-------------------------+ | :meth:`Fields ` | Returns all the fields. | +-------------------------------------------------------------------------+-------------------------+ | :meth:`Fields ` | Returns all the fields. | +-------------------------------------------------------------------------+-------------------------+ | :meth:`Fields ` | Returns all the fields. | +-------------------------------------------------------------------------+-------------------------+ | :meth:`Id ` | Returns the identifier. | +-------------------------------------------------------------------------+-------------------------+ | :meth:`Id ` | Returns the identifier. | +-------------------------------------------------------------------------+-------------------------+ | :meth:`Id ` | Returns the identifier. | +-------------------------------------------------------------------------+-------------------------+ | :meth:`Id ` | Returns the identifier. | +-------------------------------------------------------------------------+-------------------------+ | :meth:`Id ` | Returns the identifier. | +-------------------------------------------------------------------------+-------------------------+ | :meth:`Id ` | Returns the identifier. | +-------------------------------------------------------------------------+-------------------------+ Static Methods ++++++++++++++ +------------------------------------------------------------------------------------------+-------------------------+ | staticmethod | truncated documentation | +==========================================================================================+=========================+ | :py:meth:`_format_value ` | | +------------------------------------------------------------------------------------------+-------------------------+ | :py:meth:`_format_value ` | | +------------------------------------------------------------------------------------------+-------------------------+ | :py:meth:`_format_value ` | | +------------------------------------------------------------------------------------------+-------------------------+ | :py:meth:`_format_value ` | | +------------------------------------------------------------------------------------------+-------------------------+ | :py:meth:`_format_value ` | | +------------------------------------------------------------------------------------------+-------------------------+ | :py:meth:`_format_value ` | | +------------------------------------------------------------------------------------------+-------------------------+ Methods +++++++ +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | method | truncated documentation | +=============================================================================================+===================================================================+ | :py:meth:`__getitem__ ` | Returns the value associated to a field. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__getitem__ ` | Retrieves the question. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__getitem__ ` | Returns the value associated to a field. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__getitem__ ` | Returns the value associated to a field. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__getitem__ ` | Returns the value associated to a field. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__getitem__ ` | Returns the value associated to a field. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__iter__ ` | To iterate on activities. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__len__ ` | Returns the number of activities. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__repr__ ` | Usual | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__repr__ ` | Usual | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__repr__ ` | Usual | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__repr__ ` | Usual | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__repr__ ` | Usual | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`__repr__ ` | Usual | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`expected_answers ` | Returns the expected answers aliases. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`get_display_item ` | Returns a displayable number. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`get_next ` | Computes the next question or returns None if does not exist. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`get_previous ` | Computes the previous question or returns None if does not exist. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`to_dict ` | Returns all values as a dictionary. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`to_dict ` | Returns all values as a dictionary. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`to_dict ` | Returns all values as a dictionary. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`to_dict ` | Returns all values as a dictionary. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`to_dict ` | Returns all values as a dictionary. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :meth:`to_dict ` | Returns all values as a dictionary. | +---------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mathenjeu.activities.base_classes :members: :special-members: __init__ :show-inheritance: