Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

LoadDistributedAccess.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Training_LoadDistributedAccess_h
00002 #define Impala_Core_Training_LoadDistributedAccess_h
00003 
00004 #include "Persistency/DistributedAccessRepository.h"
00005 #include "Core/Database/RawDataSet.h"
00006 
00007 
00008 namespace Impala
00009 {
00010 namespace Core
00011 {
00012 namespace Training
00013 {
00014 
00015 
00016 // Get a DistributedAccess the old-fashioned way
00017 inline Matrix::DistributedAccess*
00018 LoadDistributedAccess(String model, String kernel,
00019                       Core::Database::RawDataSet* set, 
00020                       Core::Database::RawDataSet* set2, int startNode,
00021                       int nodeCount)
00022 {
00023     String setName = set->GetSetName();
00024     String develSetName("");
00025     if (set2)
00026     {
00027         setName = set2->GetSetName();
00028         develSetName = set->GetSetName();
00029     }
00030     CmdOptions& options = CmdOptions::GetInstance();
00031     Persistency::KernelMatrixLocator loc(setName, true, "", develSetName,
00032                                          model, kernel, "", options);
00033     loc.SetFeatureIndexCat(options.GetString("featureIndexCat"));
00034     loc.SetStartNode(startNode);
00035     loc.SetNodeCount(nodeCount);
00036     loc.SetEmployReal32(true);
00037     return Persistency::DistributedAccessRepository().Get(loc);
00038 }
00039 
00040 
00041 } // namespace Training
00042 } // namespace Core
00043 } // namespace Impala
00044 
00045 #endif

Generated on Thu Jan 13 09:04:41 2011 for ImpalaSrc by  doxygen 1.5.1