All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
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/link.h"
28 
29 namespace MBSimControl {
30 
31  class Signal;
32 
38 
39  public:
40  SignalProcessingSystem(const std::string &name);
41  virtual std::string getType() const {return "SignalProcessingSystem"; }
42  void initializeUsingXML(xercesc::DOMElement *element);
43 
44  void init(InitStage stage);
45 
46  void updateg(double t) {}
47  void updategd(double t) {}
48  void updateWRef(const fmatvec::Mat& ref, int i=0) {}
49  void updateVRef(const fmatvec::Mat& ref, int i=0) {}
50  void updatehRef(const fmatvec::Vec &hRef, int i=0) {}
51  void updatedhdqRef(const fmatvec::Mat& ref, int i=0) {}
52  void updatedhduRef(const fmatvec::SqrMat& ref, int i=0) {}
53  void updatedhdtRef(const fmatvec::Vec& ref, int i=0) {}
54  void updaterRef(const fmatvec::Vec &ref, int i=0) {}
55  bool isActive() const {return false; }
56  bool gActiveChanged() {return false; }
57  bool isSingleValued() const { return true; }
58 
59  virtual fmatvec::VecV calculateOutput() = 0;
60 
61  void setInputSignal(Signal * inputSignal_) {inputSignal=inputSignal_; }
62 
63  protected:
64  Signal * inputSignal;
65  std::string inputSignalString;
66  };
67 
68 }
69 
70 #endif /* _SIGNAL_PROCESSING_SYSTEM_H_ */
71 
SignalProcessingSystem.
Definition: signal_processing_system.h:37
Signal.
Definition: signal_.h:37

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML