Layer of the system.
More...
Layer of the system.
List the agents belonging to one layer.
def __init__ |
( |
|
self, |
|
|
|
agentList = [] , |
|
|
|
name = "" |
|
) |
| |
Default constructor.
- Parameters
-
agentList | Initial list of agents in the layer. |
name | Name of the layer. |
Perform the action of all agents in the layer.
The data are modified by the actions of the agent.
- Parameters
-
data | Data needed for the action. |
def addAgent |
( |
|
self, |
|
|
|
agent |
|
) |
| |
Add an agent to the agent list.
- Parameters
-
Get the list of agents in the layer.
- Returns
- List of agents
def removeAgent |
( |
|
self, |
|
|
|
agent |
|
) |
| |
Remove an agent from the agent list.
- Parameters
-
def rename |
( |
|
self, |
|
|
|
name = "" |
|
) |
| |
Rename the layer.
- Parameters
-
name | New name. If an empty name is given the new name is "Layer #id". |
Unique identifier of the layer.
The documentation for this class was generated from the following file: