trumania.components package

Submodules

trumania.components.db module

This is just the provider of the IO methods save and retrieve various simulation components to/from persistence.

A namespace defines a place where to put objects that belong together (typically, from the same scenario or component, e.g. “Uganda”).

trumania.components.db.create_namespace(namespace)[source]
trumania.components.db.csv_item_path(folder, item_id)[source]
trumania.components.db.is_namespace_existing(namespace)[source]
trumania.components.db.json_item_path(folder, item_id)[source]
trumania.components.db.list_generators(namespace)[source]
trumania.components.db.list_populations(namespace)[source]
trumania.components.db.load_empirical_discrete_generator(namespace, gen_id, seed)[source]
trumania.components.db.load_generator(namespace, gen_type, gen_id)[source]
trumania.components.db.load_population(namespace, population_id, circus)[source]
trumania.components.db.load_timer_gen_config(namespace, timer_gen_id)[source]
trumania.components.db.namespace_folder(namespace)[source]
trumania.components.db.population_folder(namespace, population_id)[source]
trumania.components.db.remove_namespace(namespace)[source]
trumania.components.db.save_empirical_discrete_generator(distribution, values, namespace, gen_id)[source]
trumania.components.db.save_generator(generator, namespace, gen_id)[source]
trumania.components.db.save_population(population, namespace, population_id)[source]
trumania.components.db.save_timer_gen(timer_gen, namespace, timer_gen_id)[source]

Module contents