Entity Manager

This module contains the definition of entity managers. It has the definition of the EntityManager and a static instance of the class.

Example

Creating an entity manager:

manager = EntityManager()
class gsf.core.entity.core.entity_manager.EntityManager

Bases: object

Manager of entities.

It controls the names used by entities.

_saved_names

List of entities saved.

Type

Set[str]

name_already_exists(name: str)

Checks if the name is already in use.

remove(name: str)

Replaces the name with a new name.

replace_name(new_name: str, old_name: Optional[str] = None)

Replaces the name with a new name.

gsf.core.entity.core.entity_manager.static_entity_manager = <gsf.core.entity.core.entity_manager.EntityManager object>

Static entity manager.