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