DSIMA
|
Abstract agent-based system. More...
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 | |
Abstract agent-based system.
def __init__ | ( | self, | |
maximumIterations = 1000 |
|||
) |
Constructor.
maximumIterations | New maximum number of iterations. |
def hasConverged | ( | self | ) |
Define if the system has converged based on the data gathered at the end of the last layer.
def initializeAgents | ( | self | ) |
Internal method which inialize the agents of the system.
def run | ( | self | ) |
Run the system.
def setMaximumIterations | ( | self, | |
maximumIterations | |||
) |
Set the maximum number of iterations.
maximumIterations | New maximum number of iterations. |
|
staticprivate |
|
private |
Maximum number of iterations.
data |
Data structure.
iterations |
Current number of iterations.
layerList |
Ordered list of layers of the system.