#include <APPSPACK_Executor_Serial.hpp>
Inheritance diagram for APPSPACK::Executor::Serial:
Serial implementation of the Executor::Interface. Mainly useful for testing. There are no workers; instead, each evaluations is performed when the spawn() function is called and stored until the recv() function is called to retrieve the result.
Definition at line 55 of file APPSPACK_Executor_Serial.hpp.
Public Member Functions | |
Serial (Evaluator::Interface &evaluator_in) | |
Constructor. | |
virtual | ~Serial () |
Destructor. | |
virtual bool | isWaiting () const |
Return true if the executor is waiting for more points to be spawned. | |
virtual bool | spawn (const Vector &x_in, int tag_in) |
Start a function evaluation for the given point with the given integer tag. | |
virtual int | recv (int &tag_out, bool &isF_out, double &f_out, string &msg_out) |
Check to see if any function evaluations have finished and return the relevant information. | |
virtual void | print () const |
Optional print function to print out information about the executor. | |
Private Attributes | |
Evaluator::Interface & | evaluator |
Interface to object that computes the actual function evaluation. | |
bool | isFree |
Is the executor currently busy? | |
int | tag |
Tag of current point, if any. | |
bool | isF |
True if a function value exists. | |
double | f |
The function value. | |
string | msg |
The message. |
|
Constructor. Definition at line 40 of file APPSPACK_Executor_Serial.cpp. |
|
Destructor. Definition at line 63 of file APPSPACK_Executor_Serial.hpp. |
|
Return true if the executor is waiting for more points to be spawned.
Implements APPSPACK::Executor::Interface. Definition at line 46 of file APPSPACK_Executor_Serial.cpp. References isFree. |
|
Start a function evaluation for the given point with the given integer tag. This function should not be called without checking isNotFull() first. However, if it is called but the executor is already full, this method will return false. Implements APPSPACK::Executor::Interface. Definition at line 51 of file APPSPACK_Executor_Serial.cpp. References evaluator, f, isF, isFree, msg, tag, and APPSPACK::Vector. |
|
Check to see if any function evaluations have finished and return the relevant information. If a function evaluation has completed, fill in the references that are passed to the function as follows.
Implements APPSPACK::Executor::Interface. Definition at line 63 of file APPSPACK_Executor_Serial.cpp. |
|
Optional print function to print out information about the executor.
Reimplemented from APPSPACK::Executor::Interface. Definition at line 77 of file APPSPACK_Executor_Serial.cpp. References evaluator, and APPSPACK::Evaluator::Interface::print(). |
|
Interface to object that computes the actual function evaluation. Definition at line 80 of file APPSPACK_Executor_Serial.hpp. |
|
Is the executor currently busy? Definition at line 83 of file APPSPACK_Executor_Serial.hpp. Referenced by isWaiting(), recv(), and spawn(). |
|
Tag of current point, if any. Definition at line 86 of file APPSPACK_Executor_Serial.hpp. |
|
True if a function value exists. Definition at line 89 of file APPSPACK_Executor_Serial.hpp. |
|
The function value. Definition at line 92 of file APPSPACK_Executor_Serial.hpp. |
|
The message. Definition at line 95 of file APPSPACK_Executor_Serial.hpp. |
© Sandia Corporation | Site Contact | Privacy and Security
Generated on Wed Dec 14 18:41:05 2005 for APPSPACK 4.0.2 by
1.3.8 written by Dimitri van Heesch,
© 1997-2002