Ignore:
Timestamp:
Jun 21, 2013, 10:16:56 AM (11 years ago)
Author:
lemeur
Message:

definition des compatibilites des elements dans les software

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/controler/include/abstractElement.h

    r359 r418  
    77
    88#include "nomdElements.h"
    9 #include "nomDeLogiciel.h"
    10 #include "trivaluedBool.h"
     9//#include "nomDeLogiciel.h"
     10//#include "trivaluedBool.h"
    1111#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" */
    1616
    1717using namespace std;
     
    2323    int nbParam_;
    2424    string* parametersString_;
    25     //  double phaseStep_; // a recuperer dans les parametres globaux (methode setPhaseStep)
    2625    double phaseStepMax_;
    2726   
    2827    double defaultLength_;
    2928    double defaultAperture_;
    30     string defaultLabel_;
     29    string defaultSpecificName_;
    3130   
    32     string label_;
     31    string specificName_;
    3332    nomdElements elementName_;
    3433   
     
    5150    void setLabel(string lab);
    5251    string getLabel() const;
    53     //  typedElement getName() const;
    5452    nomdElements getNomdElement() const;
    5553   
    56     /* string getElementImage() const; */
    57     /* string getElementName() const; */
    5854   
    5955    double getLenghtOfElement() const;
    6056    int getNbParams() const;
    6157
    62     trivaluedBool is_accepted_by_software(nomDeLogiciel soft);
    6358   
    6459    virtual void setPhaseStep(double);
     
    6762    virtual void setParametersString(string* param) = 0;
    6863    virtual string* getParametersString() const = 0;
    69     virtual string parmelaOutputFlow() const = 0;
    70     virtual string transportOutputFlow() const = 0;
    71     virtual string generatorOutputFlow() const;
    7264    virtual string FileOutputFlow() const = 0;
     65    virtual vector< pair<string, vector<string> > > parametersToSoftware () const =0;
    7366    virtual void FileInput(ifstream& ifs) = 0;
    7467    virtual string print() = 0;
     
    7972        return abstractSoftware_;
    8073    }
     74
     75   
    8176   
    82    
    83     void registerAcceptableSoftware(nomDeLogiciel abs,trivaluedBool b);
    8477    /**
    8578     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
    8880     */
    89     trivaluedBool setSoftware(nomDeLogiciel abstractName);
     81    inline  void setSoftware(abstractSoftware* prog) { abstractSoftware_ = prog; }
     82
    9083   
     84
    9185    private :
    92     abstractSoftware *abstractSoftware_;
    9386
    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   
    10389};
    10490#endif
Note: See TracChangeset for help on using the changeset viewer.