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


Ignore:
Timestamp:
Jan 18, 2013, 10:02:58 PM (11 years ago)
Author:
lemeur
Message:

rationalisation pour introduire nouveau logiciel

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

Legend:

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

    r239 r243  
    55#include "GWt_draggableImage.h"
    66#include "abstractElement.h"
     7#include "GWt_console.h"
    78
    89#include <Wt/WDialog>
  • Interface_Web/trunk/pspaWT/include/abstractElement.h

    r229 r243  
    77
    88#include "nomdElements.h"
     9#include "nomDeLogiciel.h"
     10#include "trivaluedBool.h"
    911
    1012using namespace std;
     
    1416 protected :
    1517 
    16   bool parmelaOk_;
    17   bool parmelaIgnored_;
    18   bool transportOk_;
     18  /* bool parmelaOk_; */
     19  /* bool parmelaIgnored_; */
     20  /* bool transportOk_; */
    1921  int nbParam_;
    2022  string* parametersString_;
     
    5052
    5153  /* string getElementImage() const; */
    52 
    5354  /* string getElementName() const; */
    5455
    5556  double getLenghtOfElement() const;
    5657  int getNbParams() const; 
    57   bool is_parmela_ignored() const;
    58   bool is_parmela_element() const;
    59   bool is_transport_element() const;
    60 
     58  /* bool is_parmela_ignored() const; */
     59  /* bool is_parmela_element() const; */
     60  /* bool is_transport_element() const; */
     61  virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const;
    6162  virtual void setPhaseStep(double);
    6263  virtual double getInitialKineticEnergy() const;
  • Interface_Web/trunk/pspaWT/include/dataManager.h

    r236 r243  
    1212#include "beam2Moments.h"
    1313
     14typedef struct
     15{
     16  float xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz;
     17  float phi0, ksi1,ksi2,ksi3;
     18  int ne,np,ngood,npart;
     19
     20  int readFromParmelaFile(FILE* fp)
     21  {
     22    return fscanf(fp, " %e %e %e %e %e %e %e %e %e %e %d %d %d %d %e %e %e %e \n", &xx, &xxp, &begamx,&yy,&yyp,&begamy,&z, &begamz,&phi,&wz,&ne,&np,&ngood,&npart,&phi0, &ksi1,&ksi2,&ksi3);
     23  }
     24  void imprim()
     25  {
     26    printf( " %e %e %e %e %e %e %e %e %e %e %d %d %d, %d %e %e %e %e \n", xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz,ne,np,ngood,npart,phi0, ksi1,ksi2,ksi3);
     27  }
     28} parmelaParticle;
    1429
    1530
     
    3146  void clearSectionToExecute();
    3247  bool  moments2FromTransport(string workingDir, string elLab, const nomdElements elem, beam2Moments& moments) const;
    33 
     48  bool beamFromParmela(string workingDir,unsigned numeroElement, double referencefrequency, vector<double>& centroid, bareParticle& refPart,vector<bareParticle>& particles );
    3449 public:
    3550
     
    5671  void initializeExecution(string workingDir);
    5772  trivaluedBool checkExecute(string& diagnostic);
     73  trivaluedBool checkElementsForExec(nomDeLogiciel logiciel, unsigned indexDeb, unsigned indexFin, string& diagnostic);
    5874  bool executeTransport( unsigned int numeroDeb, unsigned int numeroFin, string workingDir,  string& resul);
    5975  bool executeParmela( unsigned int numeroDeb, unsigned int numeroFin, string workingDir, string& resul);
     76  bool launchJob(string commandLine, string& resul);
    6077  bool executeAll(string workingDir, string& resul);
    6178  void saveConfiguration(string workingDir, string nameOfFile);
  • Interface_Web/trunk/pspaWT/include/elementBeam.h

    r180 r243  
    3030~elementBeam();
    3131
     32virtual  trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const;
    3233
    3334
  • Interface_Web/trunk/pspaWT/include/elementBend.h

    r202 r243  
    4343  double getLenghtOfElement() const;
    4444
     45 virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const;
     46
    4547
    4648  virtual void setParametersString(string* param);
  • Interface_Web/trunk/pspaWT/include/elementCell.h

    r107 r243  
    4646  ~elementCell() { ;}
    4747
     48 virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const;
    4849
    4950  virtual string* getParametersString() const;
  • Interface_Web/trunk/pspaWT/include/elementDrift.h

    r84 r243  
    1818  ~elementDrift() {;}
    1919
     20 virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const;
     21
     22
    2023  virtual string* getParametersString() const;
    2124
  • Interface_Web/trunk/pspaWT/include/elementFit.h

    r225 r243  
    2929  ~elementFit() {;}
    3030
     31 virtual  trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const;
     32
    3133
    3234  virtual void setParametersString(string* param);
  • Interface_Web/trunk/pspaWT/include/elementRfgun.h

    r155 r243  
    4242  ~elementRfgun() {;}
    4343
     44 virtual  trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const;
     45
    4446  virtual void setPhaseStep(double ph) { phaseStep_ = ph;}
    4547 
  • Interface_Web/trunk/pspaWT/include/elementSoleno.h

    r229 r243  
    3232  ~elementSoleno() {;}
    3333
     34  virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const;
     35
    3436 virtual void setParametersString(string* param);
    3537
  • Interface_Web/trunk/pspaWT/include/particleBeam.h

    r236 r243  
    1010
    1111#include "bareParticle.h"
    12 #include "mathematicalTools.h"
     12//#include "mathematicalTools.h"
    1313#include "nomdElements.h"
    1414#include "beam2Moments.h"
     
    1616using namespace std;
    1717
    18 typedef struct
    19 {
    20   float xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz;
    21   float phi0, ksi1,ksi2,ksi3;
    22   int ne,np,ngood,npart;
     18/* typedef struct  */
     19/* { */
     20/*   float xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz; */
     21/*   float phi0, ksi1,ksi2,ksi3; */
     22/*   int ne,np,ngood,npart; */
    2323
    24   int readFromParmelaFile(FILE* fp)
    25   {
    26     return fscanf(fp, " %e %e %e %e %e %e %e %e %e %e %d %d %d %d %e %e %e %e \n", &xx, &xxp, &begamx,&yy,&yyp,&begamy,&z, &begamz,&phi,&wz,&ne,&np,&ngood,&npart,&phi0, &ksi1,&ksi2,&ksi3);
    27   }
    28   void imprim()
    29   {
    30     printf( " %e %e %e %e %e %e %e %e %e %e %d %d %d, %d %e %e %e %e \n", xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz,ne,np,ngood,npart,phi0, ksi1,ksi2,ksi3);
    31   }
    32 } parmelaParticle;
     24/*   int readFromParmelaFile(FILE* fp) */
     25/*   { */
     26/*     return fscanf(fp, " %e %e %e %e %e %e %e %e %e %e %d %d %d %d %e %e %e %e \n", &xx, &xxp, &begamx,&yy,&yyp,&begamy,&z, &begamz,&phi,&wz,&ne,&np,&ngood,&npart,&phi0, &ksi1,&ksi2,&ksi3); */
     27/*   } */
     28/*   void imprim() */
     29/*   { */
     30/*     printf( " %e %e %e %e %e %e %e %e %e %e %d %d %d, %d %e %e %e %e \n", xx, xxp, begamx,yy,yyp,begamy,z, begamz,phi,wz,ne,np,ngood,npart,phi0, ksi1,ksi2,ksi3); */
     31/*   } */
     32/* } parmelaParticle; */
    3333
    3434
     
    6363  virtual ~particleBeam() {;}
    6464
    65   bool setFromParmela(string workingDir,unsigned numeroElement,double referencefrequency);
     65  //  bool setFromParmela(string workingDir,unsigned numeroElement,double referencefrequency);
    6666  void buildMomentRepresentation();
    6767
     
    9292 
    9393  void set2Moments(beam2Moments& moments);
    94 
     94  void setWithParticles(vector<double>& centroid, bareParticle& referencePart, vector<bareParticle>& particles);
    9595  void printAllXYZ() const;
    9696
Note: See TracChangeset for help on using the changeset viewer.