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

com.powsybl.simulation.ImpactAnalysisResult Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
/**
 * Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium)
 * 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.powsybl.simulation;

import com.powsybl.simulation.securityindexes.SecurityIndex;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 *
 * @author Geoffroy Jamgotchian 
 */
public class ImpactAnalysisResult {

    private final Map metrics;

    private final List securityIndexes;

    public ImpactAnalysisResult(Map metrics) {
        this(metrics, new ArrayList<>());
    }

    public ImpactAnalysisResult(Map metrics, List securityIndexes) {
        this.metrics = metrics;
        this.securityIndexes = securityIndexes;
    }

    public Map getMetrics() {
        return metrics;
    }

    public void addSecurityIndex(SecurityIndex index) {
        securityIndexes.add(index);
    }

    public List getSecurityIndexes() {
        return securityIndexes;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy