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