DSIMA
|
Abstract class of an agent. More...
Public Member Functions | |
def | __init__ |
Default constructor. More... | |
def | id |
Get the agent's id. More... | |
def | initialize |
Initialize the agent and create its set of personal data. More... | |
def | act |
Perform the action of the agent. More... | |
def | __repr__ |
def | __str__ |
Private Attributes | |
_id | |
Unique identifier of the agent. More... | |
Static Private Attributes | |
__metaclass__ = ABCMeta | |
int | _agentsNumber = 0 |
Total number of agents. More... | |
Abstract class of an agent.
def __init__ | ( | self | ) |
Default constructor.
def __repr__ | ( | self | ) |
def __str__ | ( | self | ) |
def act | ( | self, | |
data, | |||
layer | |||
) |
Perform the action of the agent.
The data are modified by the actions of the agent.
data | Data needed for the action. |
layer | Current layer. |
def id | ( | self | ) |
Get the agent's id.
def initialize | ( | self, | |
data | |||
) |
Initialize the agent and create its set of personal data.
data | Data. |
|
staticprivate |
|
staticprivate |
Total number of agents.
|
private |
Unique identifier of the agent.