|
mbsimcontrol
4.0.0
|
00001 /* Copyright (C) 2006 Mathias Bachmayer 00002 00003 * This library is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU Lesser General Public 00005 * License as published by the Free Software Foundation; either 00006 * version 2.1 of the License, or (at your option) any later version. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00016 00017 * 00018 * 00019 * Contact: 00020 * mbachmayer@gmx.de 00021 * 00022 */ 00023 00024 #ifndef _SIGNAL_PROCESSING_SYSTEM_H_ 00025 #define _SIGNAL_PROCESSING_SYSTEM_H_ 00026 00027 #include "mbsim/link.h" 00028 00029 namespace MBSimControl { 00030 00031 class Signal; 00032 00037 class SignalProcessingSystem : public MBSim::Link { 00038 00039 public: 00040 SignalProcessingSystem(const std::string &name); 00041 virtual std::string getType() const {return "SignalProcessingSystem"; } 00042 void initializeUsingXML(xercesc::DOMElement *element); 00043 00044 void init(InitStage stage); 00045 00046 void updateg(double t) {} 00047 void updategd(double t) {} 00048 void updateWRef(const fmatvec::Mat& ref, int i=0) {} 00049 void updateVRef(const fmatvec::Mat& ref, int i=0) {} 00050 void updatehRef(const fmatvec::Vec &hRef, int i=0) {} 00051 void updatedhdqRef(const fmatvec::Mat& ref, int i=0) {} 00052 void updatedhduRef(const fmatvec::SqrMat& ref, int i=0) {} 00053 void updatedhdtRef(const fmatvec::Vec& ref, int i=0) {} 00054 void updaterRef(const fmatvec::Vec &ref, int i=0) {} 00055 bool isActive() const {return false; } 00056 bool gActiveChanged() {return false; } 00057 bool isSingleValued() const { return true; } 00058 00059 virtual fmatvec::VecV calculateOutput() = 0; 00060 00061 void setInputSignal(Signal * inputSignal_) {inputSignal=inputSignal_; } 00062 00063 protected: 00064 Signal * inputSignal; 00065 std::string inputSignalString; 00066 }; 00067 00068 } 00069 00070 #endif /* _SIGNAL_PROCESSING_SYSTEM_H_ */ 00071
1.8.0