Kami models (
- class indra.assemblers.kami.assembler.KamiAssembler(statements=None)[source]¶
- make_model(policies=None, initial_conditions=True, reverse_effects=False)[source]¶
Assemble the Kami model from the collected INDRA Statements.
This method assembles a Kami model from the set of INDRA Statements. The assembled model is both returned and set as the assembler’s model argument.
policies (Optional[Union[str, dict]]) – A string or dictionary of policies, as defined in
indra.assemblers.KamiAssembler. This set of policies locally supersedes the default setting in the assembler. This is useful when this function is called multiple times with different policies.
initial_conditions (Optional[bool]) – If True, default initial conditions are generated for the agents in the model.
model – The assembled Kami model.
- Return type
- class indra.assemblers.kami.assembler.Nugget(id, name, rate)[source]¶
Represents a Kami Nugget.
- add_node(name_base, attrs=None)[source]¶
Add a node with a given base name to the Nugget and return ID.