pymasep.common.template
Submodules
Attributes
Classes
Template for a base object. A template is created from a dictionary |
Package Contents
- class pymasep.common.template.Template(game, template_dict)
Template for a base object. A template is created from a dictionary
name: name of the template name_base_object: name given to the created object if it is created from the template. If not given, name_base_object is set to name nature: the nature given the created object. May be None. created_class: the type of the BaseObject to create. Must be set value_type: for characteristics, the type of the value. default_value: default value for characteristic at the creation. May be none. subclass_template : name of sub template used to create sub BaseObject. These templates must already exist in the game controller: name of the class (full package name) to create a controller of an agent subclass_inheritance: list of template name used to inherit the subclass_templates
- Parameters:
game – The game where the template is created.
template_dict – The dictionary used to create the template
- name
- name_base_object
- nature
- created_class
- value_type
- default_value
- subclass_templates = []
- game
- controller
- pymasep.common.template.SYSTEM_TEMPLATES