p3j.simulation
Enum ExecutionMode

java.lang.Object
  extended by java.lang.Enum<ExecutionMode>
      extended by p3j.simulation.ExecutionMode
All Implemented Interfaces:
Serializable, Comparable<ExecutionMode>

public enum ExecutionMode
extends Enum<ExecutionMode>

Simple enumeration to easily summarise all execution modes.

Author:
Christina Bohk, Roland Ewald

Enum Constant Summary
EXHAUSTIVE
          Draw parameter instances in highest-overall-probability order.
MONTE_CARLO
          Draw parameter instances at random.
 
Field Summary
static String DESC_EXHAUSTIVE
          The string representation of the exhaustive method.
static String DESC_MONTE_CARLO
          The string representation of the monte-carlo method.
 
Method Summary
static ExecutionMode forString(String text)
          Gets the execution mode associated with the given text.
 String getFactoryName()
          Gets the parameter assignment generator factory name for a given execution name.
 String toString()
           
static ExecutionMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ExecutionMode[] 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

MONTE_CARLO

public static final ExecutionMode MONTE_CARLO
Draw parameter instances at random.


EXHAUSTIVE

public static final ExecutionMode EXHAUSTIVE
Draw parameter instances in highest-overall-probability order.

Field Detail

DESC_MONTE_CARLO

public static final String DESC_MONTE_CARLO
The string representation of the monte-carlo method.

See Also:
Constant Field Values

DESC_EXHAUSTIVE

public static final String DESC_EXHAUSTIVE
The string representation of the exhaustive method.

See Also:
Constant Field Values
Method Detail

values

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

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

valueOf

public static ExecutionMode 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

toString

public String toString()
Overrides:
toString in class Enum<ExecutionMode>

forString

public static ExecutionMode forString(String text)
Gets the execution mode associated with the given text.

Parameters:
text - the text (retrievable via toString())
Returns:
the execution mode associated with the given text, null if none was found

getFactoryName

public String getFactoryName()
Gets the parameter assignment generator factory name for a given execution name.

Returns:
the parameter assignment generator factory name


Copyright © 2012. All Rights Reserved.