#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Nov 29 21:59:08 2020
@author: maurer
"""
from datetime import datetime
from typing import List
physFlowTableName = 'physical_flow'
[docs]
class Filter:
def __init__(self, begin: datetime, end: datetime, groupby='day'):
self.begin = begin
self.end = end
self.groupby = groupby
[docs]
class EntsogDataManager:
[docs]
def connectionpoints(self):
pass
[docs]
def interconnections(self):
'''
interconnections which are in one of the balancingZones
to be determined whats useful hiere (coming from, to or both)
'''
pass
[docs]
def balancingzones(self):
"""
returns a list of balancing zones.
also known as bidding zones
"""
pass
[docs]
def operators(self):
'''
returns a list of operators
'''
pass
[docs]
def operatorpointdirections(self):
'''
returns the result of the operatorpointdirections request
'''
pass
[docs]
def operationaldata(self, operatorKeys: List[str], filt: Filter, group_by: List[str] = ['directionkey'], table=physFlowTableName):
'''
returns timeseries data of the given Indicator
'''
pass
[docs]
def operationaldataByPoints(self, points: List[str], filt: Filter, group_by: List[str] = ['directionkey'], table=physFlowTableName):
pass
[docs]
def operatorsByBZ(self, bz: str):
pass
[docs]
def bilanz(self, operatorKeys: List[str], filt: Filter, table=physFlowTableName):
pass
[docs]
def crossborder(self, operatorKeys: List[str], filt: Filter, group_by: List[str] = ['t.directionkey', 'opd.adjacentzones', 'opd.adjacentcountry'], table=physFlowTableName):
pass