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