Ignore:
Timestamp:
Nov 15, 2013, 3:30:50 PM (11 years ago)
Author:
touze
Message:

systeme periodique (mailles) + multipoles + madx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/controler/include/abstractSoftware.h

    r418 r431  
    33
    44#include "globalParameters.h"
     5#include "sectorParameters.h"
    56#include "particleBeam.h"
    67#include "nomDeLogiciel.h"
     
    1920
    2021 protected :
    21 
     22 
    2223  unsigned numeroDeb_, numeroFin_;
    2324  globalParameters* globParamPtr_;
     25  sectorParameters* sectParamPtr_; //xx
    2426  dataManager* dataManager_;
    2527  string inputFileName_;
    2628  nomDeLogiciel nameOfSoftware_;
    2729
    28     /**
     30  /**
    2931     Accepted elements list for this software
    30      */
     32  */
    3133  std::vector <nomdElements::typedElement> acceptedElements_;
    3234
    33     /**
     35  /**
    3436     Ignore software list for this element
    35      */
     37  */
    3638  std::vector <nomdElements::typedElement> ignoredElements_;
    37 
     39 
    3840  abstractSoftware();
    3941
     
    4244  bool ComputationLimitsOk() const;
    4345
    44 
    4546  void registerElement(nomdElements::typedElement nomdel,trivaluedBool b);
    4647
    4748 public :
    4849
    49   abstractSoftware(string inputFileName, globalParameters* globals, dataManager* dt);
     50  abstractSoftware(string,globalParameters*,dataManager*);
     51  abstractSoftware(string,sectorParameters*,dataManager*);
    5052  ~abstractSoftware() {;}
    5153
    5254  inline const nomDeLogiciel* getNomDeLogiciel() const {
    5355    return &nameOfSoftware_;
    54 }
     56  }
    5557
    5658  trivaluedBool doAcceptElement(nomdElements::typedElement typdel);
    5759
     60  virtual bool createInputFile(particleBeam* beamBefore,unsigned int numeroDeb, unsigned int numeroFin, string workingDir) = 0;
     61  virtual bool execute(string workingDir) = 0;
     62  virtual bool buildBeamAfterElements(string workingDir) = 0;
    5863
    59   virtual bool createInputFile(particleBeam* beamBefore,unsigned int numeroDeb, unsigned int numeroFin, string workingDir) = 0;
    60 
    61 
    62   virtual bool  execute(string workingDir) = 0;
    63 
    64  virtual bool buildBeamAfterElements(string workingDir) = 0;
    65 
    66     /** Color of the background of this sofware
    67      Should be a valid Css name as FFEEDD
    68      */
    69     virtual string getColor() = 0;
    70 
    71     /** Name of this software
    72      */
    73     inline string getName() const {
    74       return nameOfSoftware_.getString();
    75     }
    76 
     64  /** Color of the background of this sofware
     65      Should be a valid Css name as FFEEDD
     66  */
     67  virtual string getColor() = 0;
     68 
     69  /** Name of this software
     70   */
     71  inline string getName() const {
     72    return nameOfSoftware_.getString();
     73  }
    7774};
    7875#endif
Note: See TracChangeset for help on using the changeset viewer.