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