JOB Class Reference

Corresponds to a project in BOINC, from which tasks are generated for execution. More...

#include <job.h>

List of all members.

Public Member Functions

 JOB ()
int parse (FILE *in)
void clear_job ()
vector< m_task_t > get_tasks (int num_tasks_req, REPLY_DATA *reply_data)
vector< CHKPT_TASK * > get_chkpt_tasks (int num_tasks_req, REPLY_DATA *reply_data)
 create the CHKPT_TASK and returns a vector of them
WORKUNITget_wu ()
 Creates WORKUNIT based on current task counter.
RESULTget_result (CLIENT_STATE *gstate, char *wu_name)

Public Attributes

char name [256]
int task_counter
int num_tasks
double task_comp_size
double task_comm_size
int chkpt_freq
double delay_bound
std::map< string, m_task_t > task_buffer
int num_tasks_completed
int num_tasks_rem
double rsc_fpops_est

Private Member Functions

void refill_task_buffer ()
void validate ()


Detailed Description

Corresponds to a project in BOINC, from which tasks are generated for execution.


Constructor & Destructor Documentation

JOB::JOB  ) 
 


Member Function Documentation

void JOB::clear_job  ) 
 

vector< CHKPT_TASK * > JOB::get_chkpt_tasks int  num_tasks_req,
REPLY_DATA reply_data
 

create the CHKPT_TASK and returns a vector of them

RESULT * JOB::get_result CLIENT_STATE gstate,
char *  wu_name
 

should only be called once per task.

vector< m_task_t > JOB::get_tasks int  num_tasks_req,
REPLY_DATA reply_data
 

WORKUNIT * JOB::get_wu  ) 
 

Creates WORKUNIT based on current task counter.

int JOB::parse FILE *  in  ) 
 

void JOB::refill_task_buffer  )  [private]
 

void JOB::validate  )  [private]
 


Member Data Documentation

int JOB::chkpt_freq
 

double JOB::delay_bound
 

relative from the time the RESULT is created, when it's about to be sent to the client

char JOB::name[256]
 

name of the project

int JOB::num_tasks
 

int JOB::num_tasks_completed
 

int JOB::num_tasks_rem
 

num tasks not assigned

double JOB::rsc_fpops_est
 

std::map<string, m_task_t> JOB::task_buffer
 

double JOB::task_comm_size
 

double JOB::task_comp_size
 

int JOB::task_counter
 


The documentation for this class was generated from the following files:
Generated on Mon Mar 12 16:22:03 2007 for SimBOINC by  doxygen 1.4.6