com.powsybl.openrao.searchtreerao.result.impl.EmptyFlowResultImpl Maven / Gradle / Ivy
/*
* Copyright (c) 2021, 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.powsybl.openrao.searchtreerao.result.impl;
import com.powsybl.openrao.commons.Unit;
import com.powsybl.openrao.data.crac.api.Instant;
import com.powsybl.openrao.data.crac.api.State;
import com.powsybl.openrao.data.crac.api.cnec.FlowCnec;
import com.powsybl.iidm.network.TwoSides;
import com.powsybl.openrao.data.raoresult.api.ComputationStatus;
import com.powsybl.openrao.searchtreerao.result.api.FlowResult;
import java.util.Collections;
import java.util.Map;
/**
* @author Joris Mancini {@literal }
*/
public class EmptyFlowResultImpl implements FlowResult {
@Override
public double getFlow(FlowCnec flowCnec, TwoSides side, Unit unit) {
return Double.NaN;
}
@Override
public double getFlow(FlowCnec flowCnec, TwoSides side, Unit unit, Instant instant) {
return Double.NaN;
}
@Override
public double getCommercialFlow(FlowCnec flowCnec, TwoSides side, Unit unit) {
return Double.NaN;
}
@Override
public double getPtdfZonalSum(FlowCnec flowCnec, TwoSides side) {
return Double.NaN;
}
@Override
public Map> getPtdfZonalSums() {
return Collections.emptyMap();
}
@Override
public double getMargin(FlowCnec flowCnec, Unit unit) {
return Double.NaN;
}
@Override
public ComputationStatus getComputationStatus() {
return ComputationStatus.DEFAULT;
}
@Override
public ComputationStatus getComputationStatus(State state) {
return ComputationStatus.DEFAULT;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy