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

com.powsybl.psse.model.pf.PsseLoad Maven / Gradle / Ivy

There is a newer version: 6.6.0
Show newest version
/**
 * Copyright (c) 2020, 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;
import com.univocity.parsers.annotations.Parsed;

/**
 *
 * @author Geoffroy Jamgotchian {@literal }
 */
public class PsseLoad extends PsseVersioned {

    @Parsed(field = {"i", "ibus"})
    private int i;

    @Parsed(field = {"id", "loadid"}, defaultNullRead = "1")
    private String id;

    @Parsed(field = {"status", "stat"})
    private int status = 1;

    @Parsed
    private int area = -1;

    @Parsed
    private int zone = -1;

    @Parsed
    private double pl = 0;

    @Parsed
    private double ql = 0;

    @Parsed
    private double ip = 0;

    @Parsed
    private double iq = 0;

    @Parsed
    private double yp = 0;

    @Parsed
    private double yq = 0;

    @Parsed
    private int owner = -1;

    @Parsed
    private int scale = 1;

    @Parsed
    @Revision(since = 33)
    private int intrpt = 0;

    @Parsed
    @Revision(since = 35)
    private double dgenp = 0;

    @Parsed
    @Revision(since = 35)
    private double dgenq = 0;

    @Parsed
    @Revision(since = 35)
    private double dgenm = 0;

    @Parsed(defaultNullRead = "            ")
    @Revision(since = 35)
    private String loadtype;

    public int getI() {
        return i;
    }

    public void setI(int i) {
        this.i = i;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getArea() {
        return area;
    }

    public void setArea(int area) {
        this.area = area;
    }

    public int getZone() {
        return zone;
    }

    public void setZone(int zone) {
        this.zone = zone;
    }

    public double getPl() {
        return pl;
    }

    public void setPl(double pl) {
        this.pl = pl;
    }

    public double getQl() {
        return ql;
    }

    public void setQl(double ql) {
        this.ql = ql;
    }

    public double getIp() {
        return ip;
    }

    public void setIp(double ip) {
        this.ip = ip;
    }

    public double getIq() {
        return iq;
    }

    public void setIq(double iq) {
        this.iq = iq;
    }

    public double getYp() {
        return yp;
    }

    public void setYp(double yp) {
        this.yp = yp;
    }

    public double getYq() {
        return yq;
    }

    public void setYq(double yq) {
        this.yq = yq;
    }

    public int getOwner() {
        return owner;
    }

    public void setOwner(int owner) {
        this.owner = owner;
    }

    public int getScale() {
        return scale;
    }

    public void setScale(int scale) {
        this.scale = scale;
    }

    public int getIntrpt() {
        checkVersion("intrpt");
        return intrpt;
    }

    public void setIntrpt(int intrpt) {
        checkVersion("intrpt");
        this.intrpt = intrpt;
    }

    public double getDgenp() {
        checkVersion("dgenp");
        return dgenp;
    }

    public void setDgenp(double dgenp) {
        checkVersion("dgenp");
        this.dgenp = dgenp;
    }

    public double getDgenq() {
        checkVersion("dgenq");
        return dgenq;
    }

    public void setDgenq(double dgenq) {
        checkVersion("dgenq");
        this.dgenq = dgenq;
    }

    public double getDgenm() {
        checkVersion("dgenm");
        return dgenm;
    }

    public void setDgenm(double dgenm) {
        checkVersion("dgenm");
        this.dgenm = dgenm;
    }

    public String getLoadtype() {
        checkVersion("loadtype");
        return loadtype;
    }

    public void setLoadtype(String loadtype) {
        checkVersion("loadtype");
        this.loadtype = loadtype;
    }

    public PsseLoad copy() {
        PsseLoad copy = new PsseLoad();
        copy.i = this.i;
        copy.id = this.id;
        copy.status = this.status;
        copy.area = this.area;
        copy.zone = this.zone;
        copy.owner = this.owner;
        copy.pl = this.pl;
        copy.ql = this.ql;
        copy.ip = this.ip;
        copy.iq = this.iq;
        copy.yp = this.yp;
        copy.yq = this.yq;
        copy.owner = this.owner;
        copy.scale = this.scale;
        copy.intrpt = this.intrpt;
        copy.dgenp = this.dgenp;
        copy.dgenq = this.dgenq;
        copy.dgenm = this.dgenm;
        copy.loadtype = this.loadtype;
        return copy;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy