/**
 * generated by Xtext 2.16.0
 */
package be.uantwerpen.cosys.contractLang;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>SAHARA Property Enum</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see be.uantwerpen.cosys.contractLang.ContractLangPackage#getSAHARAPropertyEnum()
 * @model
 * @generated
 */
public enum SAHARAPropertyEnum implements Enumerator
{
  /**
   * The '<em><b>Accel</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #ACCEL_VALUE
   * @generated
   * @ordered
   */
  ACCEL(0, "accel", "accel"),

  /**
   * The '<em><b>Speed</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #SPEED_VALUE
   * @generated
   * @ordered
   */
  SPEED(1, "speed", "speed"),

  /**
   * The '<em><b>Friction force</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #FRICTION_FORCE_VALUE
   * @generated
   * @ordered
   */
  FRICTION_FORCE(2, "friction_force", "friction_force"),

  /**
   * The '<em><b>Lateral force</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #LATERAL_FORCE_VALUE
   * @generated
   * @ordered
   */
  LATERAL_FORCE(3, "lateral_force", "lateral_force");

  /**
   * The '<em><b>Accel</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Accel</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #ACCEL
   * @model name="accel"
   * @generated
   * @ordered
   */
  public static final int ACCEL_VALUE = 0;

  /**
   * The '<em><b>Speed</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Speed</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #SPEED
   * @model name="speed"
   * @generated
   * @ordered
   */
  public static final int SPEED_VALUE = 1;

  /**
   * The '<em><b>Friction force</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Friction force</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #FRICTION_FORCE
   * @model name="friction_force"
   * @generated
   * @ordered
   */
  public static final int FRICTION_FORCE_VALUE = 2;

  /**
   * The '<em><b>Lateral force</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Lateral force</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #LATERAL_FORCE
   * @model name="lateral_force"
   * @generated
   * @ordered
   */
  public static final int LATERAL_FORCE_VALUE = 3;

  /**
   * An array of all the '<em><b>SAHARA Property Enum</b></em>' enumerators.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private static final SAHARAPropertyEnum[] VALUES_ARRAY =
    new SAHARAPropertyEnum[]
    {
      ACCEL,
      SPEED,
      FRICTION_FORCE,
      LATERAL_FORCE,
    };

  /**
   * A public read-only list of all the '<em><b>SAHARA Property Enum</b></em>' enumerators.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static final List<SAHARAPropertyEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

  /**
   * Returns the '<em><b>SAHARA Property Enum</b></em>' literal with the specified literal value.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @param literal the literal.
   * @return the matching enumerator or <code>null</code>.
   * @generated
   */
  public static SAHARAPropertyEnum get(String literal)
  {
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
    {
      SAHARAPropertyEnum result = VALUES_ARRAY[i];
      if (result.toString().equals(literal))
      {
        return result;
      }
    }
    return null;
  }

  /**
   * Returns the '<em><b>SAHARA Property Enum</b></em>' literal with the specified name.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @param name the name.
   * @return the matching enumerator or <code>null</code>.
   * @generated
   */
  public static SAHARAPropertyEnum getByName(String name)
  {
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
    {
      SAHARAPropertyEnum result = VALUES_ARRAY[i];
      if (result.getName().equals(name))
      {
        return result;
      }
    }
    return null;
  }

  /**
   * Returns the '<em><b>SAHARA Property Enum</b></em>' literal with the specified integer value.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @param value the integer value.
   * @return the matching enumerator or <code>null</code>.
   * @generated
   */
  public static SAHARAPropertyEnum get(int value)
  {
    switch (value)
    {
      case ACCEL_VALUE: return ACCEL;
      case SPEED_VALUE: return SPEED;
      case FRICTION_FORCE_VALUE: return FRICTION_FORCE;
      case LATERAL_FORCE_VALUE: return LATERAL_FORCE;
    }
    return null;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final int value;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final String name;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final String literal;

  /**
   * Only this class can construct instances.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private SAHARAPropertyEnum(int value, String name, String literal)
  {
    this.value = value;
    this.name = name;
    this.literal = literal;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public int getValue()
  {
    return value;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String getName()
  {
    return name;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String getLiteral()
  {
    return literal;
  }

  /**
   * Returns the literal value of the enumerator, which is its string representation.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String toString()
  {
    return literal;
  }
  
} //SAHARAPropertyEnum
