SpherePackingScenarioGenerator
|
00001 #ifdef CCA 00002 00003 #ifndef CCA_SPHEREPACKSINTERFACECONFIGURATION_TO_JNI 00004 #define CCA_SPHEREPACKSINTERFACECONFIGURATION_TO_JNI 00005 00006 #include "cca/SpherePacksInterfaceConfiguration.h" 00007 #include <iostream> 00008 #include <jni.h> 00009 00010 namespace cca { 00011 class SpherePacksInterfaceConfigurationToJNIPortImplementation ; 00012 } 00013 00014 class cca::SpherePacksInterfaceConfigurationToJNIPortImplementation: public cca::SpherePacksInterfaceConfiguration { 00015 private: 00016 JavaVM* _jvm; 00017 jobject _obj; 00018 std::string _portIdentifier; 00019 00020 public: 00021 SpherePacksInterfaceConfigurationToJNIPortImplementation(JavaVM* jvm,jobject& obj,const std::string& portIdentifier); 00022 00023 virtual ~SpherePacksInterfaceConfigurationToJNIPortImplementation(); 00024 00025 virtual void generate(); 00026 virtual void setNumberOfSpheres(const long long& numberOfSpheres); 00027 virtual void selectAlgorithm(const long long& algorithmNumber); 00028 00029 00030 }; 00031 #endif 00032 #endif