package com.njcn.pojo.balance;

import com.sun.jna.Structure;

import java.util.List;

//单个监测点的暂降事件计算评价指标
public class QtIdx extends Structure {
    public float r_esm; // 暂降幅值
    public int sarfi_90; // sarifi-90
    public int sarifi_50; // sarifi-50
    public float r_asei; // 暂降能量
    public float r_assi; // 严重程度

    public static class ByReference extends QtIdx implements Structure.ByReference {

    }

    public static class ByValue extends QtIdx implements Structure.ByValue {

    }

    @Override
    protected List getFieldOrder() {
        return null;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof QtIdx))
            return false;
        if (this == obj)
            return true;

        QtIdx instance = (QtIdx) obj;

        return (r_esm == instance.r_esm) && (sarfi_90 == instance.sarfi_90) && (sarifi_50 == instance.sarifi_50) && (r_asei == instance.r_asei) && (r_assi == instance.r_assi);
    }
}
