1 #ifndef PKG_ALIGNMENT___BLAST_JOBS__HPP
2 #define PKG_ALIGNMENT___BLAST_JOBS__HPP
85 void GetErrors(vector<string>& errors)
const;
120 const string& tool_name,
176 const vector<string>* RIDs =
NULL,
181 void GetErrors(vector<string>& errors)
const;
CBLASTParams - save user-specified parameters and preferences.
CDataLoadingAppJob - a base class for Jobs loading data into projects.
Base class to build jobs with cancel functionality.
CNetBlastLoadingJob - an application job for loading RIDs from NCBI Net BLAST server.
CProjectService - a service providing API for operations with Workspaces and Projects.
CProjectSelectOptions - describes how new Project Items shall be added to a workspace.
IServiceLocator - an abstract mechanism for locating services.
void GetErrors(vector< string > &errors) const
EJobState x_Run()
this functions performs real work every call to this function does pools each job once,...
virtual CRef< CObject > GetResult()
Returns the Job Result.
CRef< CNetBLASTUIDataSource > m_NetBlastDS
virtual CTimeSpan GetWaitPeriod()
returns a period of time after which the task shall be executed again
vector< CRef< CNetBlastJobDescriptor > > TDescriptors
void x_StartRetrivingTask(const vector< string > &RIDs)
virtual string GetDescr() const
Returns a human readable description of the Job (optional)
virtual EJobState Run()
Function that does all the useful work, called by the Engine.
void x_SetStatusText(const string &text)
vector< CRef< CNetBlastJobDescriptor > > TDescriptors
vector< string > m_Errors
TConstScopedObjects m_SeqLocs
virtual CRef< CObject > GetResult()
Returns the Job Result.
CNetBlastLoadingJob(CNetBLASTUIDataSource &ds, const vector< string > *RIDs=NULL, CScope *scope=NULL)
CNetBlastLoadingJob.
virtual CConstIRef< IAppJobError > GetError()
Returns IAppJobError object describing internal error that caused the Job to fail.
virtual void x_CreateProjectItems()
iterates on the given RIDs and creates Project Items or accumulates error
CNetBlastMonitoringJob(CNetBLASTUIDataSource &ds, IServiceLocator *srv_locator, const string &tool_name, TDescriptors &descriptors)
CNetBlastSubmittingJob.
CNetBlastSubmittingJob(string tool_name, const CBLASTParams ¶ms, CNetBLASTUIDataSource &ds)
CNetBlastSubmittingJob.
virtual CConstIRef< IAppJobError > GetError()
Returns IAppJobError object describing internal error that caused the Job to fail.
virtual void SetLoadingOptions(CSelectProjectOptions &options)
void x_Run()
this fucntions performs real work
virtual CConstIRef< IAppJobProgress > GetProgress()
return progress object, the function shall be synchronized internally.
string m_Descr
mutex to sync our internals
vector< CRef< CNetBlastJobDescriptor > > m_Descriptors
vector< CRef< CNetBlastJobDescriptor > > TDescriptors
CSelectProjectOptions m_LoadingOptions
void GetDescriptors(TDescriptors &descriptors)
vector< string > m_Errors
string m_ToolName
mutex to sync our internals
void x_CreateProjectItemsFromBlastResult(objects::CSeq_align_set &results, CRef< blast::CRemoteBlast > RemoteBlast)
TDescriptors m_Descriptors
virtual string GetDescr() const
Returns a human readable description of the Job (optional)
void SetRIDs(CNetBLASTUIDataSource &ds, const vector< string > &RIDs)
CRef< CAppJobError > m_Error
TDescriptors m_Descriptors
void GetErrors(vector< string > &errors) const
virtual CConstIRef< IAppJobProgress > GetProgress()
return progress object, the function shall be synchronized internally.
vector< string > m_Errors
CRef< CAppJobError > m_Error
IServiceLocator * m_SrvLocator
void x_SetStatusText(const string &text)
virtual EJobState Run()
Function that does all the useful work, called by the Engine.
void x_AddError(const string &error)
EJobState
Job states (describe FSM)
vector< SConstScopedObject > TConstScopedObjects
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
Defines to provide correct exporting from DLLs in Windows.
static void text(MDB_val *v)
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
The NCBI C++/STL use hints.