hera_sim.componentsΒΆ

A module providing discoverability features for hera_sim.

Functions

component(cls)

Decorator to create a new SimulationComponent that tracks its models.

get_all_components([with_aliases])

Get a dictionary of component names mapping to a dictionary of models.

get_all_models([with_aliases])

Get a dictionary of model names mapping to their classes for all possible models.

get_model(mdl[, cmp])

Get a particular model, based on its name.

get_models(cmp[, with_aliases])

Get a dict of model names mapping to model classes for a particular component.

list_all_components([with_aliases])

Lists all discoverable components.

Classes

SimulationComponent(**kwargs)

Base class for defining simulation component models.