SysCallApplicInterface Class Reference

using system calls. More...

Inheritance diagram for SysCallApplicInterface:

ApplicationInterface Interface List of all members.

Public Member Functions

 SysCallApplicInterface (const ProblemDescDB &problem_db)
 constructor
 ~SysCallApplicInterface ()
 destructor
void derived_map (const Variables &vars, const ActiveSet &set, Response &response, int fn_eval_id)
 that is specific to a derived class.
void derived_map_asynch (const ParamResponsePair &pair)
 asynchronous evaluation that is specific to a derived class.
void derived_synch (PRPList &prp_list)
void derived_synch_nowait (PRPList &prp_list)
int derived_synchronous_local_analysis (const int &analysis_id)
const StringArrayanalysis_drivers () const
 retrieve the analysis drivers specification for application interfaces

Private Member Functions

void spawn_application (const bool block_flag)
 and output filter. Called from derived_map() & derived_map_asynch().
void derived_synch_kernel (PRPList &prp_list)
 derived_synch_nowait()
bool system_call_file_test (const String &root_file)
 the necessary results file(s)

Private Attributes

SysCallAnalysisCode sysCallSimulator
 to a CommandShell in various combinations
IntSet sysCallSet
 system call evaluations
IntShortMap failCountMap
 map linking function evaluation id's to number of response read failures

Detailed Description

using system calls.

SysCallApplicInterface uses a SysCallAnalysisCode object for performing simulation invocations.


Member Function Documentation

void derived_synch ( PRPList prp_list  )  [inline, virtual]

Check for completion of active asynch jobs (tracked with sysCallSet). Wait for at least one completion and complete all jobs that have returned. This satisifies a "fairness" principle, in the sense that a completed job will _always_ be processed (whereas accepting only a single completion could always accept the same completion - the case of very inexpensive fn. evals. - and starve some servers).

Reimplemented from ApplicationInterface.

void derived_synch_nowait ( PRPList prp_list  )  [inline, virtual]

Check for completion of active asynch jobs (tracked with sysCallSet). Make one pass through sysCallSet & complete all jobs that have returned.

Reimplemented from ApplicationInterface.

int derived_synchronous_local_analysis ( const int &  analysis_id  )  [inline, virtual]

This code provides the derived function used by ApplicationInterface::serve_analyses_synch().

Reimplemented from ApplicationInterface.


The documentation for this class was generated from the following files:
Generated on Wed Nov 5 19:54:07 2008 for DAKOTA by  doxygen 1.5.1