sim_metric
GlobalMetricInterface Objects
class GlobalMetricInterface(ABC)
GlobalMetricInterface The GlobalMetricInterface is used to collect metrics from the simulation
collect_metric
@staticmethod
@abstractmethod
def collect_metric(
agents: list[AgentHelperInterface],
environments: list[EnvironmentHelperInterface],
simulation_state: SimulationStateHelperInterface) -> dict[str, Any]
Collect a metric from the simulation
Arguments:
agents
List[AgentHelperInterface] - A list of helpers that provide access to the agents' stateenvironments
List[EnvironmentHelperInterface] - A list of helpers that provide access to the environments' statesimulation_state
SimulationStateHelperInterface - A helper that provides access to the simulation's state
Returns:
Dict[str, Any]: The collected metric