DSIMA
 All Classes Namespaces Files Functions Variables
EphemeralLayer Class Reference

Layer of the system that is acting only on a limited number of iterations. More...

Inheritance diagram for EphemeralLayer:
Collaboration diagram for EphemeralLayer:

Public Member Functions

def __init__
 Default constructor. More...
 
def act
 Perform the action of all agents in the layer. More...
 

Public Attributes

 iterationLimit
 Number of iterations that the layer acts. More...
 

Private Attributes

 _it
 Number of iterations performed. More...
 

Detailed Description

Layer of the system that is acting only on a limited number of iterations.

Constructor & Destructor Documentation

def __init__ (   self,
  agentList = [],
  name = "",
  itLimit = 1 
)

Default constructor.

Parameters
agentListInitial list of agents in the layer.
nameName of the layer.
itLimitNumber of iterations that the layer acts.

Member Function Documentation

def act (   self,
  data 
)

Perform the action of all agents in the layer.

The data are modified by the actions of the agent.

Parameters
dataData needed for the action.

Member Data Documentation

_it
private

Number of iterations performed.

iterationLimit

Number of iterations that the layer acts.


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