blob: 4fb8a7747f771a9c507a51afa39de0b81b310f4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
// -*- C++ -*-
//=============================================================================
/**
* @file FTRMFF_Basic_Algorithm.h
*
* $Id$
*
* @author Friedhelm Wolf (fwolf@dre.vanderbilt.edu)
*/
//=============================================================================
#ifndef FTRMFF_BASIC_ALGORITHM_H_
#define FTRMFF_BASIC_ALGORITHM_H_
#include "Schedule.h"
#include <stdlib.h>
#include <algorithm>
#include <memory>
typedef std::auto_ptr <CTT_Algorithm> CTT_PTR;
class FTRMFF_Basic : public FTRMFF_Algorithm
{
public:
FTRMFF_Basic (CTT_Algorithm & ctt);
virtual ~FTRMFF_Basic ();
virtual FTRMFF_Output operator () (const FTRMFF_Input & input);
private:
CTT_Algorithm & ctt_;
};
class FTRMFF_Basic_Algorithm :
public std::unary_function <TASK_LIST,
SCHEDULING_MAP>
{
public:
FTRMFF_Basic_Algorithm (const PROCESSOR_LIST & processors,
unsigned int consistency_level,
CTT_Algorithm & ctt);
virtual ~FTRMFF_Basic_Algorithm ();
virtual SCHEDULING_MAP operator () (const TASK_LIST & tasks);
SCHEDULE_PROGRESS_LIST get_unschedulable ();
const SCHEDULE & schedule () const;
private:
SCHEDULE schedule_;
SCHEDULE_PROGRESS_LIST unschedulable_;
unsigned int consistency_level_;
CTT_Algorithm & ctt_;
std::auto_ptr<Ranking_Algorithm> ranking_algorithm_;
};
#endif /* FTRMFF_BASIC_ALGORITHM_H_ */
|