Brain.py 528 B

12345678910111213141516
  1. from core.Models import Singleton
  2. @Singleton
  3. class Brain:
  4. # TODO review the Singleton, should be Instantiate at the BrainLoader level
  5. """
  6. This Class is a Singleton Representing the Brain.yml file with synapse
  7. .. note:: the is_loaded Boolean is True when the Brain has been properly loaded.
  8. """
  9. def __init__(self, synapses=None, brain_file=None, brain_yaml=None):
  10. self.synapses = synapses
  11. self.brain_file = brain_file
  12. self.brain_yaml = brain_yaml
  13. self.is_loaded = False