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/src/elementSnapshot.cc

    r387 r418  
    1313  nbParam_ = elementName_.getElementNbParameters();
    1414  parametersString_ = new string[nbParam_+1];
    15   registerAcceptableSoftware(nomDeLogiciel::transport, TBoolIgnore);
    16   registerAcceptableSoftware(nomDeLogiciel::parmela, TBoolIgnore);
    17   registerAcceptableSoftware(nomDeLogiciel::generator, TBoolIgnore);
    18   registerAcceptableSoftware(nomDeLogiciel::test, TBoolIgnore);
     15  // registerAcceptableSoftware(nomDeLogiciel::transport, TBoolIgnore);
     16  // registerAcceptableSoftware(nomDeLogiciel::parmela, TBoolIgnore);
     17  // registerAcceptableSoftware(nomDeLogiciel::generator, TBoolIgnore);
     18  // registerAcceptableSoftware(nomDeLogiciel::useraction,
     19  //                                           TBoolOk);
     20  // registerAcceptableSoftware(nomDeLogiciel::test, TBoolIgnore);
    1921}
    2022
    2123void elementSnapshot::setDefaultValues()
    2224{
    23   defaultLabel_ = "snapshot";
     25  defaultSpecificName_ = "snapshot";
    2426}
    2527
    2628void elementSnapshot::setDefaults()
    2729{
    28   label_ = defaultLabel_;
     30  specificName_ = defaultSpecificName_;
    2931
    3032  if(incr_ < 10) {
     
    4143  int compteur = -1;
    4244  parametersString_[++compteur] = mixedTools::intToString(nbParam_);
    43   parametersString_[++compteur] = label_;
     45  parametersString_[++compteur] = specificName_;
    4446  parametersString_[++compteur] = snapshotFile_;
    4547 
     
    6668  }
    6769 
    68   label_ = param[++compteur];
     70  specificName_ = param[++compteur];
    6971}
    7072
    71 string elementSnapshot::parmelaOutputFlow() const
    72 {
    73     // ostringstream sortie;
    74     // return sortie.str();
    75   return string("");
    76 }
     73// string elementSnapshot::parmelaOutputFlow() const
     74// {
     75//     // ostringstream sortie;
     76//     // return sortie.str();
     77//   return string("");
     78// }
    7779
    78 string elementSnapshot::transportOutputFlow() const
    79 {
    80   return string("");
    81 }
     80// string elementSnapshot::transportOutputFlow() const
     81// {
     82//   return string("");
     83// }
    8284
    8385string elementSnapshot::FileOutputFlow() const
    8486{
    8587  ostringstream sortie;
    86   sortie << elementName_.getElementLabel() << endl;
    87   sortie  << label_ << endl;
     88  sortie << elementName_.getGenericLabel() << endl;
     89  sortie  << specificName_ << endl;
    8890  sortie << snapshotFile_ << endl;
    8991  return sortie.str();
    9092}
    9193
     94vector< pair<string, vector<string> > > elementSnapshot::parametersToSoftware () const {
     95  vector< pair<string, vector<string> > >  sortie;
     96  sortie.push_back( pair<string, vector<string> >("labelsGenericSpecific",  vector<string>() ) );
     97  sortie.back().second.push_back(elementName_.getGenericLabel());
     98  sortie.back().second.push_back(specificName_);
     99  sortie.push_back( pair<string, vector<string> >("snapshotFile",  vector<string>() ) );
     100  sortie.back().second.push_back(snapshotFile_);
     101  return sortie;
     102}
     103
    92104void elementSnapshot::FileInput(ifstream& ifs)
    93105{
    94   ifs >> label_;
     106  ifs >> specificName_;
    95107  ifs >> snapshotFile_;
    96108}
     
    99111{
    100112  string txt = ""; 
    101   txt += label_;
     113  txt += specificName_;
    102114  txt += "\nname of file for snapshot : ";
    103115  txt += snapshotFile_;
Note: See TracChangeset for help on using the changeset viewer.