de.cau.cs.kieler.core.kexpressions
Enum CombineOperator

java.lang.Object
  extended by java.lang.Enum<CombineOperator>
      extended by de.cau.cs.kieler.core.kexpressions.CombineOperator
All Implemented Interfaces:
Comparable<CombineOperator>, Enumerator

public enum CombineOperator
extends Enum<CombineOperator>
implements Enumerator

A representation of the literals of the enumeration 'Combine Operator', and utility methods for working with them. Built-in operators that can be used as Signal combine operators.

See Also:
KExpressionsPackage.getCombineOperator()
Rating red
Generated:
This code was automatically generated.
Model element

Enum Constant Summary
ADD
          The 'ADD' literal object.
AND
          The 'AND' literal object.
HOST
          The 'HOST' literal object.
MAX
          The 'MAX' literal object.
MIN
          The 'MIN' literal object.
MULT
          The 'MULT' literal object.
NONE
          The 'NONE' literal object.
OR
          The 'OR' literal object.
 
Field Summary
static int ADD_VALUE
          The 'ADD' literal value.
static int AND_VALUE
          The 'AND' literal value.
static int HOST_VALUE
          The 'HOST' literal value.
static int MAX_VALUE
          The 'MAX' literal value.
static int MIN_VALUE
          The 'MIN' literal value.
static int MULT_VALUE
          The 'MULT' literal value.
static int NONE_VALUE
          The 'NONE' literal value.
static int OR_VALUE
          The 'OR' literal value.
static List<CombineOperator> VALUES
          A public read-only list of all the 'Combine Operator' enumerators.
 
Method Summary
static CombineOperator get(int value)
          Returns the 'Combine Operator' literal with the specified integer value.
static CombineOperator get(String literal)
          Returns the 'Combine Operator' literal with the specified literal value.
static CombineOperator getByName(String name)
          Returns the 'Combine Operator' literal with the specified name.
 String getLiteral()
           
 String getName()
           
 int getValue()
           
 String toString()
          Returns the literal value of the enumerator, which is its string representation.
static CombineOperator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CombineOperator[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final CombineOperator NONE
The 'NONE' literal object.

See Also:
NONE_VALUE
Generated:
This code was automatically generated.
Ordered

ADD

public static final CombineOperator ADD
The 'ADD' literal object.

See Also:
ADD_VALUE
Generated:
This code was automatically generated.
Ordered

MULT

public static final CombineOperator MULT
The 'MULT' literal object.

See Also:
MULT_VALUE
Generated:
This code was automatically generated.
Ordered

MAX

public static final CombineOperator MAX
The 'MAX' literal object.

See Also:
MAX_VALUE
Generated:
This code was automatically generated.
Ordered

MIN

public static final CombineOperator MIN
The 'MIN' literal object.

See Also:
MIN_VALUE
Generated:
This code was automatically generated.
Ordered

OR

public static final CombineOperator OR
The 'OR' literal object.

See Also:
OR_VALUE
Generated:
This code was automatically generated.
Ordered

AND

public static final CombineOperator AND
The 'AND' literal object.

See Also:
AND_VALUE
Generated:
This code was automatically generated.
Ordered

HOST

public static final CombineOperator HOST
The 'HOST' literal object.

See Also:
HOST_VALUE
Generated:
This code was automatically generated.
Ordered
Field Detail

NONE_VALUE

public static final int NONE_VALUE
The 'NONE' literal value. Specifies that no combine operator is given.

See Also:
NONE, Constant Field Values
Generated:
This code was automatically generated.
Model element
Ordered

ADD_VALUE

public static final int ADD_VALUE
The 'ADD' literal value. Arithmetic addition.

See Also:
ADD, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=+
Ordered

MULT_VALUE

public static final int MULT_VALUE
The 'MULT' literal value. Arithmetic multiplication.

See Also:
MULT, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=*
Ordered

MAX_VALUE

public static final int MAX_VALUE
The 'MAX' literal value. The maximum function. Takes the greater of the given two.

See Also:
MAX, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=max
Ordered

MIN_VALUE

public static final int MIN_VALUE
The 'MIN' literal value. The minimum function. Takes the lesser of the given two.

See Also:
MIN, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=min
Ordered

OR_VALUE

public static final int OR_VALUE
The 'OR' literal value. Logical or function for boolean valued signals.

See Also:
OR, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=or
Ordered

AND_VALUE

public static final int AND_VALUE
The 'AND' literal value. Logical and for boolean valued signals.

See Also:
AND, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=and
Ordered

HOST_VALUE

public static final int HOST_VALUE
The 'HOST' literal value. Specifies that no built-in combine operator should be used but the operator given in the hostCombineOperator field given as a String and referencing some function of the host language (maybe C or Java, etc. ) .

See Also:
HOST, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=host
Ordered

VALUES

public static final List<CombineOperator> VALUES
A public read-only list of all the 'Combine Operator' enumerators.

Generated:
This code was automatically generated.
Method Detail

values

public static CombineOperator[] 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 (CombineOperator c : CombineOperator.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CombineOperator 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 CombineOperator get(String literal)
Returns the 'Combine Operator' literal with the specified literal value.

Generated:
This code was automatically generated.

getByName

public static CombineOperator getByName(String name)
Returns the 'Combine Operator' literal with the specified name.

Generated:
This code was automatically generated.

get

public static CombineOperator get(int value)
Returns the 'Combine Operator' literal with the specified integer value.

Generated:
This code was automatically generated.

getValue

public int getValue()

Specified by:
getValue in interface Enumerator
Generated:
This code was automatically generated.

getName

public String getName()

Specified by:
getName in interface Enumerator
Generated:
This code was automatically generated.

getLiteral

public String getLiteral()

Specified by:
getLiteral in interface Enumerator
Generated:
This code was automatically generated.

toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<CombineOperator>
Generated:
This code was automatically generated.