DSIMA
|
Abstract class of a state agent. More...
Public Member Functions | |
def | __init__ |
def | initialize |
Create the set of personal data of the state agent. More... | |
def | act |
Perform the action of the agent. More... | |
def | rename |
Rename the agent. More... | |
def | __str__ |
Public Attributes | |
name | |
Actor name. More... | |
Static Private Attributes | |
__metaclass__ = ABCMeta | |
Abstract class of a state agent.
A state agent is an agent with a list of numeric state variables which may be checked for convergence.
def __init__ | ( | self, | |
name = "" |
|||
) |
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 initialize | ( | self, | |
data | |||
) |
Create the set of personal data of the state agent.
In particular it creates its personal dictionary of variables referenced by its name (
data | Data. |
def rename | ( | self, | |
name = "" |
|||
) |
Rename the agent.
name | New name. If an empty name is given the new name is "Agent #id". |
|
staticprivate |
name |
Actor name.