import json


class Config:
    def __init__(self, file):
        self.__config = {}

        self.__openFileToJSON(file)

    # Opens a configuration file
    # return a JSON object
    def __openFileToJSON(self, file):
        self.__config = json.load(
            open(file)
        )

    def getRoomX(self):
        return self.__config['room']['width']

    def getRoomY(self):
        return self.__config['room']['length']

    def getNumberOfSensors(self):
        return self.__config['sensors']['number']

    def getMaxDifference(self):
        return self.__config['humans']['max_offset']

    def getSensorXOffset(self):
        return self.__config['sensors']['offset']['x']

    def getSensorYOffset(self):
        return self.__config['sensors']['offset']['y']

    def getImage(self, image):
        return self.__config['images'][image]

    def getMqttIp(self):
        return self.__config['mqtt']['ip']

    def getMqttPort(self):
        return self.__config['mqtt']['port']

    def getMqttTopic(self):
        return self.__config['mqtt']['topic']

    def getXMultiplier(self):
        return self.__config['pixel_size_multiplier']['x']

    def getYMultiplier(self):
        return self.__config['pixel_size_multiplier']['y']

    def getSensorLocations(self):
        return self.__config['sensors']['locations']

    def getHistorianFolder(self):
        return self.__config['historian']['folder']

    def getHistorianFilePrefix(self):
        return self.__config['historian']['file_prefix']

    def getHistorianHeaders(self):
        return self.__config['historian']['headerFields']

    def getAverageHeatmapTemp(self):
        return self.__config['heatmap']['average temp']

    def getTempLimit(self):
        return self.__config['tempWarning']['maxTemp']

    def getOpeningTime(self):
        return self.__config["openingHours"]["openingTime"]

    def getClosingTime(self):
        return self.__config["openingHours"]["closingTime"]

    def getSocialDistancing(self):
        return self.__config["socialDistancing"]["minDistance"]

5359a8c4d5777c325d63110db7180467def68297
<mask token>


class Config:
    <mask token>

    def __openFileToJSON(self, file):
        self.__config = json.load(open(file))

    def getRoomX(self):
        return self.__config['room']['width']

    def getRoomY(self):
        return self.__config['room']['length']
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def getMqttIp(self):
        return self.__config['mqtt']['ip']

    def getMqttPort(self):
        return self.__config['mqtt']['port']

    def getMqttTopic(self):
        return self.__config['mqtt']['topic']
    <mask token>
    <mask token>

    def getSensorLocations(self):
        return self.__config['sensors']['locations']

    def getHistorianFolder(self):
        return self.__config['historian']['folder']

    def getHistorianFilePrefix(self):
        return self.__config['historian']['file_prefix']
    <mask token>

    def getAverageHeatmapTemp(self):
        return self.__config['heatmap']['average temp']
    <mask token>

    def getOpeningTime(self):
        return self.__config['openingHours']['openingTime']

    def getClosingTime(self):
        return self.__config['openingHours']['closingTime']

    def getSocialDistancing(self):
        return self.__config['socialDistancing']['minDistance']

<mask token>


class Config:
    <mask token>

    def __openFileToJSON(self, file):
        self.__config = json.load(open(file))

    def getRoomX(self):
        return self.__config['room']['width']

    def getRoomY(self):
        return self.__config['room']['length']

    def getNumberOfSensors(self):
        return self.__config['sensors']['number']

    def getMaxDifference(self):
        return self.__config['humans']['max_offset']

    def getSensorXOffset(self):
        return self.__config['sensors']['offset']['x']
    <mask token>

    def getImage(self, image):
        return self.__config['images'][image]

    def getMqttIp(self):
        return self.__config['mqtt']['ip']

    def getMqttPort(self):
        return self.__config['mqtt']['port']

    def getMqttTopic(self):
        return self.__config['mqtt']['topic']

    def getXMultiplier(self):
        return self.__config['pixel_size_multiplier']['x']
    <mask token>

    def getSensorLocations(self):
        return self.__config['sensors']['locations']

    def getHistorianFolder(self):
        return self.__config['historian']['folder']

    def getHistorianFilePrefix(self):
        return self.__config['historian']['file_prefix']

    def getHistorianHeaders(self):
        return self.__config['historian']['headerFields']

    def getAverageHeatmapTemp(self):
        return self.__config['heatmap']['average temp']
    <mask token>

    def getOpeningTime(self):
        return self.__config['openingHours']['openingTime']

    def getClosingTime(self):
        return self.__config['openingHours']['closingTime']

    def getSocialDistancing(self):
        return self.__config['socialDistancing']['minDistance']

<mask token>


