LOCA::SaveEigenData::Factory Class Reference

Factory for creating strategy objects to save eigenvectors/values. More...

#include <LOCA_SaveEigenData_Factory.H>

Collaboration diagram for LOCA::SaveEigenData::Factory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Factory (const Teuchos::RCP< LOCA::GlobalData > &global_data)
 Constructor.
virtual ~Factory ()
 Destructor.
Teuchos::RCP< LOCA::SaveEigenData::AbstractStrategycreate (const Teuchos::RCP< LOCA::Parameter::SublistParser > &topParams, const Teuchos::RCP< Teuchos::ParameterList > &eigenParams)
 Create strategy to save eigenvectors/values.
const string & strategyName (Teuchos::ParameterList &eigenParams) const
 Return strategy name given by eigenParams.

Protected Attributes

Teuchos::RCP< LOCA::GlobalDataglobalData
 Global data.

Detailed Description

Factory for creating strategy objects to save eigenvectors/values.

The parameters passed to the create() through the eigenParams argument method should specify the "Method" as described below, as well as any additional parameters for the particular strategy.

User-defined strategies are defined by supplying the parameter "User-Defined Save Eigen Data Name" which is the string name of the strategy, and then a parameter with this name that is of the type Teuchos::RCP<LOCA::SaveEigenData::AbstractStrategy>. This allows the user to supply a user-defined strategy without providing a factory to instantiate it. By supplying the name of the parameter storing the strategy, the user can provide multiple strategies in the parameter list and select among them by setting "User-Defined Save Eigen Data Name" to be the name of the strategy.


Member Function Documentation

Teuchos::RCP< LOCA::SaveEigenData::AbstractStrategy > LOCA::SaveEigenData::Factory::create ( const Teuchos::RCP< LOCA::Parameter::SublistParser > &  topParams,
const Teuchos::RCP< Teuchos::ParameterList > &  eigenParams 
)

Create strategy to save eigenvectors/values.

Parameters:
topParams [in] Parsed top-level parameter list.
eigenParams [in] Eigensolver parameters as described above


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:41:58 2010 for NOX by  doxygen 1.4.7