Human Modules
Major human module¶
Bases: CompositeModule
, HumanModule
, _LinkContainer
The Base Human Module.
Source code in abses/human.py
Human submodule¶
Bases: Module
The Human
sub-module base class.
Note
Look at this tutorial to understand the model structure.
Attributes:
Name | Type | Description |
---|---|---|
agents |
_AgentsContainer
|
The agents container of this ABSESpy model. |
collections |
Set[str]
|
Actor collections defined. |
Source code in abses/human.py
actors ¶
Different selections of agents
Source code in abses/human.py
define ¶
Define a query of actors and save it into collections.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
defined name of this group of actors. |
required |
selection |
Selection
|
Selection query of |
required |
Raises:
Type | Description |
---|---|
KeyError
|
If the name is already defined. |
Returns:
Type | Description |
---|---|
ActorsList[Actor]
|
The list of actors who are satisfied the query condition. |