#ifndef SPORADIC_TASK_HH #define SPORADIC_TASK_HH #include #include #include #include #include "main.hh" #include "time_io.hh" class Sporadic_Task { private: int id; ms_t c, d, t; std::string program; std::string** program_args; int argc; public: Sporadic_Task(); Sporadic_Task(std::ifstream& f); int get_id() { return id; } ms_t get_c() { return c; } ms_t get_d() { return d; } ms_t get_t() { return t; } void store(); void run(ms_t duration_secs); static void check_task(Sporadic_Task* t); friend std::ostream& operator<<(std::ostream& os, const Sporadic_Task* t); void launch_extern_program(); }; #endif