class Config:

    def __init__(self, file):
        self.__config = {}
        self.__openFileToJSON(file)

    def __openFileToJSON(self, file):
        self.__config = json.load(open(file))

    def getRoomX(self):
        return self.__config['room']['width']

    def getRoomY(self):
        return self.__config['room']['length']

    def getNumberOfSensors(self):
        return self.__config['sensors']['number']

    def getMaxDifference(self):
        return self.__config['humans']['max_offset']

    def getSensorXOffset(self):
        return self.__config['sensors']['offset']['x']
    <mask token>

    def getImage(self, image):
        return self.__config['images'][image]

    def getMqttIp(self):
        return self.__config['mqtt']['ip']

    def getMqttPort(self):
        return self.__config['mqtt']['port']

    def getMqttTopic(self):
        return self.__config['mqtt']['topic']

    def getXMultiplier(self):
        return self.__config['pixel_size_multiplier']['x']

    def getYMultiplier(self):
        return self.__config['pixel_size_multiplier']['y']

    def getSensorLocations(self):
        return self.__config['sensors']['locations']

    def getHistorianFolder(self):
        return self.__config['historian']['folder']

    def getHistorianFilePrefix(self):
        return self.__config['historian']['file_prefix']

    def getHistorianHeaders(self):
        return self.__config['historian']['headerFields']

    def getAverageHeatmapTemp(self):
        return self.__config['heatmap']['average temp']
    <mask token>

    def getOpeningTime(self):
        return self.__config['openingHours']['openingTime']

    def getClosingTime(self):
        return self.__config['openingHours']['closingTime']

    def getSocialDistancing(self):
        return self.__config['socialDistancing']['minDistance']

<mask token>


class Config:

    def __init__(self, file):
        self.__config = {}
        self.__openFileToJSON(file)

    def __openFileToJSON(self, file):
        self.__config = json.load(open(file))

    def getRoomX(self):
        return self.__config['room']['width']

    def getRoomY(self):
        return self.__config['room']['length']

    def getNumberOfSensors(self):
        return self.__config['sensors']['number']

    def getMaxDifference(self):
        return self.__config['humans']['max_offset']

    def getSensorXOffset(self):
        return self.__config['sensors']['offset']['x']

    def getSensorYOffset(self):
        return self.__config['sensors']['offset']['y']

    def getImage(self, image):
        return self.__config['images'][image]

    def getMqttIp(self):
        return self.__config['mqtt']['ip']

    def getMqttPort(self):
        return self.__config['mqtt']['port']

    def getMqttTopic(self):
        return self.__config['mqtt']['topic']

    def getXMultiplier(self):
        return self.__config['pixel_size_multiplier']['x']

    def getYMultiplier(self):
        return self.__config['pixel_size_multiplier']['y']

    def getSensorLocations(self):
        return self.__config['sensors']['locations']

    def getHistorianFolder(self):
        return self.__config['historian']['folder']

    def getHistorianFilePrefix(self):
        return self.__config['historian']['file_prefix']

    def getHistorianHeaders(self):
        return self.__config['historian']['headerFields']

    def getAverageHeatmapTemp(self):
        return self.__config['heatmap']['average temp']

    def getTempLimit(self):
        return self.__config['tempWarning']['maxTemp']

    def getOpeningTime(self):
        return self.__config['openingHours']['openingTime']

    def getClosingTime(self):
        return self.__config['openingHours']['closingTime']

    def getSocialDistancing(self):
        return self.__config['socialDistancing']['minDistance']

import json


class Config:
    def __init__(self, file):
        self.__config = {}

        self.__openFileToJSON(file)

    # Opens a configuration file
    # return a JSON object
    def __openFileToJSON(self, file):
        self.__config = json.load(
            open(file)
        )

    def getRoomX(self):
        return self.__config['room']['width']

    def getRoomY(self):
        return self.__config['room']['length']

    def getNumberOfSensors(self):
        return self.__config['sensors']['number']

    def getMaxDifference(self):
        return self.__config['humans']['max_offset']

    def getSensorXOffset(self):
        return self.__config['sensors']['offset']['x']

    def getSensorYOffset(self):
        return self.__config['sensors']['offset']['y']

    def getImage(self, image):
        return self.__config['images'][image]

    def getMqttIp(self):
        return self.__config['mqtt']['ip']

    def getMqttPort(self):
        return self.__config['mqtt']['port']

    def getMqttTopic(self):
        return self.__config['mqtt']['topic']

    def getXMultiplier(self):
        return self.__config['pixel_size_multiplier']['x']

    def getYMultiplier(self):
        return self.__config['pixel_size_multiplier']['y']

    def getSensorLocations(self):
        return self.__config['sensors']['locations']

    def getHistorianFolder(self):
        return self.__config['historian']['folder']

    def getHistorianFilePrefix(self):
        return self.__config['historian']['file_prefix']

    def getHistorianHeaders(self):
        return self.__config['historian']['headerFields']

    def getAverageHeatmapTemp(self):
        return self.__config['heatmap']['average temp']

    def getTempLimit(self):
        return self.__config['tempWarning']['maxTemp']

    def getOpeningTime(self):
        return self.__config["openingHours"]["openingTime"]

    def getClosingTime(self):
        return self.__config["openingHours"]["closingTime"]

    def getSocialDistancing(self):
        return self.__config["socialDistancing"]["minDistance"]
