DSIMA
 All Classes Namespaces Files Functions Variables
AbstractSystem Class Reference

Abstract agent-based system. More...

Inheritance diagram for AbstractSystem:
Collaboration diagram for AbstractSystem:

Public Member Functions

def __init__
 Constructor. More...
 
def initializeAgents
 Internal method which inialize the agents of the system. More...
 
def setMaximumIterations
 Set the maximum number of iterations. More...
 
def run
 Run the system. More...
 
def hasConverged
 Define if the system has converged based on the data gathered at the end of the last layer. More...
 

Public Attributes

 iterations
 Current number of iterations. More...
 
 data
 Data structure. More...
 
 layerList
 Ordered list of layers of the system. More...
 

Private Attributes

 _maxIterations
 Maximum number of iterations. More...
 

Static Private Attributes

 __metaclass__ = ABCMeta
 

Detailed Description

Abstract agent-based system.

Constructor & Destructor Documentation

def __init__ (   self,
  maximumIterations = 1000 
)

Constructor.

Parameters
maximumIterationsNew maximum number of iterations.

Member Function Documentation

def hasConverged (   self)

Define if the system has converged based on the data gathered at the end of the last layer.

Returns
None if the system has not converged.
def initializeAgents (   self)

Internal method which inialize the agents of the system.

def run (   self)

Run the system.

Returns
Information of the system convergence.
def setMaximumIterations (   self,
  maximumIterations 
)

Set the maximum number of iterations.

Parameters
maximumIterationsNew maximum number of iterations.

Member Data Documentation

__metaclass__ = ABCMeta
staticprivate
_maxIterations
private

Maximum number of iterations.

data

Data structure.

iterations

Current number of iterations.

layerList

Ordered list of layers of the system.


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