Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

inputs.h

Go to the documentation of this file.
00001 
00007 #ifndef __INPUTS_H__
00008 #define __INPUTS_H__
00009 
00010 #include "vgen.h"
00011 
00013 class Inputs : public ValueGen {
00014 public:
00015   virtual ~Inputs() { }
00016 
00018   virtual void init()=0;
00019   
00021   virtual void reset()=0;
00022   
00024   virtual bool next()=0;
00025   
00027   virtual void activate(bool learn=false, bool settle=true)=0;
00028   
00030   virtual void uninit()=0;
00031 
00032 
00033   /*
00034     Highly deprecated interface to a few quantities sometimes needed
00035     by other files. Only use these when absolutely necessary, since
00036     the caller will have to know how many input dimensions there are,
00037     how objects are numbered, etc.  Without that knowledge, a caller must
00038     allow for the possibility that these trivial stubs are being called
00039     instead of something meaningful.
00040   */
00042   virtual bool   is_active(int, int) const  { return false;  }
00044   virtual double angle_of_object(int, int) const  {  return 0;  }
00046   virtual double angle_of_object_at_location(int, int, int) const {  return 0;  }
00047 };
00048 
00049 
00050 
00056 extern Inputs* inputs;
00057 
00058 
00059 
00060 #endif

Generated at Mon Aug 21 00:30:54 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000