DiagramNode

class geojson_modelica_translator.model_connectors.couplings.diagram.DiagramNode(context_id, model_name, model_type)

Bases: object

__init__(context_id, model_name, model_type)
Parameters
  • context_id – str, used for “grouping” nodes. E.g. this would be either the coupling id or the model id (depending on where the icon is declared)

  • model_name – str

  • model_type – str, general type of the component (e.g. load, network, etc)

Methods

__init__(context_id, model_name, model_type)

param context_id

str, used for "grouping" nodes. E.g. this would be

add_connection(this_port, other_node, other_port)

param this_port

str, name or dotted path of port for this node (should not start with '.' though)

add_connection(this_port, other_node, other_port)
Parameters
  • this_port – str, name or dotted path of port for this node (should not start with ‘.’ though)

  • other_node – DiagramNode, other node connecting to

  • other_port – str, name or dotted path of port for other node (should not start with ‘.’ though)