Changeset 431 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/include/abstractSoftware.h
- Timestamp:
- Nov 15, 2013, 3:30:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/include/abstractSoftware.h
r418 r431 3 3 4 4 #include "globalParameters.h" 5 #include "sectorParameters.h" 5 6 #include "particleBeam.h" 6 7 #include "nomDeLogiciel.h" … … 19 20 20 21 protected : 21 22 22 23 unsigned numeroDeb_, numeroFin_; 23 24 globalParameters* globParamPtr_; 25 sectorParameters* sectParamPtr_; //xx 24 26 dataManager* dataManager_; 25 27 string inputFileName_; 26 28 nomDeLogiciel nameOfSoftware_; 27 29 28 30 /** 29 31 Accepted elements list for this software 30 32 */ 31 33 std::vector <nomdElements::typedElement> acceptedElements_; 32 34 33 35 /** 34 36 Ignore software list for this element 35 37 */ 36 38 std::vector <nomdElements::typedElement> ignoredElements_; 37 39 38 40 abstractSoftware(); 39 41 … … 42 44 bool ComputationLimitsOk() const; 43 45 44 45 46 void registerElement(nomdElements::typedElement nomdel,trivaluedBool b); 46 47 47 48 public : 48 49 49 abstractSoftware(string inputFileName, globalParameters* globals, dataManager* dt); 50 abstractSoftware(string,globalParameters*,dataManager*); 51 abstractSoftware(string,sectorParameters*,dataManager*); 50 52 ~abstractSoftware() {;} 51 53 52 54 inline const nomDeLogiciel* getNomDeLogiciel() const { 53 55 return &nameOfSoftware_; 54 }56 } 55 57 56 58 trivaluedBool doAcceptElement(nomdElements::typedElement typdel); 57 59 60 virtual bool createInputFile(particleBeam* beamBefore,unsigned int numeroDeb, unsigned int numeroFin, string workingDir) = 0; 61 virtual bool execute(string workingDir) = 0; 62 virtual bool buildBeamAfterElements(string workingDir) = 0; 58 63 59 virtual bool createInputFile(particleBeam* beamBefore,unsigned int numeroDeb, unsigned int numeroFin, string workingDir) = 0; 60 61 62 virtual bool execute(string workingDir) = 0; 63 64 virtual bool buildBeamAfterElements(string workingDir) = 0; 65 66 /** Color of the background of this sofware 67 Should be a valid Css name as FFEEDD 68 */ 69 virtual string getColor() = 0; 70 71 /** Name of this software 72 */ 73 inline string getName() const { 74 return nameOfSoftware_.getString(); 75 } 76 64 /** Color of the background of this sofware 65 Should be a valid Css name as FFEEDD 66 */ 67 virtual string getColor() = 0; 68 69 /** Name of this software 70 */ 71 inline string getName() const { 72 return nameOfSoftware_.getString(); 73 } 77 74 }; 78 75 #endif
Note: See TracChangeset
for help on using the changeset viewer.