001package jmri.jmrix.ipocs.protocol.enums;
002
003/**
004 * @author Fredrik Elestedt Copyright (C) 2020
005 * @since 4.21.2
006 */
007public enum RqAlarmState {
008  Active(1),
009  NotPresent(2),
010  Transient(3);
011
012  public final byte value;
013
014  private RqAlarmState(int value) {
015    this.value = (byte)value;
016  }
017
018  public static RqAlarmState valueOf(byte value) {
019    for (RqAlarmState e : values()) {
020      if (e.value == value) {
021        return e;
022      }
023    }
024    return null;
025  }
026}