source: PSPA/Interface_Web/trunk/pspaWT/sources/controler/include/softwareParmela.h @ 386

Last change on this file since 386 was 386, checked in by lemeur, 11 years ago

amélioration fiabilité graphique

File size: 1.2 KB
RevLine 
[295]1#ifndef SOFTWAREPARMELA_SEEN
2#define SOFTWAREPARMELA_SEEN
3
4#include "abstractSoftware.h"
5
6class softwareParmela : public abstractSoftware
7{
8
9 protected : 
10
[386]11
12 
[316]13  //    les elements de parmela sont indexes à partir du premier, il faut
14  // donc prevoir un offset pour le raccord a pspa
[386]15  //  unsigned offsetNumElem_;
[316]16
[386]17    vector<int> relativeParmelaElementIndices_;
18
[295]19  bool beamFromParmela(string workingDir,unsigned numeroElement, double referencefrequency, vector<double>& centroid, bareParticle& refPart,vector<bareParticle>& particles );
20
[312]21  bool beamToParmela(string workingDir, particleBeam* partic );
[386]22  void setRelativeParmelaElementIndices();
[295]23 public : 
[359]24    softwareParmela();
25   
26    softwareParmela(string inputFileName, globalParameters* globals, dataManager* beamLine);
[295]27
28  virtual ~softwareParmela() {;}
29
30
[316]31  virtual bool createInputFile(particleBeam* beamBefore, unsigned int numeroDeb, unsigned int numeroFin, string workingDir);
[295]32
[386]33  virtual bool  execute(string workingDir);
[295]34
35
[386]36virtual bool buildBeamAfterElements(string workingDir);
[295]37
[347]38    inline string getColor() {
39        return "#e09bdf";
40    }
[295]41
[386]42    /* inline string getName() const { */
43    /*     return "parmela"; */
44    /* } */
[295]45
46};
47#endif
Note: See TracBrowser for help on using the repository browser.