Bolt
Task Class Reference

Public Member Functions

 Task ()
 Task constructor. More...
 
 Task (std::string graphPath, std::map< std::string, std::shared_ptr< Tensor >> data)
 Task constructor. More...
 
 Task (int id, std::string graphPath, std::map< std::string, std::shared_ptr< Tensor >> data)
 Task constructor. More...
 
 Task (Task *task)
 Task copy constructor. More...
 
void set (int id, std::string graphPath, std::map< std::string, std::shared_ptr< Tensor >> data, TaskStatus status)
 Task set function. More...
 

Data Fields

int id
 
TaskStatus status
 
std::string graphPath
 
std::map< std::string, std::shared_ptr< Tensor > > data
 

Friends

std::ostream & operator<< (std::ostream &os, const Task &task)
 

Detailed Description

Definition at line 42 of file task.h.

Constructor & Destructor Documentation

◆ Task() [1/4]

Task::Task ( )

Task constructor.

Returns

Definition at line 49 of file task.h.

References status, and TASK_CREATE.

◆ Task() [2/4]

Task::Task ( std::string  graphPath,
std::map< std::string, std::shared_ptr< Tensor >>  data 
)

Task constructor.

Parameters
graphPathpredefined flow graph file path
datagraph input data
Returns

Definition at line 61 of file task.h.

References data, graphPath, and TASK_READY.

◆ Task() [3/4]

Task::Task ( int  id,
std::string  graphPath,
std::map< std::string, std::shared_ptr< Tensor >>  data 
)

Task constructor.

Parameters
idtime series data stamp
graphPathpredefined flow graph file path
datagraph input data map
Returns

Definition at line 74 of file task.h.

References data, graphPath, id, and TASK_READY.

◆ Task() [4/4]

Task::Task ( Task task)

Task copy constructor.

Parameters
taskcopy from task to generate new Task
Returns

Definition at line 85 of file task.h.

References data, graphPath, id, and status.

Member Function Documentation

◆ set()

void Task::set ( int  id,
std::string  graphPath,
std::map< std::string, std::shared_ptr< Tensor >>  data,
TaskStatus  status 
)

Task set function.

Parameters
idtime series data stamp
graphPathpredefined flow graph file path
datagraph input data map
statustask status
Returns

Definition at line 99 of file task.h.

References data, graphPath, id, and status.

Field Documentation

◆ data

std::map<std::string, std::shared_ptr<Tensor> > Task::data

graph data

Definition at line 128 of file task.h.

Referenced by set(), and Task().

◆ graphPath

std::string Task::graphPath

predefined flow graph file path

Definition at line 126 of file task.h.

Referenced by set(), and Task().

◆ id

int Task::id

time stamp

Definition at line 122 of file task.h.

Referenced by set(), and Task().

◆ status

TaskStatus Task::status

task status

Definition at line 124 of file task.h.

Referenced by set(), and Task().


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