mbsimcontrol  3.0.0
signal_processing_system.h
1 /* Copyright (C) 2006 Mathias Bachmayer
2 
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 
17  *
18  *
19  * Contact:
20  * mbachmayer@gmx.de
21  *
22  */
23 
24 #ifndef _SIGNAL_PROCESSING_SYSTEM_H_
25 #define _SIGNAL_PROCESSING_SYSTEM_H_
26 
27 #include "mbsim/extra_dynamic.h"
28 
29 namespace MBSimControl {
30 
31  class Signal;
32 
37  class SignalProcessingSystem : public MBSim::ExtraDynamic {
38 
39  public:
40  SignalProcessingSystem(const std::string &name);
41  virtual std::string getType() const {return "SignalProcessingSystem"; }
42  void initializeUsingXML(TiXmlElement *element);
43 
44  void init(MBSim::InitStage stage);
45 
46  void updateg(double t) {}
47 
48  virtual fmatvec::Vec calculateOutput() = 0;
49 
50  void setInputSignal(Signal * inputSignal_) {inputSignal=inputSignal_; }
51 
52  protected:
53  Signal * inputSignal;
54  std::string inputSignalString;
55  };
56 
57 }
58 
59 #endif /* _SIGNAL_PROCESSING_SYSTEM_H_ */
60