MRControlInput.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00002 //
00003 // $Id$
00004 //
00005 // Copyright 2008, 2009, 2010, 2011, 2012  Antonio Franchi and Paolo Stegagno    
00006 //
00007 // This file is part of MIP.
00008 //
00009 // MIP is free software: you can redistribute it and/or modify
00010 // it under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation, either version 3 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // MIP is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with MIP. If not, see <http://www.gnu.org/licenses/>.
00021 //
00022 // Contact info: antonio.franchi@tuebingen.mpg.de stegagno@diag.uniroma1.it
00023 //
00024 // ----------------------------------------------------------------------------
00025 
00029 
00030 
00031 #ifndef __MR_CONTROL_INPUT_H_
00032 #define __MR_CONTROL_INPUT_H_
00033 
00034 
00035 #include <MotionModule.h>
00036 #include <SimTime.h>
00037 
00038 namespace MipResources{
00039  
00040  
00042  /* @{ */
00043  
00044  
00048  class MRControlInput{
00049   public:
00050    
00052    SimTime ctime;
00053    
00055    Decimal lVel;
00056    
00058    Decimal aVel;
00059    
00061    MRControlInput();
00062    
00066    MRControlInput(const Decimal lv, const Decimal av);
00067    
00072    MRControlInput(const SimTime& t, const Decimal lv, const Decimal av);
00073    
00076    MRControlInput(const MRControlInput& mc);
00077    
00081    MRControlInput(stringstream& ss);
00082    
00084    ~MRControlInput();
00085    
00089    MRControlInput& operator=(const MRControlInput& mc);
00090    
00093    string exportAsString() const;
00094  };
00095  
00096  
00100  class MRControlInputs: public vector<MRControlInput>{
00101   public:
00103    MRControlInputs();
00104    
00107    MRControlInputs(const MRControlInputs& mc);
00108    
00112    MRControlInputs(stringstream& ss);
00113    
00115    ~MRControlInputs();
00116    
00120    MRControlInputs& operator=(const MRControlInputs& mc);
00121    
00124    string exportAsString() const;
00125  };
00126  
00127  /* @} */
00128  
00129 };// end namespace MipResources
00130 
00131 
00132 
00133 #endif
00134 
00135 
00136 
00137 
00138 

Generated on Mon Feb 20 07:01:07 2017 for MIP by  doxygen 1.5.6