transfer_device.hpp
Go to the documentation of this file.
00001 /*
00002  *    This file is part of ACADO Toolkit.
00003  *
00004  *    ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
00005  *    Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
00006  *    Milan Vukov, Rien Quirynen, KU Leuven.
00007  *    Developed within the Optimization in Engineering Center (OPTEC)
00008  *    under supervision of Moritz Diehl. All rights reserved.
00009  *
00010  *    ACADO Toolkit is free software; you can redistribute it and/or
00011  *    modify it under the terms of the GNU Lesser General Public
00012  *    License as published by the Free Software Foundation; either
00013  *    version 3 of the License, or (at your option) any later version.
00014  *
00015  *    ACADO Toolkit is distributed in the hope that it will be useful,
00016  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  *    Lesser General Public License for more details.
00019  *
00020  *    You should have received a copy of the GNU Lesser General Public
00021  *    License along with ACADO Toolkit; if not, write to the Free Software
00022  *    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00023  *
00024  */
00025 
00026 
00033 #ifndef ACADO_TOOLKIT_TRANSFER_DEVICE_HPP
00034 #define ACADO_TOOLKIT_TRANSFER_DEVICE_HPP
00035 
00036 
00037 #include <acado/utils/acado_utils.hpp>
00038 #include <acado/simulation_environment/simulation_block.hpp>
00039 
00040 #include <acado/noise/noise.hpp>
00041 
00042 
00043 BEGIN_NAMESPACE_ACADO
00044 
00045 
00061 class TransferDevice : public SimulationBlock
00062 {
00063         //
00064         // PUBLIC MEMBER FUNCTIONS:
00065         //
00066         public:
00067 
00070                 TransferDevice( );
00071 
00081                 TransferDevice( uint _dim,
00082                                                 BlockName _name = BN_DEFAULT,
00083                                                 double _samplingTime = DEFAULT_SAMPLING_TIME
00084                                                 );
00085 
00090                 TransferDevice( const TransferDevice& rhs
00091                                                 );
00092 
00095                 virtual ~TransferDevice( );
00096 
00101                 TransferDevice& operator=(      const TransferDevice& rhs
00102                                                                         );
00103 
00104 
00109                 inline uint getDim( ) const;
00110 
00116                 inline BooleanType isEmpty( ) const;
00117 
00118 
00124                 inline BooleanType hasNoise( ) const;
00125 
00131                 inline BooleanType hasDeadTime( ) const;
00132 
00133 
00134 
00135         //
00136         // PROTECTED MEMBER FUNCTIONS:
00137         //
00138         protected:
00139 
00148                 virtual returnValue init(       double _startTime = 0.0,
00149                                                                         const DVector& _startValue = emptyConstVector
00150                                                                         );
00151 
00162                 virtual returnValue generateNoise(      double startTime,
00163                                                                                         double endTime,
00164                                                                                         VariablesGrid& currentNoise
00165                                                                                         ) const;
00166 
00167 
00168 
00169         //
00170         // DATA MEMBERS:
00171         //
00172 
00173         protected:
00174 
00175                 VariablesGrid lastSignal;                                       
00177                 Noise** additiveNoise;                                          
00178                 DVector  noiseSamplingTimes;                                    
00180                 DVector  deadTimes;                                                     
00181 };
00182 
00183 
00184 CLOSE_NAMESPACE_ACADO
00185 
00186 
00187 
00188 #include <acado/transfer_device/transfer_device.ipp>
00189 
00190 
00191 #endif  // ACADO_TOOLKIT_TRANSFER_DEVICE_HPP
00192 
00193 /*
00194  *      end of file
00195  */


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Sat Jun 8 2019 19:39:56