com.powsybl.openloadflow.network.AbstractLfShunt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powsybl-open-loadflow Show documentation
Show all versions of powsybl-open-loadflow Show documentation
An open source loadflow based on PowSyBl
The 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/.
* SPDX-License-Identifier: MPL-2.0
*/
package com.powsybl.openloadflow.network;
import com.powsybl.openloadflow.util.Evaluable;
import com.powsybl.openloadflow.util.EvaluableConstants;
/**
* @author Geoffroy Jamgotchian {@literal }
*/
public abstract class AbstractLfShunt extends AbstractElement implements LfShunt {
private Evaluable q = EvaluableConstants.NAN;
private Evaluable p = EvaluableConstants.NAN;
protected AbstractLfShunt(LfNetwork network) {
super(network);
}
@Override
public Evaluable getQ() {
return q;
}
@Override
public void setQ(Evaluable q) {
this.q = q;
}
@Override
public Evaluable getP() {
return p;
}
@Override
public void setP(Evaluable p) {
this.p = p;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy