nenok
Enum Architecture

java.lang.Object
  extended by java.lang.Enum<Architecture>
      extended by nenok.Architecture
All Implemented Interfaces:
Serializable, Comparable<Architecture>

public enum Architecture
extends Enum<Architecture>

This class serves as a simplified user interface to choose local computation architectures.

Version:
$LastChangedRevision: 549 $
$LastChangedDate: 2008-03-26 14:11:16 +0100 (Mi, 26 Mrz 2008) $
Author:
Marc Pouly

Enum Constant Summary
Binary_Shenoy_Shafer
          The binary Shenoy-Shafer architecture.
Dynamic_Programming
          The dynamic programming architecture.
Hugin
          The Hugin architecture.
Idempotent
          The idempotent architecture.
Lauritzen_Spiegelhalter
          The Lauritzen-Spiegelhalter architecture.
Shenoy_Shafer
          The n-ary Shenoy-Shafer architecture.
 
Method Summary
 JoinTree getInstance(Knowledgebase kb, Collection<Domain> queries, Algorithm algo)
          This method maps enum types on new jointree instances.
 String getName()
           
static Architecture valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Architecture[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Shenoy_Shafer

public static final Architecture Shenoy_Shafer
The n-ary Shenoy-Shafer architecture.


Binary_Shenoy_Shafer

public static final Architecture Binary_Shenoy_Shafer
The binary Shenoy-Shafer architecture.


Lauritzen_Spiegelhalter

public static final Architecture Lauritzen_Spiegelhalter
The Lauritzen-Spiegelhalter architecture.


Hugin

public static final Architecture Hugin
The Hugin architecture.


Idempotent

public static final Architecture Idempotent
The idempotent architecture.


Dynamic_Programming

public static final Architecture Dynamic_Programming
The dynamic programming architecture.

Method Detail

values

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

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

valueOf

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

getInstance

public JoinTree getInstance(Knowledgebase kb,
                            Collection<Domain> queries,
                            Algorithm algo)
                     throws ConstrException
This method maps enum types on new jointree instances.

Parameters:
kb - The knowledgebase for the new jointree.
queries - The query list for the new jointree.
algo - The construction algorithm to build the jointree.
Returns:
A new jointree instance constructed from the above data by use of algo.
Throws:
ConstrException - Exceptions thrown by the jointree construction process.

getName

public String getName()
Returns:
The name of the architecture represented by this enum type.