Coupling

class geojson_modelica_translator.model_connectors.couplings.coupling.Coupling(model_a, model_b)

Bases: object

A Coupling represents a connection/relationship between two models (e.g. a load and ets). More specifically, is used to create the required components and connections between two models.

__init__(model_a, model_b)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(model_a, model_b)

Initialize self.

get_other_model(model)

Returns the other model in the coupling

render_templates(template_params)

Renders the shared components and connect statements for the coupling.

to_dict()

Attributes

component_definitions_template_path

connect_statements_template_path

id

model_a

model_b

get_other_model(model)

Returns the other model in the coupling

Parameters

model – Model

Returns

Model

render_templates(template_params)

Renders the shared components and connect statements for the coupling.

Parameters

template_params – dict, parameters for the templates

Returns

dict, containing key, values: component_definitions, string; connect_statements, string