Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkScheduler.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkScheduler_h
18 #define mitkScheduler_h
19 
20 #include <MitkSimulationExports.h>
21 
22 namespace mitk
23 {
24  class SchedulableProcess;
25  class SchedulingAlgorithmBase;
26 
27  namespace SchedulingAlgorithm
28  {
29  enum Enum
30  {
33  };
34  }
35 
36  class MITKSIMULATION_EXPORT Scheduler
37  {
38  public:
40  ~Scheduler();
41 
42  void AddProcess(SchedulableProcess* process);
43  void RemoveProcess(SchedulableProcess* process);
44  bool IsEmpty() const;
45  SchedulableProcess* GetCurrentProcess();
46  SchedulableProcess* GetNextProcess();
47 
48  private:
49  Scheduler(const Scheduler&);
50  Scheduler& operator=(const Scheduler&);
51 
52  struct Impl;
53  Impl* m_Impl;
54  };
55 }
56 
57 #endif
DataCollection - Class to facilitate loading/accessing structured data.