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

com.powsybl.openloadflow.network.AbstractLfShunt Maven / Gradle / Ivy

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