Changeset 418 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/include/abstractElement.h
- Timestamp:
- Jun 21, 2013, 10:16:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/include/abstractElement.h
r359 r418 7 7 8 8 #include "nomdElements.h" 9 #include "nomDeLogiciel.h"10 #include "trivaluedBool.h"9 //#include "nomDeLogiciel.h" 10 //#include "trivaluedBool.h" 11 11 #include "abstractSoftware.h" 12 #include "softwareGenerator.h" 13 #include "softwareParmela.h" 14 #include "softwareTest.h" 15 #include "softwareTransport.h" 12 /* #include "softwareGenerator.h" */ 13 /* #include "softwareParmela.h" */ 14 /* #include "softwareTest.h" */ 15 /* #include "softwareTransport.h" */ 16 16 17 17 using namespace std; … … 23 23 int nbParam_; 24 24 string* parametersString_; 25 // double phaseStep_; // a recuperer dans les parametres globaux (methode setPhaseStep)26 25 double phaseStepMax_; 27 26 28 27 double defaultLength_; 29 28 double defaultAperture_; 30 string default Label_;29 string defaultSpecificName_; 31 30 32 string label_;31 string specificName_; 33 32 nomdElements elementName_; 34 33 … … 51 50 void setLabel(string lab); 52 51 string getLabel() const; 53 // typedElement getName() const;54 52 nomdElements getNomdElement() const; 55 53 56 /* string getElementImage() const; */57 /* string getElementName() const; */58 54 59 55 double getLenghtOfElement() const; 60 56 int getNbParams() const; 61 57 62 trivaluedBool is_accepted_by_software(nomDeLogiciel soft);63 58 64 59 virtual void setPhaseStep(double); … … 67 62 virtual void setParametersString(string* param) = 0; 68 63 virtual string* getParametersString() const = 0; 69 virtual string parmelaOutputFlow() const = 0;70 virtual string transportOutputFlow() const = 0;71 virtual string generatorOutputFlow() const;72 64 virtual string FileOutputFlow() const = 0; 65 virtual vector< pair<string, vector<string> > > parametersToSoftware () const =0; 73 66 virtual void FileInput(ifstream& ifs) = 0; 74 67 virtual string print() = 0; … … 79 72 return abstractSoftware_; 80 73 } 74 75 81 76 82 83 void registerAcceptableSoftware(nomDeLogiciel abs,trivaluedBool b);84 77 /** 85 78 Set the software to this element 86 @param abstractName the name of the abstract software 87 @return trivaluedBool if this software is/not allowed/ignore on this component 79 @param abstractSoftware a pointer to the abstract software 88 80 */ 89 trivaluedBool setSoftware(nomDeLogiciel abstractName); 81 inline void setSoftware(abstractSoftware* prog) { abstractSoftware_ = prog; } 82 90 83 84 91 85 private : 92 abstractSoftware *abstractSoftware_;93 86 94 /** 95 Acceptable software list for this element 96 */ 97 std::vector <nomDeLogiciel> acceptableSoftware_; 98 99 /** 100 Ignore software list for this element 101 */ 102 std::vector <nomDeLogiciel> ignoreSoftware_; 87 abstractSoftware *abstractSoftware_; 88 103 89 }; 104 90 #endif
Note: See TracChangeset
for help on using the changeset viewer.