SpherePackingScenarioGenerator
|
00001 #ifdef CCA 00002 00003 #ifndef CCA_SPHEREPACKSGENERATOR_IMPLEMENTATION 00004 #define CCA_SPHEREPACKSGENERATOR_IMPLEMENTATION 00005 #include "cca/scicode/AbstractSpherePacksGenerator.h" 00006 00007 #include "algorithms/ls/RandomPacking.h" 00008 #include "algorithms/regularpacking/RegularPacking.h" 00009 00010 #include <iostream> 00011 #include <string> 00012 namespace cca { 00013 class SpherePacksGeneratorImplementation ; 00014 } 00015 namespace cca { 00016 class SpherePacksInterface ; 00017 } 00018 class cca::SpherePacksGeneratorImplementation:public cca::AbstractSpherePacksGenerator{ 00019 public: 00020 SpherePacksGeneratorImplementation(); 00021 static void initRemoteJob(int argc,char** argv); 00022 static void shutdownRemoteJob(); 00023 void generate(); 00024 void setNumberOfSpheres(const long long& numberOfSpheres); 00025 void selectAlgorithm(const long long& algorithmNumber); 00026 00027 private: 00028 algorithms::ls::RandomPacking _randomPacking;// indicate the input configuration 00029 algorithms::regularpacking::RegularPacking _regularSphere;// indicate the configuration of regular sphere generation 00030 int _algorithm; 00031 unsigned int _numberOfSpheres; 00032 00033 }; 00034 #endif 00035 00036 #endif