PsseTransformerImpedanceCorrectionPoint.java

/**
 * 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/.
 * SPDX-License-Identifier: MPL-2.0
 */
package com.powsybl.psse.model.pf;

import com.powsybl.psse.model.PsseVersioned;
import com.powsybl.psse.model.Revision;

/**
 * @author Luma Zamarre��o {@literal <zamarrenolm at aia.es>}
 * @author Jos�� Antonio Marqu��s {@literal <marquesja at aia.es>}
 */
public class PsseTransformerImpedanceCorrectionPoint extends PsseVersioned {
    private double t;

    @Revision(until = 33)
    private double f;

    @Revision(since = 35)
    private double ref;

    @Revision(since = 35)
    private double imf;

    public PsseTransformerImpedanceCorrectionPoint(double t, double f) {
        this.t = t;
        this.f = f;
    }

    public PsseTransformerImpedanceCorrectionPoint(double t, double ref, double imf) {
        this.t = t;
        this.ref = ref;
        this.imf = imf;
    }

    public double getT() {
        return t;
    }

    public double getF() {
        checkVersion("f");
        return f;
    }

    public double getRef() {
        checkVersion("ref");
        return ref;
    }

    public double getImf() {
        checkVersion("imf");
        return imf;
    }
}