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