Changeset 102 in PSPA


Ignore:
Timestamp:
Nov 21, 2012, 2:28:02 PM (12 years ago)
Author:
lemeur
Message:

creation d'un diagnostic de coherence

Location:
Interface_Web/trunk/pspaWT
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/include/GWt_pspaApplication.h

    r94 r102  
    4444  WPushButton *exec_go_;
    4545
     46  WText* probleme_;
    4647
    4748  list<GWt_sectionToExecute*> selectedSections_;
  • Interface_Web/trunk/pspaWT/include/abstractElement.h

    r95 r102  
    1616
    1717 protected:
     18
     19  bool parmelaOk_;
     20  bool transportOk_;
    1821
    1922  int nbParam_;
     
    5255    lenghtElem_ = defaultLength_;
    5356    aperture_ = defaultAperture_;
     57    parmelaOk_ = false;
     58    transportOk_ = false;
    5459  }
    5560
     
    105110 int getNbParams() const {return nbParam_;};
    106111
     112 bool is_parmela_element() const {return parmelaOk_;};
     113 bool is_transport_element() const {return transportOk_;};
     114
    107115 virtual string* getParametersString() const = 0;
    108116
  • Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc

    r93 r102  
    9090
    9191  WContainerWidget* executeW =new WContainerWidget();
    92 
    93 
    94   //   WVBoxLayout* executeLayout = new WVBoxLayout();
    95 
    96   //  executeW->decorationStyle().setBackgroundColor (WColor("yellow"));
    9792  executeW->setMaximumSize(600,150);
    9893  executeW->setMinimumSize(600,150);
    99 
    100  
    101 
    102 
    103     //    executeLayout->addWidget(boutonGo);
    10494
    10595  // bouton execute
     
    120110  exec_ok->clicked().connect(this, &PspaApplication::checkSectionSelection);
    121111
     112  // signal de probleme
     113  probleme_ = new WText("y a un probleme");
     114  probleme_->decorationStyle().setBackgroundColor (WColor("red"));
     115  probleme_->setHidden(true);
    122116
    123117  // le panel
     
    131125  contenuSections_->addWidget( exec_ok);
    132126    contenuSections_->addWidget(exec_go_);
     127    contenuSections_->addWidget(probleme_);
    133128  contenuSections_->addWidget(new WBreak());
    134129  contenuSections_->addWidget(new WBreak());
     
    416411        else if ( prog == nomDeLogiciel::transport )
    417412          {
     413
     414            if ( !dtmanage_->getCurrentBeam().momentRepresentationOk() )
     415              {         
     416                addConsoleMessage(" the beam is not OK for transport");
     417                probleme_->setHidden(false);
     418                return;
     419              }
     420
     421
    418422            resul = dtmanage_->executeTransport( debut, fin);
    419423            faireDessinTransport();
  • Interface_Web/trunk/pspaWT/src/dataManager.cc

    r96 r102  
    116116
    117117  createInputFileParmela(indexDeb, indexFin);
     118
    118119  ostringstream sortie;
    119120  sortie << " EXECUTION DE PARMELA DE l'ELEMENT " << indexDeb << " A L'ELEMENT " << indexFin << endl;
     
    154155    {
    155156
    156       // if ( currentBeam_.particleRepresentationOk() )
    157       //        {
    158       //          currentBeam_.buildMomentRepresentation();
    159       //        }
    160       // else
    161       //        {
    162157          cerr << " dataManager::createInputFileTransport : the beam is not OK " << endl;
    163           return;
    164           //    }
    165158    }
    166159  indexDeb--;
     
    213206  indexDeb--;
    214207  indexFin--;
     208
     209 
     210
     211
    215212  ofstream outfile;
    216213  string name = WORKINGAREA + "/parmin";
     
    258255}
    259256
    260   void dataManager::initializeExecution()
    261   {
    262     currentBeam_.clear();
    263   }
     257void dataManager::initializeExecution()
     258{
     259  ifstream testParmdesz;
     260  string parmdesz = WORKINGAREA + "/parmdesz";
     261  testParmdesz.open(parmdesz.c_str(), ios::in);
     262  if (testParmdesz)
     263    {
     264      testParmdesz.close();
     265      remove(parmdesz.c_str());
     266    }
     267  currentBeam_.clear();
     268}
    264269
    265270  // string dataManager::executeAll()
  • Interface_Web/trunk/pspaWT/src/elementInitialBeam.cc

    r82 r102  
    1414      nbParam_ = 6;
    1515      parametersString_ = new string[nbParam_+1];
     16      parmelaOk_ = true;
    1617    }
    1718
Note: See TracChangeset for help on using the changeset viewer.