Changeset 424 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/include/dataManager.h
- Timestamp:
- Sep 30, 2013, 5:03:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/include/dataManager.h
r419 r424 47 47 */ 48 48 int getNumeroFromElementLabel(string); 49 49 abstractElement* getElementPointerFromNumero(int); 50 50 51 51 void initializeExecution(); … … 61 61 @param filename 62 62 */ 63 void saveConfiguration(string folder, string filename); 63 void saveConfiguration(string folder, string filename); 64 bool restoreElements(string inputFileName); 65 66 void writeToAMLFile(string fileName); 64 67 65 bool restoreElements(string inputFileName); 66 67 68 /** return the jobList size 69 */ 70 inline int getJobListSize() const { 71 return jobList_.size(); 68 /** return the jobList size 69 */ 70 inline int getJobListSize() const { 71 return jobList_.size(); 72 } 73 74 // si newBeam = true, on cree un nouveau diag 75 // si newBeam = false, on utilise le dernier 76 inline particleBeam* updateCurrentDiagnostic(bool newBeam) { 77 if ( newBeam ) { 78 diagnosticBeam_.push_back(particleBeam()); 72 79 } 73 74 // si newBeam = true, on cree un nouveau diag 75 // si newBeam = false, on utilise le dernier 76 inline particleBeam* updateCurrentDiagnostic(bool newBeam) { 77 if ( newBeam ) { 78 diagnosticBeam_.push_back(particleBeam()); 79 } 80 indexElementToIndexDiag_.push_back(diagnosticBeam_.size() -1); 81 return &diagnosticBeam_.back(); 82 } 83 84 /** return a specific jobList index 85 return NULL if the index does not exist 86 */ 87 88 /* inline sectionToExecute* getJobListAt(int a) { */ 80 indexElementToIndexDiag_.push_back(diagnosticBeam_.size() -1); 81 return &diagnosticBeam_.back(); 82 } 83 84 /** return a specific jobList index 85 return NULL if the index does not exist 86 */ 87 88 /* inline sectionToExecute* getJobListAt(int a) { */ 89 89 /* if (a < 0) return NULL; */ 90 90 /* if (a >= getJobListSize()) return NULL; */ … … 92 92 /* } */ 93 93 94 95 94 95 96 96 /* inline const abstractSoftware* getSoftwareOfSection( int index) const { */ 97 97 /* if (index < 0) return NULL; */ … … 101 101 102 102 /** Clear a specific jobList */ 103 103 void clearSectionToExecute(int a); 104 104 105 private: 106 globalParameters globParam_; 107 particleBeam* currentBeam_; 105 private: 106 107 globalParameters globParam_; 108 particleBeam* currentBeam_; 108 109 PspaApplication* pspa_; 109 110 unsigned firstComputedElemNumero_; 110 111 unsigned lastComputedElemNumero_; 111 112 vector<particleBeam> diagnosticBeam_; 113 vector<unsigned> indexElementToIndexDiag_; 114 // numeroElementToIndexDiag_[k] contient, pour l'element d'index k, l'indice ind tel que diagnosticBeam_[ind] 115 // soit le faisceau resultat, en l'etat qu'il doit avoir apres l'element k 116 117 vector<sectionToExecute*> jobList_; 118 119 void removeFile(string nameOfFile); 120 void clearSectionToExecute(); 121 abstractSoftware* createSoftwareConnexion(nomDeLogiciel logi); 122 123 }; 112 113 vector<particleBeam> diagnosticBeam_; 114 vector<unsigned> indexElementToIndexDiag_; 115 // numeroElementToIndexDiag_[k] contient, pour l'element d'index k, l'indice ind tel que diagnosticBeam_[ind] 116 // soit le faisceau resultat, en l'etat qu'il doit avoir apres l'element k 117 118 vector<sectionToExecute*> jobList_; 119 120 void removeFile(string nameOfFile); 121 void clearSectionToExecute(); 122 abstractSoftware* createSoftwareConnexion(nomDeLogiciel logi); 123 }; 124 124 #endif
Note: See TracChangeset
for help on using the changeset viewer.