Public Member Functions | Protected Member Functions | Private Attributes
SingleModel Class Reference

Derived model class which utilizes a single interface to map variables into responses. More...

Inheritance diagram for SingleModel:
Model

List of all members.

Public Member Functions

 SingleModel (ProblemDescDB &problem_db)
 constructor
 ~SingleModel ()
 destructor

Protected Member Functions

Interfaceinterface ()
 return userDefinedInterface
void derived_compute_response (const ActiveSet &set)
 portion of compute_response() specific to SingleModel (invokes a synchronous map() on userDefinedInterface)
void derived_asynch_compute_response (const ActiveSet &set)
 portion of asynch_compute_response() specific to SingleModel (invokes an asynchronous map() on userDefinedInterface)
const IntResponseMap & derived_synchronize ()
 portion of synchronize() specific to SingleModel (invokes synch() on userDefinedInterface)
const IntResponseMap & derived_synchronize_nowait ()
 portion of synchronize_nowait() specific to SingleModel (invokes synch_nowait() on userDefinedInterface)
void component_parallel_mode (short mode)
 SingleModel only supports parallelism in userDefinedInterface, so this virtual function redefinition is simply a sanity check.
String local_eval_synchronization ()
 return userDefinedInterface synchronization setting
int local_eval_concurrency ()
 return userDefinedInterface asynchronous evaluation concurrency
bool derived_master_overload () const
 flag which prevents overloading the master with a multiprocessor evaluation (request forwarded to userDefinedInterface)
void derived_init_communicators (const int &max_iterator_concurrency, bool recurse_flag=true)
 set up SingleModel for parallel operations (request forwarded to userDefinedInterface)
void derived_init_serial ()
 set up SingleModel for serial operations (request forwarded to userDefinedInterface).
void derived_set_communicators (const int &max_iterator_concurrency, bool recurse_flag=true)
 set active parallel configuration for the SingleModel (request forwarded to userDefinedInterface)
void derived_free_communicators (const int &max_iterator_concurrency, bool recurse_flag=true)
 deallocate communicator partitions for the SingleModel (request forwarded to userDefinedInterface)
void serve ()
 Service userDefinedInterface job requests received from the master. Completes when a termination message is received from stop_servers().
void stop_servers ()
 executed by the master to terminate userDefinedInterface server operations when SingleModel iteration is complete.
const Stringinterface_id () const
 return the userDefinedInterface identifier
int evaluation_id () const
 return the current evaluation id for the SingleModel (request forwarded to userDefinedInterface)
bool evaluation_cache () const
 return flag indicated usage of an evaluation cache by the SingleModel (request forwarded to userDefinedInterface)
void set_evaluation_reference ()
 set the evaluation counter reference points for the SingleModel (request forwarded to userDefinedInterface)
void fine_grained_evaluation_counters ()
 request fine-grained evaluation reporting within the userDefinedInterface
void print_evaluation_summary (std::ostream &s, bool minimal_header=false, bool relative_count=true) const
 print the evaluation summary for the SingleModel (request forwarded to userDefinedInterface)

Private Attributes

Interface userDefinedInterface
 the interface used for mapping variables to responses

Detailed Description

Derived model class which utilizes a single interface to map variables into responses.

The SingleModel class is the simplest of the derived model classes. It provides the capabilities of the original Model class, prior to the development of surrogate and nested model extensions. The derived response computation and synchronization functions utilize a single interface to perform the function evaluations.


The documentation for this class was generated from the following files: