ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
scheduler.h
1#ifndef SCHEDULER_H
2#define SCHEDULER_H
3
4#include <stdint.h>
5#include <stdbool.h>
6#include <float.h>
7#include <vector>
8// MAX_SLOTS
9#define MAX_SLOTS 5
10#define INTMAX 255
11
12double within(int n,double x,std::vector<std::vector<double> > &F,bool closed,bool min);
13void swapD(double * a, double * b);
14void swapI(uint8_t * a, uint8_t * b);
15int partition (int low, int high,std::vector<double> &arrA,std::vector<double> &arrB,std::vector<uint8_t> &arrC);
16void quickSort( int low, int high,std::vector<double> &arrA,std::vector<double> &arrB,std::vector<uint8_t> &arrC);
17int8_t LeastDeadlineAtT(int n,std::vector<double> &R,std::vector<double> &D,std::vector<uint8_t> &id,double t, uint8_t* ScheduledJobs,int numSchJobs);
18bool Scheduler(int n,double *R,double *D,double * ScheduledT,uint8_t* ScheduledJobs);
19
20
21#endif