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