Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00035 #ifndef ACADO_TOOLKIT_DT_EXPORT_HPP
00036 #define ACADO_TOOLKIT_DT_EXPORT_HPP
00037
00038 #include <acado/code_generation/integrators/integrator_export.hpp>
00039
00040 #include <acado/code_generation/export_algorithm_factory.hpp>
00041
00042
00043 BEGIN_NAMESPACE_ACADO
00044
00045
00056 class DiscreteTimeExport : public IntegratorExport
00057 {
00058
00059
00060
00061 public:
00062
00068 DiscreteTimeExport( UserInteraction* _userInteraction = 0,
00069 const std::string& _commonHeaderName = ""
00070 );
00071
00076 DiscreteTimeExport( const DiscreteTimeExport& arg
00077 );
00078
00081 virtual ~DiscreteTimeExport( );
00082
00087 DiscreteTimeExport& operator=( const DiscreteTimeExport& arg
00088 );
00089
00090
00095 virtual returnValue setup( );
00096
00097
00105 virtual returnValue setDifferentialEquation( const Expression& rhs );
00106
00107
00115 virtual returnValue setNARXmodel( const uint delay, const DMatrix& parms );
00116
00117
00125 virtual returnValue setupOutput( const std::vector<Grid> outputGrids_,
00126 const std::vector<Expression> rhs );
00127
00128
00138 virtual returnValue setupOutput( const std::vector<Grid> outputGrids_,
00139 const std::vector<std::string> _outputNames,
00140 const std::vector<std::string> _diffs_outputNames,
00141 const std::vector<uint> _dims_output );
00142
00143
00154 virtual returnValue setupOutput( const std::vector<Grid> outputGrids_,
00155 const std::vector<std::string> _outputNames,
00156 const std::vector<std::string> _diffs_outputNames,
00157 const std::vector<uint> _dims_output,
00158 const std::vector<DMatrix> _outputDependencies );
00159
00160
00167 virtual returnValue getDataDeclarations( ExportStatementBlock& declarations,
00168 ExportStruct dataStruct = ACADO_ANY
00169 ) const;
00170
00171
00178 virtual returnValue getFunctionDeclarations( ExportStatementBlock& declarations
00179 ) const;
00180
00181
00182
00189 virtual returnValue getCode( ExportStatementBlock& code
00190 );
00191
00192
00193
00194 protected:
00195
00196
00201 ExportVariable getAuxVariable() const;
00202
00203
00210 virtual returnValue copy( const DiscreteTimeExport& arg
00211 );
00212
00213
00214 protected:
00215
00216 ExportVariable rk_diffsTemp3;
00217
00218 };
00219
00220 IntegratorExport* createDiscreteTimeExport( UserInteraction* _userInteraction,
00221 const std::string &_commonHeaderName );
00222
00223
00224 CLOSE_NAMESPACE_ACADO
00225
00226
00227 #endif // ACADO_TOOLKIT_DT_EXPORT_HPP
00228
00229