CYCLUS
Loading...
Searching...
No Matches
matl_sell_policy.cycpp.h
Go to the documentation of this file.
1/// This includes the required header to add a material sell policy to
2/// archetypes. One should only need to:
3/// - '#include "toolkit/matl_sell_policy.cycpp.h"' in the header of the
4/// archetype class (it is strongly recommended to inject this snippet as
5/// `private:`, but archetype developers are free to make other choices)
6
7/// How to add parameters to this file:
8/// 1. Add the pragma. A default value MUST be added to ensure backwards
9/// compatibility.
10/// 2. Add "std::vector<int> cycpp_shape_<param_name> = {0};" to the end of the
11/// file with the other ones, reaplcing <param_name> with the name you put
12/// in the econ_params array (again, must match exactly).
13
14/// @addtogroup optionalparams
15/// @{
16/// sell_quantity restricts selling to only integer multiples of this value
17/// @}
18
19// clang-format off
20#pragma cyclus var {"default": 0,\
21 "tooltip":"sell quantity (kg)",\
22 "doc":"material will be sold in integer multiples of this quantity. If"\
23 " the buffer contains less than the sell quantity, no material will be"\
24 " offered", \
25 "uilabel":"Sell Quantity",\
26 "uitype": "range", \
27 "range": [0.0, CY_LARGE_DOUBLE], \
28 "units": "kg"}
30// clang-format on
31
32//// A policy for sending material
34
35// Required for compilation but not added by the cycpp preprocessor. Do not
36// remove. Must be one for each variable.
37std::vector<int> cycpp_shape_sell_quantity = {0};
MatlSellPolicy performs semi-automatic inventory management of a material buffer by making offers and...
double sell_quantity
cyclus::toolkit::MatlSellPolicy sell_policy
std::vector< int > cycpp_shape_sell_quantity