com.powsybl.simulation.ImpactAnalysisResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powsybl-simulation-api Show documentation
Show all versions of powsybl-simulation-api Show documentation
The time domain simulation API
/**
* 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;
}
}