All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.farao_community.farao.swe.runner.app.domain.SweDichotomyResult Maven / Gradle / Ivy

There is a newer version: 1.27.2
Show newest version
/*
 * Copyright (c) 2023, RTE (http://www.rte-france.com)
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package com.farao_community.farao.swe.runner.app.domain;

import com.farao_community.farao.dichotomy.api.results.DichotomyResult;
import com.farao_community.farao.gridcapa_swe_commons.dichotomy.DichotomyDirection;
import com.powsybl.openrao.monitoring.voltagemonitoring.VoltageMonitoringResult;

import java.util.Optional;

/**
 * @author Theo Pascoli {@literal }
 */
public class SweDichotomyResult {

    private final DichotomyDirection dichotomyDirection;
    private final DichotomyResult dichotomyResult;
    private final Optional voltageMonitoringResult;
    private final String exportedCgmesUrl;
    private final String highestValidStepUrl;
    private final String lowestInvalidStepUrl;

    public SweDichotomyResult(DichotomyDirection dichotomyDirection,
                              DichotomyResult dichotomyResult,
                              Optional voltageMonitoringResult,
                              String exportedCgmesUrl,
                              String highestValidStepUrl,
                              String lowestInvalidStepUrl) {
        this.dichotomyDirection = dichotomyDirection;
        this.dichotomyResult = dichotomyResult;
        this.voltageMonitoringResult = voltageMonitoringResult;
        this.exportedCgmesUrl = exportedCgmesUrl;
        this.highestValidStepUrl = highestValidStepUrl;
        this.lowestInvalidStepUrl = lowestInvalidStepUrl;
    }

    public DichotomyDirection getDichotomyDirection() {
        return dichotomyDirection;
    }

    public DichotomyResult getDichotomyResult() {
        return dichotomyResult;
    }

    public Optional getVoltageMonitoringResult() {
        return voltageMonitoringResult;
    }

    public String getExportedCgmesUrl() {
        return exportedCgmesUrl;
    }

    public String getHighestValidStepUrl() {
        return highestValidStepUrl;
    }

    public String getLowestInvalidStepUrl() {
        return lowestInvalidStepUrl;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy