00001 #ifndef BatchFactory_H 00002 #define BatchFactory_H 00003 00004 #include "BatchLearning.h" 00005 #include "LearningFactory.h" 00006 00007 #include <string> 00008 00009 using std::string; 00010 00011 class BatchFactory : public LearningFactory { 00012 public: 00013 BatchFactory( const string& name ) : LearningFactory( name ) {}; 00014 virtual LearningAlgorithm * build ( const TopolParams& arg ) 00015 { return new BatchLearning( arg ); }; 00016 }; 00017 00018 #endif