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