Entity Emitter

This module contains the definition of entity emitters. It has the abstract definition of EntityEmitter that defines an abstract method to generate entities.

Example

Creating an entity emitter:

class NewEntityEmitter(EntityEmitter):

    _count: int = 0

    def generate(self) -> Entity:
        self._count += 1
        return Model(str(count))
class gsf.core.entity.core.entity_emitter.EntityEmitter

Bases: object

Emitter of new entities

abstract generate()gsf.core.entity.core.entity.Entity

Generates an entity