ModelManager#

class wattson.cosimulation.models.model_manager.ModelManager#

Bases: WattsonQueryHandler

Methods

__init__

get_model

get_model_types

get_models

handle_simulation_control_query

Handles the given WattsonQuery and provides an optional response.

handles_simulation_query_type

Checks whether the physical simulator handles specific SimulationControlQueries.

load_from_file

register_model

__init__()#
handle_simulation_control_query(query: WattsonQuery) WattsonResponse | None#

Handles the given WattsonQuery and provides an optional response. If the query type is not supported, this should raise an InvalidSimulationControlQueryException.

Parameters:

query (WattsonQuery) –

handles_simulation_query_type(query: WattsonQuery | Type[WattsonQuery]) bool#

Checks whether the physical simulator handles specific SimulationControlQueries.

Parameters:

query (Union[WattsonQuery, Type[WattsonQuery]]) – The query instance or class to be checked.

Returns:

Whether this simulator can handle this query type

Return type:

bool