Changeset 105 in PSPA for Interface_Web/trunk/pspaWT/include


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

alerte en cas d'erreur d'execution

Location:
Interface_Web/trunk/pspaWT/include
Files:
4 edited

Legend:

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

    r102 r105  
    6969  void checkSectionSelection();
    7070
     71  bool areDataCoherent();
     72
    7173  void disableSectionExecute();
    7274
    7375  void faireDessin();
    74 
     76  void faireDessinParmela();
    7577  void faireDessinTransport();
    7678
  • Interface_Web/trunk/pspaWT/include/abstractElement.h

    r102 r105  
    105105  }
    106106
     107  // provisoire, pour suppleer une future classe nomdElement
     108  // analogue a nomDeLogiciel
     109  string getNameString() const
     110  {
     111    switch ( elementName_ )
     112      {
     113      case initialBeam :
     114        {
     115          return string("INITIALBEAM");
     116        }
     117      case drift :
     118        {
     119          return string("DRIFT");
     120        }
     121      case cell :
     122        {
     123          return string("CELL");
     124        }
     125      case soleno :
     126        {
     127          return string("SOLENO");
     128        }
     129      case bend :
     130        {
     131          return string("BEND");
     132        }
     133      default :
     134        {
     135          return string("UNKNOWN");
     136        }
     137      }
     138  }
    107139
    108  double getLenghtOfElement() const { return lenghtElem_;}
     140  double getLenghtOfElement() const { return lenghtElem_;}
    109141
    110142 int getNbParams() const {return nbParam_;};
  • Interface_Web/trunk/pspaWT/include/dataManager.h

    r95 r105  
    2525  particleBeam currentBeam_;
    2626
    27   //    vector<sectionToExecute*> jobList_;
     27  vector<sectionToExecute*> jobList_;
    2828
    2929  void createInputFileParmela( unsigned int indexDeb, unsigned int indexFin);
    3030  void createInputFileTransport( unsigned int indexDeb, unsigned int indexFin);
     31  void removeFile(string nameOfFile);
     32     void clearSectionToExecute();
    3133
    3234
     
    3739  ~dataManager()
    3840{
    39   /* unsigned k; */
    40   /* for (k=0; k < jobList_.size();k++) */
    41   /*   { */
    42   /*     if ( jobList_[k] != NULL ) delete jobList_[k]; */
    43   /*   } */
     41  unsigned k;
     42  for (k=0; k < jobList_.size();k++)
     43    {
     44      if ( jobList_[k] != NULL ) delete jobList_[k];
     45    }
    4446}
    4547
     
    4951  inline particleBeam& getCurrentBeam() {return currentBeam_;}
    5052
    51   //    void addSectionToExecute(int debut, int fin, nomDeLogiciel prog);
    52   //    void clearSectionToExecute();
     53     void addSectionToExecute(int debut, int fin, nomDeLogiciel prog);
    5354 
    5455  abstractElement* addElement(nomdElement elemType);
    55   /* abstractElement* addCell(); */
    56   /* abstractElement* addDrift(); */
    57   /* abstractElement* addInitialBeam(); */
    58   /* abstractElement* addSoleno(); */
    59   /* abstractElement* addBend(); */
    6056  void initializeExecution();
    61   string executeTransport( unsigned int indexDeb, unsigned int indexFin);
    62   string executeParmela( unsigned int indexDeb, unsigned int indexFin);
    63   //  string executeAll();
     57  string checkExecute();
     58  bool executeTransport( unsigned int indexDeb, unsigned int indexFin, string& resul);
     59  bool executeParmela( unsigned int indexDeb, unsigned int indexFin, string& resul);
     60  bool executeAll(string& resul);
    6461  void saveAll();
    6562  void restoreAll();
  • Interface_Web/trunk/pspaWT/include/environmentVariables.h

    r81 r105  
    33
    44static string WHERE_WE_ARE = string(getenv("PWD"));
    5 static string WORKINGAREA =  WHERE_WE_ARE.append("/workingArea");
     5static string WORKINGAREA =  WHERE_WE_ARE.append("/workingArea/");
    66
    77#endif
Note: See TracChangeset for help on using the changeset viewer.