ILOG JRules

ilog.rules.studio.model.ruleflow
Enum IlrAlgorithmKind

java.lang.Object
  extended by java.lang.Enum<IlrAlgorithmKind>
      extended by ilog.rules.studio.model.ruleflow.IlrAlgorithmKind
All Implemented Interfaces:
Serializable, Comparable<IlrAlgorithmKind>, Enumerator

public enum IlrAlgorithmKind
extends Enum<IlrAlgorithmKind>
implements Enumerator

A representation of the literals of the enumeration 'Algorithm Kind', and utility methods for working with them. Each algorithm kind is a value that corresponds to the index of the object in the array of predefined values VALUES.

The algorithm kind value is used to set the algorithm of an IlrRuleTask (IlrRuleTask.setAlgorithm(IlrAlgorithmKind)). The algorithm controls the election mechanism of rules in the rule task.

See Also:
ilog.rules.studio.model.ruleflow.IlrRuleflowPackage#getIlrAlgorithmKind()

Enum Constant Summary
DEFAULT_LITERAL
          The 'Default' literal object.
SEQUENTIAL_LITERAL
          The 'Sequential' literal object.
 
Field Summary
static int DEFAULT
          The 'Default' literal value.
static int SEQUENTIAL
          The 'Sequential' literal value.
static List<IlrAlgorithmKind> VALUES
          A public read-only list of all the 'Algorithm Kind' enumerators.
 
Method Summary
static IlrAlgorithmKind get(int value)
          Returns the 'Algorithm Kind' literal with the specified integer value.
static IlrAlgorithmKind get(String literal)
          Returns the 'Algorithm Kind' literal with the specified literal value.
static IlrAlgorithmKind getByName(String name)
          Returns the 'Algorithm Kind' 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 IlrAlgorithmKind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IlrAlgorithmKind[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT_LITERAL

public static final IlrAlgorithmKind DEFAULT_LITERAL
The 'Default' literal object.

The 'default' algorithm corresponds to the RETE.

See Also:
DEFAULT

SEQUENTIAL_LITERAL

public static final IlrAlgorithmKind SEQUENTIAL_LITERAL
The 'Sequential' literal object.

The 'sequential' value correspond to a sequential execution for the IlrRuleTask.

See Also:
SEQUENTIAL
Field Detail

DEFAULT

public static final int DEFAULT
The 'Default' literal value.

See Also:
DEFAULT_LITERAL, Constant Field Values

SEQUENTIAL

public static final int SEQUENTIAL
The 'Sequential' literal value.

See Also:
SEQUENTIAL_LITERAL, Constant Field Values

VALUES

public static final List<IlrAlgorithmKind> VALUES
A public read-only list of all the 'Algorithm Kind' enumerators.

Method Detail

values

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

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

valueOf

public static IlrAlgorithmKind 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.)

Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name

get

public static IlrAlgorithmKind get(String literal)
Returns the 'Algorithm Kind' literal with the specified literal value.


getByName

public static IlrAlgorithmKind getByName(String name)
Returns the 'Algorithm Kind' literal with the specified name.


get

public static IlrAlgorithmKind get(int value)
Returns the 'Algorithm Kind' literal with the specified integer value.


getValue

public int getValue()

Specified by:
getValue in interface Enumerator

getName

public String getName()

Specified by:
getName in interface Enumerator

getLiteral

public String getLiteral()

Specified by:
getLiteral in interface Enumerator

toString

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

Overrides:
toString in class Enum<IlrAlgorithmKind>

ILOG JRules