summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/FaultTolerance/FLARe/DeCoRAM/src/FTRMFF_Worstfit.h
blob: 79fb183d02cc7425e3b45b779dafd42bba33250e (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
// -*- C++ -*-

//=============================================================================
/**
 *  @file    FTRMFF_Worstfit.h
 *
 *  $Id$
 *
 *  @author  Friedhelm Wolf (fwolf@dre.vanderbilt.edu)
 */
//=============================================================================

#ifndef FTRMFF_WORSTFIT_ALGORITHM_H_
#define FTRMFF_WORSTFIT_ALGORITHM_H_

#include "Schedule.h"

class FTRMFF_Worstfit : public FTRMFF_Algorithm
{
public:
  virtual ~FTRMFF_Worstfit ();

  virtual FTRMFF_Output operator () (const FTRMFF_Input & input);
};

class FTRMFF_Worstfit_Algorithm : 
  public FTRMFF_Algorithm_Impl
{
public:
  FTRMFF_Worstfit_Algorithm (const PROCESSOR_LIST & processors,
                            unsigned int consistency_level);

  virtual ~FTRMFF_Worstfit_Algorithm ();

  virtual SCHEDULING_MAP operator () (const TASK_LIST & tasks);

  virtual const SCHEDULE & schedule () const;

private:
  SCHEDULE schedule_;
  SCHEDULE_PROGRESS_LIST unschedulable_;
};

#endif /* FTRMFF_WORSTFIT_ALGORITHM_H_ */