source: PSPA/Interface_Web/trunk/pspaWT/sources/controler/include/abstractElement.h @ 304

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

introduction du logiciel 'generator' (debut)

File size: 1.8 KB
Line 
1#ifndef ABSTRACTELEMENTDEFINITION_SEEN
2#define ABSTRACTELEMENTDEFINITION_SEEN
3
4#include <cstdlib>
5#include <fstream>
6#include <string>
7
8#include "nomdElements.h"
9#include "nomDeLogiciel.h"
10#include "trivaluedBool.h"
11
12using namespace std;
13
14class abstractElement
15{
16    protected :
17   
18    int nbParam_;
19    string* parametersString_;
20    //  double phaseStep_; // a recuperer dans les parametres globaux (methode setPhaseStep)
21    double phaseStepMax_;
22   
23    double defaultLength_;
24    double defaultAperture_;
25    string defaultLabel_;
26   
27    string label_;
28    nomdElements elementName_;
29   
30    double lenghtElem_; // cm
31    double aperture_; // cm
32   
33    double stepmaxcm_;
34    //  bool curvedTrajectory_;
35   
36    void setDefaultValues();
37    void setDefaults();
38   
39    public :
40   
41    abstractElement();
42    abstractElement(string lab);
43    virtual ~abstractElement();
44   
45    void setParameters(double ll,double aper);
46    void setLabel(string lab);
47    string getLabel() const;
48    //  typedElement getName() const;
49    nomdElements getNomdElement() const;
50   
51    /* string getElementImage() const; */
52    /* string getElementName() const; */
53   
54    double getLenghtOfElement() const;
55    int getNbParams() const;
56    virtual trivaluedBool is_accepted_by_software(nomDeLogiciel soft) const;
57    virtual void setPhaseStep(double);
58    virtual double getInitialKineticEnergy() const;
59   
60    virtual void setParametersString(string* param) = 0;
61    virtual string* getParametersString() const = 0;
62    virtual string parmelaOutputFlow() const = 0;
63    virtual string transportOutputFlow() const = 0;
64    virtual string generatorOutputFlow() const;
65    virtual string FileOutputFlow() const = 0;
66    virtual void FileInput(ifstream& ifs) = 0;
67    virtual string print() = 0;
68};
69#endif
Note: See TracBrowser for help on using the repository browser.