DSIMA
 All Classes Namespaces Files Functions Variables
Agent Class Reference

Abstract class of an agent. More...

Inheritance diagram for Agent:
Collaboration diagram for Agent:

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...
 

Detailed Description

Abstract class of an agent.

Constructor & Destructor Documentation

def __init__ (   self)

Default constructor.

Member Function Documentation

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.

Parameters
dataData needed for the action.
layerCurrent layer.
def id (   self)

Get the agent's id.

def initialize (   self,
  data 
)

Initialize the agent and create its set of personal data.

Parameters
dataData.

Member Data Documentation

__metaclass__ = ABCMeta
staticprivate
int _agentsNumber = 0
staticprivate

Total number of agents.

_id
private

Unique identifier of the agent.


The documentation for this class was generated from the following file: