/
node_models.py
70 lines (56 loc) · 1.9 KB
/
node_models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright (c) 2020-2023 by Fraunhofer Institute for Energy Economics
# and Energy System Technology (IEE), Kassel, and University of Kassel. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
from pandapipes.component_models.abstract_models.base_component import Component
try:
import pandaplan.core.pplog as logging
except ImportError:
import logging
logger = logging.getLogger(__name__)
class NodeComponent(Component):
"""
"""
@classmethod
def table_name(cls):
raise NotImplementedError
@classmethod
def create_node_lookups(cls, net, ft_lookups, table_lookup, idx_lookups, current_start,
current_table, internal_nodes_lookup):
"""
Function which creates node lookups.
:param net: The pandapipes network
:type net: pandapipesNet
:param ft_lookups:
:type ft_lookups:
:param table_lookup:
:type table_lookup:
:param idx_lookups:
:type idx_lookups:
:param current_start:
:type current_start:
:param current_table:
:type current_table:
:param internal_nodes_lookup:
:type internal_nodes_lookup:
:return: No Output.
"""
raise NotImplementedError
@classmethod
def create_pit_node_entries(cls, net, node_pit):
"""
:param net: The pandapipes network
:type net: pandapipesNet
:param node_pit:
:type node_pit:
:return: No Output.
"""
raise NotImplementedError
@classmethod
def get_component_input(cls):
raise NotImplementedError
@classmethod
def get_result_table(cls, net):
raise NotImplementedError
@classmethod
def extract_results(cls, net, options, branch_results, nodes_connected, branches_connected):
raise NotImplementedError