www.mooseframework.org
StateProcessor.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef STATEPROCESSOR_H
9 #define STATEPROCESSOR_H
10 
11 #include <string>
12 #include <vector>
13 
18 {
19 public:
20  // with default value
21  StateProcessor(unsigned int max_time_step, int seed = 0);
22  void setMaxTime(unsigned int time_step);
23 
24  unsigned int nextTime();
25  unsigned int process(unsigned int time_step);
26 
27 private:
28  unsigned int _max_time_step;
29  std::vector<unsigned int> _ev_times;
30 
31  void addEv(unsigned int time_step);
32 };
33 
34 #endif
unsigned int nextTime()
StateProcessor(unsigned int max_time_step, int seed=0)
unsigned int _max_time_step
std::vector< unsigned int > _ev_times
void setMaxTime(unsigned int time_step)
unsigned int process(unsigned int time_step)
void addEv(unsigned int time_step)
Object to load and run and manage a state simulation model.