Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Controller.h

Go to the documentation of this file.
00001 #ifndef CONTROLLER_H
00002 #define CONTROLLER_H
00003 #include <assert.h>
00004 
00005 
00006 class Controller  {
00007 public:
00008    Controller(unsigned int nInputs, unsigned int nOutputs);
00009    virtual ~Controller();
00010 
00011    float getOutput(unsigned int i){
00012       assert(i<nOutputs);
00013       return output[i];
00014    }
00015 
00016    void setInput(unsigned int i, float value){
00017       assert(i<nInputs);
00018       input[i]=value;
00019    }
00020 
00021    virtual void advanceTime(){}
00022    
00023    unsigned int nInputs;
00024    unsigned int nOutputs;
00025 
00026 protected:
00027    float* input;
00028    float* output;
00029 
00030 };
00031 
00032 #endif //CONTROLLER_H
00033 

Thyrix homepageUsers' guide

(C) Arxia 2004-2005