CYCLUS
Loading...
Searching...
No Matches
facility_cost.h
Go to the documentation of this file.
1#ifndef CYCLUS_SRC_TOOLKIT_FACILITY_COST_H_
2#define CYCLUS_SRC_TOOLKIT_FACILITY_COST_H_
3
4
5#include <string>
6#include "cyclus.h"
7
8namespace cyclus {
9namespace toolkit {
10
11/// @class FacilityCost
12/// The FacilityCost class is a class that handles basic cost data for
13/// Facilities within cyclus. The inner workings of this class are TBD,
14/// but it will first serve as a very basic showcase of code injection into
15/// Facility header files for state variables which can be common to all
16/// Facilities.
17
19 public:
20
21 /// The default constructor for FacilityCost. This creates an object
22 /// with all costs set to 0.0 as default, but with the option to set
23 /// them manually.
24 FacilityCost(double capital_cost = 0) : capital_cost_(capital_cost) {}
25
26 /// The default destructor for FacilityCost
27 ~FacilityCost() = default;
28
29 // A function to list all costs as strings
30 std::string EnumerateCosts();
31
32 // Setter for capital_cost_
34 capital_cost_ = capital_cost;
35 }
36
37 private:
38 /// Capital cost of the facility
39 double capital_cost_;
40
41};
42
43} // namespace toolkit
44} // namespace cyclus
45
46#endif // CYCLUS_SRC_TOOLKIT_POSITION_H_
The FacilityCost class is a class that handles basic cost data for Facilities within cyclus.
FacilityCost(double capital_cost=0)
The default constructor for FacilityCost.
void setCapitalCost(double capital_cost)
~FacilityCost()=default
The default destructor for FacilityCost.
double capital_cost
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
Definition agent.cc:14