LRAUV  revA
AsyncPiEstimator.h
Go to the documentation of this file.
1 
12 #ifndef ASYNCPIESTIMATOR_H_
13 #define ASYNCPIESTIMATOR_H_
14 
16 
17 class Measurement;
18 
26 {
27 public:
28 
29  AsyncPiEstimator( const Module* module );
30 
31  virtual ~AsyncPiEstimator();
32 
34  void initialize( void );
35 
37  void run();
38 
40  void uninitialize( void );
41 
42  void reset();
43 
44 protected:
45 
47  double piEstimate_;
48  double denominator_;
49 
50 };
51 
52 #endif /*ASYNCPIESTIMATOR_H_*/
This Component uses an iterative method to calculate pi.
Definition: AsyncPiEstimator.h:25
void initialize(void)
Initialize function.
Definition: AsyncPiEstimator.cpp:32
double piEstimate_
Definition: AsyncPiEstimator.h:47
A DataAccessor that writes values to the Slate via its associated DataElement.
Definition: DataWriter.h:27
AsyncPiEstimator(const Module *module)
Definition: AsyncPiEstimator.cpp:20
double denominator_
Definition: AsyncPiEstimator.h:48
virtual ~AsyncPiEstimator()
Definition: AsyncPiEstimator.cpp:28
Module is the abstract base class for a collection of Component objects that can be contained in a lo...
Definition: Module.h:45
Abstract Base class for software components that run independently from the computation cycle...
Definition: AsyncComponent.h:20
void reset()
Definition: AsyncPiEstimator.cpp:83
void run()
The actual "payload" of the component.
Definition: AsyncPiEstimator.cpp:39
DataWriter * piEstimateWriter_
Definition: AsyncPiEstimator.h:46
void uninitialize(void)
Uninit function.
Definition: AsyncPiEstimator.cpp:90
Contains the AsyncComponent class definition.