CLASS  5.1
Fuel Cycle Simulator
Storage.hxx
Go to the documentation of this file.
1 #ifndef _Storage_
2 #define _Storage_
3 
10 #include <vector>
11 
12 #include "CLASSBackEnd.hxx"
13 #include "IsotopicVector.hxx"
14 
15 
16 using namespace std;
17 typedef long long int cSecond;
18 
19 class CLASSLogger;
20 class DecayDataBank;
21 
22 //-----------------------------------------------------------------------------//
24 
34 //________________________________________________________________________
35 
36 
37 
38 class Storage : public CLASSBackEnd
39 {
40 public :
41 
42 
43 //********* Constructor/Destructor Method *********//
44 
49 
50  Storage();
51 
52  //{
54 
58  Storage(CLASSLogger* log);
59  //}
60 
61 
62  //{
64 
69  Storage(CLASSLogger* log, DecayDataBank* evolutivedb);
70  //}
71 
72 
73  ~Storage();
74 
76 
77 
78 
79 
80 //********* Set Method *********//
81 
86 
87  using CLASSBackEnd::SetName;
89 
91 
92 //********* Storage specific Method *********//
93 
98 
99  void TakeFractionFromStock(int IVId,double fraction);
100  void TakeFromStock(IsotopicVector isotopicvector);
101 
102 
103  void AddIV(IsotopicVector isotopicvector);
104  void AddToStock(IsotopicVector isotopicvector) { if( (int) isotopicvector.GetIsotopicQuantity().size() > 0 ) AddIV(isotopicvector);}
105  void RemoveEmptyStocks();
106 
108 
109 
110 
111 
112 //********* Evolution Method *********//
113 
118 
119  void Evolution(cSecond t);
120 
122 
123  //********* In/Out Method *********//
124 
129 
130  //{
132 
137  void Write(string filename,cSecond date = -1);
138  //}
139 
141 
142 protected :
143 
144 //********* Isotopic Quantity *********//
145 
146 
147 
148 //********* Private Method *********//
149  void StorageEvolution(cSecond t);
150 
151 
152 
153 
154  ClassDef(Storage,3);
155 };
156 
157 #endif
Defines a Storage object.
Definition: Storage.hxx:38
void AddToStock(IsotopicVector isotopicvector)
Add an Isotopicvector to the IVArray if it is not empty.
Definition: Storage.hxx:104
map< ZAI, double > GetIsotopicQuantity() const
Return the IsotopicVector as a map.
Definition: IsotopicVector.hxx:77
Allows to store & operate on radioactive sample.
Definition: IsotopicVector.hxx:37
Definition: CLASSBackEndDict.cxx:37
long long int cSecond
Definition: CLASSConstante.hxx:10
Header file for IsotopicVector class.
Describes outcore radioactive decays.
Definition: DecayDataBank.hxx:45
Object to handle output messages.
Definition: CLASSLogger.hxx:144
long long int cSecond
Definition: Storage.hxx:17
Class defining the common properties of all back end fuel cycle facilities.
Definition: CLASSBackEnd.hxx:26
void SetIsStorageType(bool val=true)
Set the fIsStorage bool.
Definition: CLASSBackEnd.hxx:157