CG  Version 25
Controller.h
Go to the documentation of this file.
1 #ifndef CONTROLLER_H
2 #define CONTROLLER_H
3 
4 // ====================================================================================
5 // This class is used to implement control algorithms
6 // ====================================================================================
7 
8 #include "Overture.h"
9 
10 class Parameters;
11 
13 {
14 
15 public:
16 
18 
19 virtual ~Controller();
20 
21 Controller( const Controller & X );
22 
23 
24 int createControlSequence( const aString & sequenceName, const std::vector<aString> componentNames );
25 
26 // get from a data base file
27 int get( const GenericDataBase & dir, const aString & name);
28 
29 // evaluate the control function: (single output):
30 int getControl( const real t, real & uControl, real & uControlDot ) const;
31 
32 // put to a data base file
33 int put( GenericDataBase & dir, const aString & name) const;
34 
35 int saveControlSequenceData( const aString & sequenceName, const real t, const std::vector<real> values );
36 
37 virtual int saveToShowFile() const;
38 
39 // interactive update
40 virtual int update(CompositeGrid & cg, GenericGraphicsInterface & gi );
41 
42 // update the control function based on the solution v. (use getControl to return current values)
43 int updateControl( realCompositeGridFunction & v, const real t, const real dt );
44 
45 protected:
46 
48 
49 };
50 
51 #endif