All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bpsim.ResultType Maven / Gradle / Ivy

There is a newer version: 7.74.1.Final
Show newest version
/*
 * Copyright 2015 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

/**
 */
package bpsim;

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

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

/**
 * 
 * A representation of the literals of the enumeration 'Result Type',
 * and utility methods for working with them.
 * 
 * @see bpsim.BpsimPackage#getResultType()
 * @model extendedMetaData="name='ResultType'"
 * @generated
 */
public enum ResultType implements Enumerator {
	/**
	 * The 'Min' literal object.
	 * 
	 * 
	 * @see #MIN_VALUE
	 * @generated
	 * @ordered
	 */
	MIN(0, "min", "min"),

	/**
	 * The 'Max' literal object.
	 * 
	 * 
	 * @see #MAX_VALUE
	 * @generated
	 * @ordered
	 */
	MAX(1, "max", "max"),

	/**
	 * The 'Mean' literal object.
	 * 
	 * 
	 * @see #MEAN_VALUE
	 * @generated
	 * @ordered
	 */
	MEAN(2, "mean", "mean"),

	/**
	 * The 'Count' literal object.
	 * 
	 * 
	 * @see #COUNT_VALUE
	 * @generated
	 * @ordered
	 */
	COUNT(3, "count", "count"),

	/**
	 * The 'Sum' literal object.
	 * 
	 * 
	 * @see #SUM_VALUE
	 * @generated
	 * @ordered
	 */
	SUM(4, "sum", "sum");

	/**
	 * The 'Min' literal value.
	 * 
	 * 

* If the meaning of 'Min' literal object isn't clear, * there really should be more of a description here... *

* * @see #MIN * @model name="min" * @generated * @ordered */ public static final int MIN_VALUE = 0; /** * The 'Max' literal value. * *

* If the meaning of 'Max' literal object isn't clear, * there really should be more of a description here... *

* * @see #MAX * @model name="max" * @generated * @ordered */ public static final int MAX_VALUE = 1; /** * The 'Mean' literal value. * *

* If the meaning of 'Mean' literal object isn't clear, * there really should be more of a description here... *

* * @see #MEAN * @model name="mean" * @generated * @ordered */ public static final int MEAN_VALUE = 2; /** * The 'Count' literal value. * *

* If the meaning of 'Count' literal object isn't clear, * there really should be more of a description here... *

* * @see #COUNT * @model name="count" * @generated * @ordered */ public static final int COUNT_VALUE = 3; /** * The 'Sum' literal value. * *

* If the meaning of 'Sum' literal object isn't clear, * there really should be more of a description here... *

* * @see #SUM * @model name="sum" * @generated * @ordered */ public static final int SUM_VALUE = 4; /** * An array of all the 'Result Type' enumerators. * * * @generated */ private static final ResultType[] VALUES_ARRAY = new ResultType[] { MIN, MAX, MEAN, COUNT, SUM, }; /** * A public read-only list of all the 'Result Type' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Result Type' literal with the specified literal value. * * * @generated */ public static ResultType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ResultType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Result Type' literal with the specified name. * * * @generated */ public static ResultType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ResultType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Result Type' literal with the specified integer value. * * * @generated */ public static ResultType get(int value) { switch (value) { case MIN_VALUE: return MIN; case MAX_VALUE: return MAX; case MEAN_VALUE: return MEAN; case COUNT_VALUE: return COUNT; case SUM_VALUE: return SUM; } return null; } /** * * * @generated */ private final int value; /** * * * @generated */ private final String name; /** * * * @generated */ private final String literal; /** * Only this class can construct instances. * * * @generated */ private ResultType(int value, String name, String literal) { this.value = value; this.name = name; this.literal = literal; } /** * * * @generated */ public int getValue() { return value; } /** * * * @generated */ public String getName() { return name; } /** * * * @generated */ public String getLiteral() { return literal; } /** * Returns the literal value of the enumerator, which is its string representation. * * * @generated */ @Override public String toString() { return literal; } } //ResultType




© 2015 - 2025 Weber Informatics LLC | Privacy Policy