OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ResultSource.h
Go to the documentation of this file.
1#pragma once
7
9{
10public:
12 ResultSource(ExecutionBarrier * executionBarrier , IGridIteratorVolume * volumeIter);
14 int GetCurrentTimestep() const { return _currentTimestep; };
15
16 bool ShallBeExecuted(int currentTimestep)
17 {
18 return _executionBarrier->AllowExecution(currentTimestep);
19 }
20
21 virtual ResultContainer * GenerateResultContainer(int currentTimeStep) = 0;
22
23protected:
26
28private:
29 ExecutionBarrier * _executionBarrier = nullptr;
30
31};
Definition ExecutionBarrier.h:4
virtual bool AllowExecution(int currentTimestep)=0
Definition IGridIteratorVolume.h:7
Definition ResultContainer.h:5
Definition ResultSource.h:9
ResultSource(ExecutionBarrier *executionBarrier, IGridIteratorVolume *volumeIter)
Definition ResultSource.cpp:14
IGridIteratorVolume * _subVolumeIterator
Definition ResultSource.h:25
virtual ResultContainer * GenerateResultContainer(int currentTimeStep)=0
int _currentTimestep
Definition ResultSource.h:27
IGridIteratorVolume * GetSubvolumeIterator() const
Definition ResultSource.h:13
~ResultSource()
Definition ResultSource.cpp:4
bool ShallBeExecuted(int currentTimestep)
Definition ResultSource.h:16
IGridIteratorVolume * _volumeIterator
Definition ResultSource.h:24
int GetCurrentTimestep() const
Definition ResultSource.h:14