package com.iailab.netsdk.lib.enumeration;

/**
 * �㊥���闈�羝��号�ヨ⑥膸����主瓜��
 */
public enum NET_RADIOMETRY_RESULT {

    /**
     * ����
     */
    NET_RADIOMETRY_RESULT_UNKNOWN(0, "����"),
    /**
     * �隙���
     */
    NET_RADIOMETRY_RESULT_VAL(1, "�隙���"),
    /**
     * ��紊�
     */
    NET_RADIOMETRY_RESULT_MAX(2, "��紊�"),
    /**
     * ��絨�
     */
    NET_RADIOMETRY_RESULT_MIN(3, "��絨�"),
    /**
     * 綛喝��
     */
    NET_RADIOMETRY_RESULT_AVR(4, "綛喝��"),
    /**
     * ����
     */
    NET_RADIOMETRY_RESULT_STD(5, "����"),
    /**
     * 筝㊨��
     */
    NET_RADIOMETRY_RESULT_MID(6, "筝㊨��"),
    /**
     * ISO
     */
    NET_RADIOMETRY_RESULT_ISO(7, "ISO"),
    /**
     * 羝�勲
     */
    NET_RADIOMETRY_RESULT_DIFF(8, "羝�勲"),
    /**
     * ����
     */
    NET_RADIOMETRY_RESULT_SLOPE(9, "����");

    private int value;
    private String note;

    NET_RADIOMETRY_RESULT(int givenValue, String note) {
        this.value = givenValue;
        this.note = note;
    }

    public String getNote() {
        return note;
    }

    public int getValue() {
        return value;
    }

    public static String getNoteByValue(int givenValue) {
        for (NET_RADIOMETRY_RESULT enumType : NET_RADIOMETRY_RESULT.values()) {
            if (givenValue == enumType.getValue()) {
                return enumType.getNote();
            }
        }
        return null;
    }

    public static int getValueByNote(String givenNote) {
        for (NET_RADIOMETRY_RESULT enumType : NET_RADIOMETRY_RESULT.values()) {
            if (givenNote.equals(enumType.getNote())) {
                return enumType.getValue();
            }
        }
        return -1;
    }

}