Home | Trees | Indices | Help |
|
---|
|
object --+ | dict --+ | Multiagent.MultiagentSystem --+ | GenericSociety
A taxonomy of generic agent models
In essence, a generic society is simply a dictionary of GenericModel objects. You can manipulate the society through the following operations:
society = GenericSociety()
society.addMember(model)
model = society[name]
society.members()
society.leaves()
society.leafModels()
del society[model.name]
society.keys()
society.items()
entity = society.instantiate(className,instanceName)
|
|||
new empty dictionary |
|
||
|
|||
|
|||
|
|||
str[] |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
network a dictionary representation of the descendent relationships in this society |
|||
root a list of all of the root models in this society |
|
|||
Inherited from |
|
Initializes a collection to contain the given list of agents
|
Adds the agent to this collection
Warning: will clobber any pre-existing agent with the same name |
|
|
del x[y]
|
|
Extracts society elements from the provided XML Document
|
Updates society from dictionary-style hierarchy
|
Returns a new instantiated agent model
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Aug 19 16:47:41 2009 | http://epydoc.sourceforge.net |