Package bpsim

Enum TimeUnit

  • All Implemented Interfaces:
    Serializable, Comparable<TimeUnit>, org.eclipse.emf.common.util.Enumerator

    public enum TimeUnit
    extends Enum<TimeUnit>
    implements org.eclipse.emf.common.util.Enumerator
    A representation of the literals of the enumeration 'Time Unit', and utility methods for working with them.
    See Also:
    BpsimPackage.getTimeUnit()
    Generated code
    Model
    extendedMetaData="name='TimeUnit'"
    • Enum Constant Detail

      • MS

        public static final TimeUnit MS
        The 'Ms' literal object.
        See Also:
        MS_VALUE
        Generated code
        Ordered
      • S

        public static final TimeUnit S
        The 'S' literal object.
        See Also:
        S_VALUE
        Generated code
        Ordered
      • MIN

        public static final TimeUnit MIN
        The 'Min' literal object.
        See Also:
        MIN_VALUE
        Generated code
        Ordered
      • HOUR

        public static final TimeUnit HOUR
        The 'Hour' literal object.
        See Also:
        HOUR_VALUE
        Generated code
        Ordered
      • DAY

        public static final TimeUnit DAY
        The 'Day' literal object.
        See Also:
        DAY_VALUE
        Generated code
        Ordered
      • YEAR

        public static final TimeUnit YEAR
        The 'Year' literal object.
        See Also:
        YEAR_VALUE
        Generated code
        Ordered
    • Field Detail

      • MS_VALUE

        public static final int MS_VALUE
        The 'Ms' literal value.

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

        See Also:
        MS, Constant Field Values
        Generated code
        Model
        name="ms"
        Ordered
      • S_VALUE

        public static final int S_VALUE
        The 'S' literal value.

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

        See Also:
        S, Constant Field Values
        Generated code
        Model
        name="s"
        Ordered
      • MIN_VALUE

        public static final int MIN_VALUE
        The 'Min' literal value.

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

        See Also:
        MIN, Constant Field Values
        Generated code
        Model
        name="min"
        Ordered
      • HOUR_VALUE

        public static final int HOUR_VALUE
        The 'Hour' literal value.

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

        See Also:
        HOUR, Constant Field Values
        Generated code
        Model
        name="hour"
        Ordered
      • DAY_VALUE

        public static final int DAY_VALUE
        The 'Day' literal value.

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

        See Also:
        DAY, Constant Field Values
        Generated code
        Model
        name="day"
        Ordered
      • YEAR_VALUE

        public static final int YEAR_VALUE
        The 'Year' literal value.

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

        See Also:
        YEAR, Constant Field Values
        Generated code
        Model
        name="year"
        Ordered
      • VALUES

        public static final List<TimeUnit> VALUES
        A public read-only list of all the 'Time Unit' enumerators.
        Generated code
    • Method Detail

      • values

        public static TimeUnit[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TimeUnit c : TimeUnit.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TimeUnit valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • get

        public static TimeUnit get​(String literal)
        Returns the 'Time Unit' literal with the specified literal value.
        Generated code
      • getByName

        public static TimeUnit getByName​(String name)
        Returns the 'Time Unit' literal with the specified name.
        Generated code
      • get

        public static TimeUnit get​(int value)
        Returns the 'Time Unit' literal with the specified integer value.
        Generated code
      • getValue

        public int getValue()
        Specified by:
        getValue in interface org.eclipse.emf.common.util.Enumerator
        Generated code
      • getName

        public String getName()
        Specified by:
        getName in interface org.eclipse.emf.common.util.Enumerator
        Generated code
      • getLiteral

        public String getLiteral()
        Specified by:
        getLiteral in interface org.eclipse.emf.common.util.Enumerator
        Generated code
      • toString

        public String toString()
        Returns the literal value of the enumerator, which is its string representation.
        Overrides:
        toString in class Enum<TimeUnit>
        Generated code