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

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

#ifndef FAILURE_AWARE_WCRT_H_
#define FAILURE_AWARE_WCRT_H_

#include "CTT_Enhanced.h"
#include "Scheduler.h"

class FailureAwareWCRT : public std::binary_function <double,
  PROCESSOR_SET,
  double>
{
public:
  FailureAwareWCRT (const TASK_LIST & tasks,
                    const REPLICA_GROUPS & rep_groups);

  double operator () (double previous,
                      const PROCESSOR_SET & failures);

private:
  CTT_Enhanced ctt_;
  TASK_LIST tasks_;
  ReplicaFinder replica_finder_;
};

#endif /* FAILURE_AWARE_WCRT_H_ */