719 cyclus::Facility::InfileToDb(tree, di);
720 int rawcycpp_shape_in_commods[2] = {-1, -1};
722 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
724 int rawcycpp_shape_out_commods[2] = {-1, -1};
726 int rawcycpp_shape_in_recipe[1] = {-1};
728 int rawcycpp_shape_residence_time[1] = {-1};
730 int rawcycpp_shape_throughput[1] = {-1};
732 int rawcycpp_shape_max_inv_size[1] = {-1};
734 int rawcycpp_shape_discrete_handling[1] = {-1};
736 int rawcycpp_shape_package[1] = {-1};
737 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
738 int rawcycpp_shape_transport_unit[1] = {-1};
740 int rawcycpp_shape_inventory[2] = {-1, -1};
742 int rawcycpp_shape_stocks[2] = {-1, -1};
743 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
744 int rawcycpp_shape_ready[2] = {-1, -1};
745 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
746 int rawcycpp_shape_processing[2] = {-1, -1};
748 int rawcycpp_shape_inventory_tracker[1] = {-1};
750 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
751 cycpp_shape_active_buying_frequency_type = std::vector<int>(rawcycpp_shape_active_buying_frequency_type, rawcycpp_shape_active_buying_frequency_type + 1);
752 int rawcycpp_shape_active_buying_val[1] = {-1};
753 cycpp_shape_active_buying_val = std::vector<int>(rawcycpp_shape_active_buying_val, rawcycpp_shape_active_buying_val + 1);
754 int rawcycpp_shape_active_buying_min[1] = {-1};
755 cycpp_shape_active_buying_min = std::vector<int>(rawcycpp_shape_active_buying_min, rawcycpp_shape_active_buying_min + 1);
756 int rawcycpp_shape_active_buying_max[1] = {-1};
757 cycpp_shape_active_buying_max = std::vector<int>(rawcycpp_shape_active_buying_max, rawcycpp_shape_active_buying_max + 1);
758 int rawcycpp_shape_active_buying_mean[1] = {-1};
759 cycpp_shape_active_buying_mean = std::vector<int>(rawcycpp_shape_active_buying_mean, rawcycpp_shape_active_buying_mean + 1);
760 int rawcycpp_shape_active_buying_stddev[1] = {-1};
761 cycpp_shape_active_buying_stddev = std::vector<int>(rawcycpp_shape_active_buying_stddev, rawcycpp_shape_active_buying_stddev + 1);
762 int rawcycpp_shape_active_buying_end_probability[1] = {-1};
763 cycpp_shape_active_buying_end_probability = std::vector<int>(rawcycpp_shape_active_buying_end_probability, rawcycpp_shape_active_buying_end_probability + 1);
764 int rawcycpp_shape_active_buying_disruption_probability[1] = {-1};
765 cycpp_shape_active_buying_disruption_probability = std::vector<int>(rawcycpp_shape_active_buying_disruption_probability, rawcycpp_shape_active_buying_disruption_probability + 1);
766 int rawcycpp_shape_active_buying_disruption[1] = {-1};
767 cycpp_shape_active_buying_disruption = std::vector<int>(rawcycpp_shape_active_buying_disruption, rawcycpp_shape_active_buying_disruption + 1);
768 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
769 cycpp_shape_dormant_buying_frequency_type = std::vector<int>(rawcycpp_shape_dormant_buying_frequency_type, rawcycpp_shape_dormant_buying_frequency_type + 1);
770 int rawcycpp_shape_dormant_buying_val[1] = {-1};
771 cycpp_shape_dormant_buying_val = std::vector<int>(rawcycpp_shape_dormant_buying_val, rawcycpp_shape_dormant_buying_val + 1);
772 int rawcycpp_shape_dormant_buying_min[1] = {-1};
773 cycpp_shape_dormant_buying_min = std::vector<int>(rawcycpp_shape_dormant_buying_min, rawcycpp_shape_dormant_buying_min + 1);
774 int rawcycpp_shape_dormant_buying_max[1] = {-1};
775 cycpp_shape_dormant_buying_max = std::vector<int>(rawcycpp_shape_dormant_buying_max, rawcycpp_shape_dormant_buying_max + 1);
776 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
777 cycpp_shape_dormant_buying_mean = std::vector<int>(rawcycpp_shape_dormant_buying_mean, rawcycpp_shape_dormant_buying_mean + 1);
778 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
779 cycpp_shape_dormant_buying_stddev = std::vector<int>(rawcycpp_shape_dormant_buying_stddev, rawcycpp_shape_dormant_buying_stddev + 1);
780 int rawcycpp_shape_dormant_buying_end_probability[1] = {-1};
781 cycpp_shape_dormant_buying_end_probability = std::vector<int>(rawcycpp_shape_dormant_buying_end_probability, rawcycpp_shape_dormant_buying_end_probability + 1);
782 int rawcycpp_shape_dormant_buying_disruption_probability[1] = {-1};
783 cycpp_shape_dormant_buying_disruption_probability = std::vector<int>(rawcycpp_shape_dormant_buying_disruption_probability, rawcycpp_shape_dormant_buying_disruption_probability + 1);
784 int rawcycpp_shape_dormant_buying_disruption[1] = {-1};
785 cycpp_shape_dormant_buying_disruption = std::vector<int>(rawcycpp_shape_dormant_buying_disruption, rawcycpp_shape_dormant_buying_disruption + 1);
786 int rawcycpp_shape_buying_size_type[1] = {-1};
787 cycpp_shape_buying_size_type = std::vector<int>(rawcycpp_shape_buying_size_type, rawcycpp_shape_buying_size_type + 1);
788 int rawcycpp_shape_buying_size_val[1] = {-1};
789 cycpp_shape_buying_size_val = std::vector<int>(rawcycpp_shape_buying_size_val, rawcycpp_shape_buying_size_val + 1);
790 int rawcycpp_shape_buying_size_min[1] = {-1};
791 cycpp_shape_buying_size_min = std::vector<int>(rawcycpp_shape_buying_size_min, rawcycpp_shape_buying_size_min + 1);
792 int rawcycpp_shape_buying_size_max[1] = {-1};
793 cycpp_shape_buying_size_max = std::vector<int>(rawcycpp_shape_buying_size_max, rawcycpp_shape_buying_size_max + 1);
794 int rawcycpp_shape_buying_size_mean[1] = {-1};
795 cycpp_shape_buying_size_mean = std::vector<int>(rawcycpp_shape_buying_size_mean, rawcycpp_shape_buying_size_mean + 1);
796 int rawcycpp_shape_buying_size_stddev[1] = {-1};
797 cycpp_shape_buying_size_stddev = std::vector<int>(rawcycpp_shape_buying_size_stddev, rawcycpp_shape_buying_size_stddev + 1);
798 int rawcycpp_shape_reorder_point[1] = {-1};
799 cycpp_shape_reorder_point = std::vector<int>(rawcycpp_shape_reorder_point, rawcycpp_shape_reorder_point + 1);
800 int rawcycpp_shape_reorder_quantity[1] = {-1};
801 cycpp_shape_reorder_quantity = std::vector<int>(rawcycpp_shape_reorder_quantity, rawcycpp_shape_reorder_quantity + 1);
802 int rawcycpp_shape_cumulative_cap[1] = {-1};
803 cycpp_shape_cumulative_cap = std::vector<int>(rawcycpp_shape_cumulative_cap, rawcycpp_shape_cumulative_cap + 1);
804 int rawcycpp_shape_sell_quantity[1] = {-1};
805 cycpp_shape_sell_quantity = std::vector<int>(rawcycpp_shape_sell_quantity, rawcycpp_shape_sell_quantity + 1);
806 int rawcycpp_shape_latitude[1] = {-1};
807 cycpp_shape_latitude = std::vector<int>(rawcycpp_shape_latitude, rawcycpp_shape_latitude + 1);
808 int rawcycpp_shape_longitude[1] = {-1};
809 cycpp_shape_longitude = std::vector<int>(rawcycpp_shape_longitude, rawcycpp_shape_longitude + 1);
810 cyclus::InfileTree* sub = tree->SubTree(
"config/*");
814 cyclus::InfileTree* bub = sub->SubTree(
"in_commods", 0);
815 cyclus::InfileTree* sub = bub;
816 int n1 = sub->NMatches(
"val");
817 std::vector< std::string > in_commods_val;
818 in_commods_val.resize(n1);
819 for (
int i1 = 0; i1 < n1; ++i1) {
822 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
825 in_commods_val[i1] = elem;
829 if (sub->NMatches(
"in_commod_prefs") > 0) {
831 cyclus::InfileTree* bub = sub->SubTree(
"in_commod_prefs", 0);
832 cyclus::InfileTree* sub = bub;
833 int n1 = sub->NMatches(
"val");
834 std::vector< double > in_commod_prefs_val;
835 in_commod_prefs_val.resize(n1);
836 for (
int i1 = 0; i1 < n1; ++i1) {
839 double elem_in = cyclus::Query<double>(sub,
"val", i1);
842 in_commod_prefs_val[i1] = elem;
847 std::vector< double > in_commod_prefs_tmp;
848 in_commod_prefs_tmp.resize(0);
854 cyclus::InfileTree* bub = sub->SubTree(
"out_commods", 0);
855 cyclus::InfileTree* sub = bub;
856 int n1 = sub->NMatches(
"val");
857 std::vector< std::string > out_commods_val;
858 out_commods_val.resize(n1);
859 for (
int i1 = 0; i1 < n1; ++i1) {
862 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
865 out_commods_val[i1] = elem;
869 if (sub->NMatches(
"in_recipe") > 0) {
871 std::string in_recipe_val = cyclus::Query<std::string>(sub,
"in_recipe");
875 std::string in_recipe_tmp(
"");
878 if (sub->NMatches(
"residence_time") > 0) {
880 int residence_time_val = cyclus::Query<int>(sub,
"residence_time");
884 int residence_time_tmp = 0;
887 if (sub->NMatches(
"throughput") > 0) {
889 double throughput_val = cyclus::Query<double>(sub,
"throughput");
893 double throughput_tmp = 1e+299;
896 if (sub->NMatches(
"max_inv_size") > 0) {
898 double max_inv_size_val = cyclus::Query<double>(sub,
"max_inv_size");
902 double max_inv_size_tmp = 1e+299;
905 if (sub->NMatches(
"discrete_handling") > 0) {
907 bool discrete_handling_val = cyclus::Query<bool>(sub,
"discrete_handling");
911 bool discrete_handling_tmp =
false;
914 if (sub->NMatches(
"package") > 0) {
916 std::string package_val = cyclus::Query<std::string>(sub,
"package");
917 package = package_val;
920 std::string package_tmp(
"unpackaged");
921 package = package_tmp;
923 if (sub->NMatches(
"transport_unit") > 0) {
925 std::string transport_unit_val = cyclus::Query<std::string>(sub,
"transport_unit");
929 std::string transport_unit_tmp(
"unrestricted");
932 if (sub->NMatches(
"active_buying_frequency_type") > 0) {
934 std::string active_buying_frequency_type_val = cyclus::Query<std::string>(sub,
"active_buying_frequency_type");
935 active_buying_frequency_type = active_buying_frequency_type_val;
938 std::string active_buying_frequency_type_tmp(
"Fixed");
939 active_buying_frequency_type = active_buying_frequency_type_tmp;
941 if (sub->NMatches(
"active_buying_val") > 0) {
943 int active_buying_val_val = cyclus::Query<int>(sub,
"active_buying_val");
944 active_buying_val = active_buying_val_val;
947 int active_buying_val_tmp = -1;
948 active_buying_val = active_buying_val_tmp;
950 if (sub->NMatches(
"active_buying_min") > 0) {
952 int active_buying_min_val = cyclus::Query<int>(sub,
"active_buying_min");
953 active_buying_min = active_buying_min_val;
956 int active_buying_min_tmp = -1;
957 active_buying_min = active_buying_min_tmp;
959 if (sub->NMatches(
"active_buying_max") > 0) {
961 int active_buying_max_val = cyclus::Query<int>(sub,
"active_buying_max");
962 active_buying_max = active_buying_max_val;
965 int active_buying_max_tmp = -1;
966 active_buying_max = active_buying_max_tmp;
968 if (sub->NMatches(
"active_buying_mean") > 0) {
970 double active_buying_mean_val = cyclus::Query<double>(sub,
"active_buying_mean");
971 active_buying_mean = active_buying_mean_val;
974 double active_buying_mean_tmp = -1;
975 active_buying_mean = active_buying_mean_tmp;
977 if (sub->NMatches(
"active_buying_stddev") > 0) {
979 double active_buying_stddev_val = cyclus::Query<double>(sub,
"active_buying_stddev");
980 active_buying_stddev = active_buying_stddev_val;
983 double active_buying_stddev_tmp = -1;
984 active_buying_stddev = active_buying_stddev_tmp;
986 if (sub->NMatches(
"active_buying_end_probability") > 0) {
988 double active_buying_end_probability_val = cyclus::Query<double>(sub,
"active_buying_end_probability");
989 active_buying_end_probability = active_buying_end_probability_val;
992 double active_buying_end_probability_tmp = 0;
993 active_buying_end_probability = active_buying_end_probability_tmp;
995 if (sub->NMatches(
"active_buying_disruption_probability") > 0) {
997 double active_buying_disruption_probability_val = cyclus::Query<double>(sub,
"active_buying_disruption_probability");
998 active_buying_disruption_probability = active_buying_disruption_probability_val;
1001 double active_buying_disruption_probability_tmp = 0;
1002 active_buying_disruption_probability = active_buying_disruption_probability_tmp;
1004 if (sub->NMatches(
"active_buying_disruption") > 0) {
1006 int active_buying_disruption_val = cyclus::Query<int>(sub,
"active_buying_disruption");
1007 active_buying_disruption = active_buying_disruption_val;
1010 int active_buying_disruption_tmp = -1;
1011 active_buying_disruption = active_buying_disruption_tmp;
1013 if (sub->NMatches(
"dormant_buying_frequency_type") > 0) {
1015 std::string dormant_buying_frequency_type_val = cyclus::Query<std::string>(sub,
"dormant_buying_frequency_type");
1016 dormant_buying_frequency_type = dormant_buying_frequency_type_val;
1019 std::string dormant_buying_frequency_type_tmp(
"Fixed");
1020 dormant_buying_frequency_type = dormant_buying_frequency_type_tmp;
1022 if (sub->NMatches(
"dormant_buying_val") > 0) {
1024 int dormant_buying_val_val = cyclus::Query<int>(sub,
"dormant_buying_val");
1025 dormant_buying_val = dormant_buying_val_val;
1028 int dormant_buying_val_tmp = -1;
1029 dormant_buying_val = dormant_buying_val_tmp;
1031 if (sub->NMatches(
"dormant_buying_min") > 0) {
1033 int dormant_buying_min_val = cyclus::Query<int>(sub,
"dormant_buying_min");
1034 dormant_buying_min = dormant_buying_min_val;
1037 int dormant_buying_min_tmp = -1;
1038 dormant_buying_min = dormant_buying_min_tmp;
1040 if (sub->NMatches(
"dormant_buying_max") > 0) {
1042 int dormant_buying_max_val = cyclus::Query<int>(sub,
"dormant_buying_max");
1043 dormant_buying_max = dormant_buying_max_val;
1046 int dormant_buying_max_tmp = -1;
1047 dormant_buying_max = dormant_buying_max_tmp;
1049 if (sub->NMatches(
"dormant_buying_mean") > 0) {
1051 double dormant_buying_mean_val = cyclus::Query<double>(sub,
"dormant_buying_mean");
1052 dormant_buying_mean = dormant_buying_mean_val;
1055 double dormant_buying_mean_tmp = -1;
1056 dormant_buying_mean = dormant_buying_mean_tmp;
1058 if (sub->NMatches(
"dormant_buying_stddev") > 0) {
1060 double dormant_buying_stddev_val = cyclus::Query<double>(sub,
"dormant_buying_stddev");
1061 dormant_buying_stddev = dormant_buying_stddev_val;
1064 double dormant_buying_stddev_tmp = -1;
1065 dormant_buying_stddev = dormant_buying_stddev_tmp;
1067 if (sub->NMatches(
"dormant_buying_end_probability") > 0) {
1069 double dormant_buying_end_probability_val = cyclus::Query<double>(sub,
"dormant_buying_end_probability");
1070 dormant_buying_end_probability = dormant_buying_end_probability_val;
1073 double dormant_buying_end_probability_tmp = 0;
1074 dormant_buying_end_probability = dormant_buying_end_probability_tmp;
1076 if (sub->NMatches(
"dormant_buying_disruption_probability") > 0) {
1078 double dormant_buying_disruption_probability_val = cyclus::Query<double>(sub,
"dormant_buying_disruption_probability");
1079 dormant_buying_disruption_probability = dormant_buying_disruption_probability_val;
1082 double dormant_buying_disruption_probability_tmp = 0;
1083 dormant_buying_disruption_probability = dormant_buying_disruption_probability_tmp;
1085 if (sub->NMatches(
"dormant_buying_disruption") > 0) {
1087 int dormant_buying_disruption_val = cyclus::Query<int>(sub,
"dormant_buying_disruption");
1088 dormant_buying_disruption = dormant_buying_disruption_val;
1091 int dormant_buying_disruption_tmp = -1;
1092 dormant_buying_disruption = dormant_buying_disruption_tmp;
1094 if (sub->NMatches(
"buying_size_type") > 0) {
1096 std::string buying_size_type_val = cyclus::Query<std::string>(sub,
"buying_size_type");
1097 buying_size_type = buying_size_type_val;
1100 std::string buying_size_type_tmp(
"Fixed");
1101 buying_size_type = buying_size_type_tmp;
1103 if (sub->NMatches(
"buying_size_val") > 0) {
1105 double buying_size_val_val = cyclus::Query<double>(sub,
"buying_size_val");
1106 buying_size_val = buying_size_val_val;
1109 double buying_size_val_tmp = 1.0;
1110 buying_size_val = buying_size_val_tmp;
1112 if (sub->NMatches(
"buying_size_min") > 0) {
1114 double buying_size_min_val = cyclus::Query<double>(sub,
"buying_size_min");
1115 buying_size_min = buying_size_min_val;
1118 double buying_size_min_tmp = -1.0;
1119 buying_size_min = buying_size_min_tmp;
1121 if (sub->NMatches(
"buying_size_max") > 0) {
1123 double buying_size_max_val = cyclus::Query<double>(sub,
"buying_size_max");
1124 buying_size_max = buying_size_max_val;
1127 double buying_size_max_tmp = -1.0;
1128 buying_size_max = buying_size_max_tmp;
1130 if (sub->NMatches(
"buying_size_mean") > 0) {
1132 double buying_size_mean_val = cyclus::Query<double>(sub,
"buying_size_mean");
1133 buying_size_mean = buying_size_mean_val;
1136 double buying_size_mean_tmp = -1.0;
1137 buying_size_mean = buying_size_mean_tmp;
1139 if (sub->NMatches(
"buying_size_stddev") > 0) {
1141 double buying_size_stddev_val = cyclus::Query<double>(sub,
"buying_size_stddev");
1142 buying_size_stddev = buying_size_stddev_val;
1145 double buying_size_stddev_tmp = -1.0;
1146 buying_size_stddev = buying_size_stddev_tmp;
1148 if (sub->NMatches(
"reorder_point") > 0) {
1150 double reorder_point_val = cyclus::Query<double>(sub,
"reorder_point");
1151 reorder_point = reorder_point_val;
1154 double reorder_point_tmp = -1;
1155 reorder_point = reorder_point_tmp;
1157 if (sub->NMatches(
"reorder_quantity") > 0) {
1159 double reorder_quantity_val = cyclus::Query<double>(sub,
"reorder_quantity");
1160 reorder_quantity = reorder_quantity_val;
1163 double reorder_quantity_tmp = -1;
1164 reorder_quantity = reorder_quantity_tmp;
1166 if (sub->NMatches(
"cumulative_cap") > 0) {
1168 double cumulative_cap_val = cyclus::Query<double>(sub,
"cumulative_cap");
1169 cumulative_cap = cumulative_cap_val;
1172 double cumulative_cap_tmp = -1;
1173 cumulative_cap = cumulative_cap_tmp;
1175 if (sub->NMatches(
"sell_quantity") > 0) {
1177 double sell_quantity_val = cyclus::Query<double>(sub,
"sell_quantity");
1178 sell_quantity = sell_quantity_val;
1181 double sell_quantity_tmp = 0;
1182 sell_quantity = sell_quantity_tmp;
1184 if (sub->NMatches(
"latitude") > 0) {
1186 double latitude_val = cyclus::Query<double>(sub,
"latitude");
1187 latitude = latitude_val;
1190 double latitude_tmp = 0.0;
1191 latitude = latitude_tmp;
1193 if (sub->NMatches(
"longitude") > 0) {
1195 double longitude_val = cyclus::Query<double>(sub,
"longitude");
1196 longitude = longitude_val;
1199 double longitude_tmp = 0.0;
1200 longitude = longitude_tmp;
1213 ->AddVal(
"active_buying_frequency_type", active_buying_frequency_type, &cycpp_shape_active_buying_frequency_type)
1214 ->AddVal(
"active_buying_val", active_buying_val, &cycpp_shape_active_buying_val)
1215 ->AddVal(
"active_buying_min", active_buying_min, &cycpp_shape_active_buying_min)
1216 ->AddVal(
"active_buying_max", active_buying_max, &cycpp_shape_active_buying_max)
1217 ->AddVal(
"active_buying_mean", active_buying_mean, &cycpp_shape_active_buying_mean)
1218 ->AddVal(
"active_buying_stddev", active_buying_stddev, &cycpp_shape_active_buying_stddev)
1219 ->AddVal(
"active_buying_end_probability", active_buying_end_probability, &cycpp_shape_active_buying_end_probability)
1220 ->AddVal(
"active_buying_disruption_probability", active_buying_disruption_probability, &cycpp_shape_active_buying_disruption_probability)
1221 ->AddVal(
"active_buying_disruption", active_buying_disruption, &cycpp_shape_active_buying_disruption)
1222 ->AddVal(
"dormant_buying_frequency_type", dormant_buying_frequency_type, &cycpp_shape_dormant_buying_frequency_type)
1223 ->AddVal(
"dormant_buying_val", dormant_buying_val, &cycpp_shape_dormant_buying_val)
1224 ->AddVal(
"dormant_buying_min", dormant_buying_min, &cycpp_shape_dormant_buying_min)
1225 ->AddVal(
"dormant_buying_max", dormant_buying_max, &cycpp_shape_dormant_buying_max)
1226 ->AddVal(
"dormant_buying_mean", dormant_buying_mean, &cycpp_shape_dormant_buying_mean)
1227 ->AddVal(
"dormant_buying_stddev", dormant_buying_stddev, &cycpp_shape_dormant_buying_stddev)
1228 ->AddVal(
"dormant_buying_end_probability", dormant_buying_end_probability, &cycpp_shape_dormant_buying_end_probability)
1229 ->AddVal(
"dormant_buying_disruption_probability", dormant_buying_disruption_probability, &cycpp_shape_dormant_buying_disruption_probability)
1230 ->AddVal(
"dormant_buying_disruption", dormant_buying_disruption, &cycpp_shape_dormant_buying_disruption)
1231 ->AddVal(
"buying_size_type", buying_size_type, &cycpp_shape_buying_size_type)
1232 ->AddVal(
"buying_size_val", buying_size_val, &cycpp_shape_buying_size_val)
1233 ->AddVal(
"buying_size_min", buying_size_min, &cycpp_shape_buying_size_min)
1234 ->AddVal(
"buying_size_max", buying_size_max, &cycpp_shape_buying_size_max)
1235 ->AddVal(
"buying_size_mean", buying_size_mean, &cycpp_shape_buying_size_mean)
1236 ->AddVal(
"buying_size_stddev", buying_size_stddev, &cycpp_shape_buying_size_stddev)
1237 ->AddVal(
"reorder_point", reorder_point, &cycpp_shape_reorder_point)
1238 ->AddVal(
"reorder_quantity", reorder_quantity, &cycpp_shape_reorder_quantity)
1239 ->AddVal(
"cumulative_cap", cumulative_cap, &cycpp_shape_cumulative_cap)
1240 ->AddVal(
"sell_quantity", sell_quantity, &cycpp_shape_sell_quantity)
1241 ->AddVal(
"latitude", latitude, &cycpp_shape_latitude)
1242 ->AddVal(
"longitude", longitude, &cycpp_shape_longitude)
1302 int rawcycpp_shape_in_commods[2] = {-1, -1};
1304 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
1306 int rawcycpp_shape_out_commods[2] = {-1, -1};
1308 int rawcycpp_shape_in_recipe[1] = {-1};
1310 int rawcycpp_shape_residence_time[1] = {-1};
1312 int rawcycpp_shape_throughput[1] = {-1};
1314 int rawcycpp_shape_max_inv_size[1] = {-1};
1316 int rawcycpp_shape_discrete_handling[1] = {-1};
1318 int rawcycpp_shape_package[1] = {-1};
1319 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
1320 int rawcycpp_shape_transport_unit[1] = {-1};
1322 int rawcycpp_shape_inventory[2] = {-1, -1};
1324 int rawcycpp_shape_stocks[2] = {-1, -1};
1325 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
1326 int rawcycpp_shape_ready[2] = {-1, -1};
1327 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
1328 int rawcycpp_shape_processing[2] = {-1, -1};
1330 int rawcycpp_shape_inventory_tracker[1] = {-1};
1332 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
1333 cycpp_shape_active_buying_frequency_type = std::vector<int>(rawcycpp_shape_active_buying_frequency_type, rawcycpp_shape_active_buying_frequency_type + 1);
1334 int rawcycpp_shape_active_buying_val[1] = {-1};
1335 cycpp_shape_active_buying_val = std::vector<int>(rawcycpp_shape_active_buying_val, rawcycpp_shape_active_buying_val + 1);
1336 int rawcycpp_shape_active_buying_min[1] = {-1};
1337 cycpp_shape_active_buying_min = std::vector<int>(rawcycpp_shape_active_buying_min, rawcycpp_shape_active_buying_min + 1);
1338 int rawcycpp_shape_active_buying_max[1] = {-1};
1339 cycpp_shape_active_buying_max = std::vector<int>(rawcycpp_shape_active_buying_max, rawcycpp_shape_active_buying_max + 1);
1340 int rawcycpp_shape_active_buying_mean[1] = {-1};
1341 cycpp_shape_active_buying_mean = std::vector<int>(rawcycpp_shape_active_buying_mean, rawcycpp_shape_active_buying_mean + 1);
1342 int rawcycpp_shape_active_buying_stddev[1] = {-1};
1343 cycpp_shape_active_buying_stddev = std::vector<int>(rawcycpp_shape_active_buying_stddev, rawcycpp_shape_active_buying_stddev + 1);
1344 int rawcycpp_shape_active_buying_end_probability[1] = {-1};
1345 cycpp_shape_active_buying_end_probability = std::vector<int>(rawcycpp_shape_active_buying_end_probability, rawcycpp_shape_active_buying_end_probability + 1);
1346 int rawcycpp_shape_active_buying_disruption_probability[1] = {-1};
1347 cycpp_shape_active_buying_disruption_probability = std::vector<int>(rawcycpp_shape_active_buying_disruption_probability, rawcycpp_shape_active_buying_disruption_probability + 1);
1348 int rawcycpp_shape_active_buying_disruption[1] = {-1};
1349 cycpp_shape_active_buying_disruption = std::vector<int>(rawcycpp_shape_active_buying_disruption, rawcycpp_shape_active_buying_disruption + 1);
1350 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
1351 cycpp_shape_dormant_buying_frequency_type = std::vector<int>(rawcycpp_shape_dormant_buying_frequency_type, rawcycpp_shape_dormant_buying_frequency_type + 1);
1352 int rawcycpp_shape_dormant_buying_val[1] = {-1};
1353 cycpp_shape_dormant_buying_val = std::vector<int>(rawcycpp_shape_dormant_buying_val, rawcycpp_shape_dormant_buying_val + 1);
1354 int rawcycpp_shape_dormant_buying_min[1] = {-1};
1355 cycpp_shape_dormant_buying_min = std::vector<int>(rawcycpp_shape_dormant_buying_min, rawcycpp_shape_dormant_buying_min + 1);
1356 int rawcycpp_shape_dormant_buying_max[1] = {-1};
1357 cycpp_shape_dormant_buying_max = std::vector<int>(rawcycpp_shape_dormant_buying_max, rawcycpp_shape_dormant_buying_max + 1);
1358 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
1359 cycpp_shape_dormant_buying_mean = std::vector<int>(rawcycpp_shape_dormant_buying_mean, rawcycpp_shape_dormant_buying_mean + 1);
1360 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
1361 cycpp_shape_dormant_buying_stddev = std::vector<int>(rawcycpp_shape_dormant_buying_stddev, rawcycpp_shape_dormant_buying_stddev + 1);
1362 int rawcycpp_shape_dormant_buying_end_probability[1] = {-1};
1363 cycpp_shape_dormant_buying_end_probability = std::vector<int>(rawcycpp_shape_dormant_buying_end_probability, rawcycpp_shape_dormant_buying_end_probability + 1);
1364 int rawcycpp_shape_dormant_buying_disruption_probability[1] = {-1};
1365 cycpp_shape_dormant_buying_disruption_probability = std::vector<int>(rawcycpp_shape_dormant_buying_disruption_probability, rawcycpp_shape_dormant_buying_disruption_probability + 1);
1366 int rawcycpp_shape_dormant_buying_disruption[1] = {-1};
1367 cycpp_shape_dormant_buying_disruption = std::vector<int>(rawcycpp_shape_dormant_buying_disruption, rawcycpp_shape_dormant_buying_disruption + 1);
1368 int rawcycpp_shape_buying_size_type[1] = {-1};
1369 cycpp_shape_buying_size_type = std::vector<int>(rawcycpp_shape_buying_size_type, rawcycpp_shape_buying_size_type + 1);
1370 int rawcycpp_shape_buying_size_val[1] = {-1};
1371 cycpp_shape_buying_size_val = std::vector<int>(rawcycpp_shape_buying_size_val, rawcycpp_shape_buying_size_val + 1);
1372 int rawcycpp_shape_buying_size_min[1] = {-1};
1373 cycpp_shape_buying_size_min = std::vector<int>(rawcycpp_shape_buying_size_min, rawcycpp_shape_buying_size_min + 1);
1374 int rawcycpp_shape_buying_size_max[1] = {-1};
1375 cycpp_shape_buying_size_max = std::vector<int>(rawcycpp_shape_buying_size_max, rawcycpp_shape_buying_size_max + 1);
1376 int rawcycpp_shape_buying_size_mean[1] = {-1};
1377 cycpp_shape_buying_size_mean = std::vector<int>(rawcycpp_shape_buying_size_mean, rawcycpp_shape_buying_size_mean + 1);
1378 int rawcycpp_shape_buying_size_stddev[1] = {-1};
1379 cycpp_shape_buying_size_stddev = std::vector<int>(rawcycpp_shape_buying_size_stddev, rawcycpp_shape_buying_size_stddev + 1);
1380 int rawcycpp_shape_reorder_point[1] = {-1};
1381 cycpp_shape_reorder_point = std::vector<int>(rawcycpp_shape_reorder_point, rawcycpp_shape_reorder_point + 1);
1382 int rawcycpp_shape_reorder_quantity[1] = {-1};
1383 cycpp_shape_reorder_quantity = std::vector<int>(rawcycpp_shape_reorder_quantity, rawcycpp_shape_reorder_quantity + 1);
1384 int rawcycpp_shape_cumulative_cap[1] = {-1};
1385 cycpp_shape_cumulative_cap = std::vector<int>(rawcycpp_shape_cumulative_cap, rawcycpp_shape_cumulative_cap + 1);
1386 int rawcycpp_shape_sell_quantity[1] = {-1};
1387 cycpp_shape_sell_quantity = std::vector<int>(rawcycpp_shape_sell_quantity, rawcycpp_shape_sell_quantity + 1);
1388 int rawcycpp_shape_latitude[1] = {-1};
1389 cycpp_shape_latitude = std::vector<int>(rawcycpp_shape_latitude, rawcycpp_shape_latitude + 1);
1390 int rawcycpp_shape_longitude[1] = {-1};
1391 cycpp_shape_longitude = std::vector<int>(rawcycpp_shape_longitude, rawcycpp_shape_longitude + 1);
1400 package = m->package;
1402 active_buying_frequency_type = m->active_buying_frequency_type;
1403 active_buying_val = m->active_buying_val;
1404 active_buying_min = m->active_buying_min;
1405 active_buying_max = m->active_buying_max;
1406 active_buying_mean = m->active_buying_mean;
1407 active_buying_stddev = m->active_buying_stddev;
1408 active_buying_end_probability = m->active_buying_end_probability;
1409 active_buying_disruption_probability = m->active_buying_disruption_probability;
1410 active_buying_disruption = m->active_buying_disruption;
1411 dormant_buying_frequency_type = m->dormant_buying_frequency_type;
1412 dormant_buying_val = m->dormant_buying_val;
1413 dormant_buying_min = m->dormant_buying_min;
1414 dormant_buying_max = m->dormant_buying_max;
1415 dormant_buying_mean = m->dormant_buying_mean;
1416 dormant_buying_stddev = m->dormant_buying_stddev;
1417 dormant_buying_end_probability = m->dormant_buying_end_probability;
1418 dormant_buying_disruption_probability = m->dormant_buying_disruption_probability;
1419 dormant_buying_disruption = m->dormant_buying_disruption;
1420 buying_size_type = m->buying_size_type;
1421 buying_size_val = m->buying_size_val;
1422 buying_size_min = m->buying_size_min;
1423 buying_size_max = m->buying_size_max;
1424 buying_size_mean = m->buying_size_mean;
1425 buying_size_stddev = m->buying_size_stddev;
1426 reorder_point = m->reorder_point;
1427 reorder_quantity = m->reorder_quantity;
1428 cumulative_cap = m->cumulative_cap;
1429 sell_quantity = m->sell_quantity;
1430 latitude = m->latitude;
1431 longitude = m->longitude;
1437#line 34 "/cycamore/src/storage.cc"
1438 cyclus::toolkit::CommodityProducer::Copy(m);
1443 int rawcycpp_shape_in_commods[2] = {-1, -1};
1445 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
1447 int rawcycpp_shape_out_commods[2] = {-1, -1};
1449 int rawcycpp_shape_in_recipe[1] = {-1};
1451 int rawcycpp_shape_residence_time[1] = {-1};
1453 int rawcycpp_shape_throughput[1] = {-1};
1455 int rawcycpp_shape_max_inv_size[1] = {-1};
1457 int rawcycpp_shape_discrete_handling[1] = {-1};
1459 int rawcycpp_shape_package[1] = {-1};
1460 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
1461 int rawcycpp_shape_transport_unit[1] = {-1};
1463 int rawcycpp_shape_inventory[2] = {-1, -1};
1465 int rawcycpp_shape_stocks[2] = {-1, -1};
1466 cycpp_shape_stocks = std::vector<int>(rawcycpp_shape_stocks, rawcycpp_shape_stocks + 2);
1467 int rawcycpp_shape_ready[2] = {-1, -1};
1468 cycpp_shape_ready = std::vector<int>(rawcycpp_shape_ready, rawcycpp_shape_ready + 2);
1469 int rawcycpp_shape_processing[2] = {-1, -1};
1471 int rawcycpp_shape_inventory_tracker[1] = {-1};
1473 int rawcycpp_shape_active_buying_frequency_type[1] = {-1};
1474 cycpp_shape_active_buying_frequency_type = std::vector<int>(rawcycpp_shape_active_buying_frequency_type, rawcycpp_shape_active_buying_frequency_type + 1);
1475 int rawcycpp_shape_active_buying_val[1] = {-1};
1476 cycpp_shape_active_buying_val = std::vector<int>(rawcycpp_shape_active_buying_val, rawcycpp_shape_active_buying_val + 1);
1477 int rawcycpp_shape_active_buying_min[1] = {-1};
1478 cycpp_shape_active_buying_min = std::vector<int>(rawcycpp_shape_active_buying_min, rawcycpp_shape_active_buying_min + 1);
1479 int rawcycpp_shape_active_buying_max[1] = {-1};
1480 cycpp_shape_active_buying_max = std::vector<int>(rawcycpp_shape_active_buying_max, rawcycpp_shape_active_buying_max + 1);
1481 int rawcycpp_shape_active_buying_mean[1] = {-1};
1482 cycpp_shape_active_buying_mean = std::vector<int>(rawcycpp_shape_active_buying_mean, rawcycpp_shape_active_buying_mean + 1);
1483 int rawcycpp_shape_active_buying_stddev[1] = {-1};
1484 cycpp_shape_active_buying_stddev = std::vector<int>(rawcycpp_shape_active_buying_stddev, rawcycpp_shape_active_buying_stddev + 1);
1485 int rawcycpp_shape_active_buying_end_probability[1] = {-1};
1486 cycpp_shape_active_buying_end_probability = std::vector<int>(rawcycpp_shape_active_buying_end_probability, rawcycpp_shape_active_buying_end_probability + 1);
1487 int rawcycpp_shape_active_buying_disruption_probability[1] = {-1};
1488 cycpp_shape_active_buying_disruption_probability = std::vector<int>(rawcycpp_shape_active_buying_disruption_probability, rawcycpp_shape_active_buying_disruption_probability + 1);
1489 int rawcycpp_shape_active_buying_disruption[1] = {-1};
1490 cycpp_shape_active_buying_disruption = std::vector<int>(rawcycpp_shape_active_buying_disruption, rawcycpp_shape_active_buying_disruption + 1);
1491 int rawcycpp_shape_dormant_buying_frequency_type[1] = {-1};
1492 cycpp_shape_dormant_buying_frequency_type = std::vector<int>(rawcycpp_shape_dormant_buying_frequency_type, rawcycpp_shape_dormant_buying_frequency_type + 1);
1493 int rawcycpp_shape_dormant_buying_val[1] = {-1};
1494 cycpp_shape_dormant_buying_val = std::vector<int>(rawcycpp_shape_dormant_buying_val, rawcycpp_shape_dormant_buying_val + 1);
1495 int rawcycpp_shape_dormant_buying_min[1] = {-1};
1496 cycpp_shape_dormant_buying_min = std::vector<int>(rawcycpp_shape_dormant_buying_min, rawcycpp_shape_dormant_buying_min + 1);
1497 int rawcycpp_shape_dormant_buying_max[1] = {-1};
1498 cycpp_shape_dormant_buying_max = std::vector<int>(rawcycpp_shape_dormant_buying_max, rawcycpp_shape_dormant_buying_max + 1);
1499 int rawcycpp_shape_dormant_buying_mean[1] = {-1};
1500 cycpp_shape_dormant_buying_mean = std::vector<int>(rawcycpp_shape_dormant_buying_mean, rawcycpp_shape_dormant_buying_mean + 1);
1501 int rawcycpp_shape_dormant_buying_stddev[1] = {-1};
1502 cycpp_shape_dormant_buying_stddev = std::vector<int>(rawcycpp_shape_dormant_buying_stddev, rawcycpp_shape_dormant_buying_stddev + 1);
1503 int rawcycpp_shape_dormant_buying_end_probability[1] = {-1};
1504 cycpp_shape_dormant_buying_end_probability = std::vector<int>(rawcycpp_shape_dormant_buying_end_probability, rawcycpp_shape_dormant_buying_end_probability + 1);
1505 int rawcycpp_shape_dormant_buying_disruption_probability[1] = {-1};
1506 cycpp_shape_dormant_buying_disruption_probability = std::vector<int>(rawcycpp_shape_dormant_buying_disruption_probability, rawcycpp_shape_dormant_buying_disruption_probability + 1);
1507 int rawcycpp_shape_dormant_buying_disruption[1] = {-1};
1508 cycpp_shape_dormant_buying_disruption = std::vector<int>(rawcycpp_shape_dormant_buying_disruption, rawcycpp_shape_dormant_buying_disruption + 1);
1509 int rawcycpp_shape_buying_size_type[1] = {-1};
1510 cycpp_shape_buying_size_type = std::vector<int>(rawcycpp_shape_buying_size_type, rawcycpp_shape_buying_size_type + 1);
1511 int rawcycpp_shape_buying_size_val[1] = {-1};
1512 cycpp_shape_buying_size_val = std::vector<int>(rawcycpp_shape_buying_size_val, rawcycpp_shape_buying_size_val + 1);
1513 int rawcycpp_shape_buying_size_min[1] = {-1};
1514 cycpp_shape_buying_size_min = std::vector<int>(rawcycpp_shape_buying_size_min, rawcycpp_shape_buying_size_min + 1);
1515 int rawcycpp_shape_buying_size_max[1] = {-1};
1516 cycpp_shape_buying_size_max = std::vector<int>(rawcycpp_shape_buying_size_max, rawcycpp_shape_buying_size_max + 1);
1517 int rawcycpp_shape_buying_size_mean[1] = {-1};
1518 cycpp_shape_buying_size_mean = std::vector<int>(rawcycpp_shape_buying_size_mean, rawcycpp_shape_buying_size_mean + 1);
1519 int rawcycpp_shape_buying_size_stddev[1] = {-1};
1520 cycpp_shape_buying_size_stddev = std::vector<int>(rawcycpp_shape_buying_size_stddev, rawcycpp_shape_buying_size_stddev + 1);
1521 int rawcycpp_shape_reorder_point[1] = {-1};
1522 cycpp_shape_reorder_point = std::vector<int>(rawcycpp_shape_reorder_point, rawcycpp_shape_reorder_point + 1);
1523 int rawcycpp_shape_reorder_quantity[1] = {-1};
1524 cycpp_shape_reorder_quantity = std::vector<int>(rawcycpp_shape_reorder_quantity, rawcycpp_shape_reorder_quantity + 1);
1525 int rawcycpp_shape_cumulative_cap[1] = {-1};
1526 cycpp_shape_cumulative_cap = std::vector<int>(rawcycpp_shape_cumulative_cap, rawcycpp_shape_cumulative_cap + 1);
1527 int rawcycpp_shape_sell_quantity[1] = {-1};
1528 cycpp_shape_sell_quantity = std::vector<int>(rawcycpp_shape_sell_quantity, rawcycpp_shape_sell_quantity + 1);
1529 int rawcycpp_shape_latitude[1] = {-1};
1530 cycpp_shape_latitude = std::vector<int>(rawcycpp_shape_latitude, rawcycpp_shape_latitude + 1);
1531 int rawcycpp_shape_longitude[1] = {-1};
1532 cycpp_shape_longitude = std::vector<int>(rawcycpp_shape_longitude, rawcycpp_shape_longitude + 1);
1533 cyclus::QueryResult qr = b->Query(
"Info", NULL);
1534 in_commods = qr.GetVal<std::vector< std::string > >(
"in_commods");
1535 in_commod_prefs = qr.GetVal<std::vector< double > >(
"in_commod_prefs");
1536 out_commods = qr.GetVal<std::vector< std::string > >(
"out_commods");
1537 in_recipe = qr.GetVal<std::string>(
"in_recipe");
1539 throughput = qr.GetVal<
double>(
"throughput");
1542 package = qr.GetVal<std::string>("package");
1544 active_buying_frequency_type = qr.GetVal<std::string>(
"active_buying_frequency_type");
1545 active_buying_val = qr.GetVal<
int>(
"active_buying_val");
1546 active_buying_min = qr.GetVal<
int>(
"active_buying_min");
1547 active_buying_max = qr.GetVal<
int>(
"active_buying_max");
1548 active_buying_mean = qr.GetVal<
double>(
"active_buying_mean");
1549 active_buying_stddev = qr.GetVal<
double>(
"active_buying_stddev");
1550 active_buying_end_probability = qr.GetVal<
double>(
"active_buying_end_probability");
1551 active_buying_disruption_probability = qr.GetVal<
double>(
"active_buying_disruption_probability");
1552 active_buying_disruption = qr.GetVal<
int>(
"active_buying_disruption");
1553 dormant_buying_frequency_type = qr.GetVal<std::string>(
"dormant_buying_frequency_type");
1554 dormant_buying_val = qr.GetVal<
int>(
"dormant_buying_val");
1555 dormant_buying_min = qr.GetVal<
int>(
"dormant_buying_min");
1556 dormant_buying_max = qr.GetVal<
int>(
"dormant_buying_max");
1557 dormant_buying_mean = qr.GetVal<
double>(
"dormant_buying_mean");
1558 dormant_buying_stddev = qr.GetVal<
double>(
"dormant_buying_stddev");
1559 dormant_buying_end_probability = qr.GetVal<
double>(
"dormant_buying_end_probability");
1560 dormant_buying_disruption_probability = qr.GetVal<
double>(
"dormant_buying_disruption_probability");
1561 dormant_buying_disruption = qr.GetVal<
int>(
"dormant_buying_disruption");
1562 buying_size_type = qr.GetVal<std::string>(
"buying_size_type");
1563 buying_size_val = qr.GetVal<
double>(
"buying_size_val");
1564 buying_size_min = qr.GetVal<
double>(
"buying_size_min");
1565 buying_size_max = qr.GetVal<
double>(
"buying_size_max");
1566 buying_size_mean = qr.GetVal<
double>(
"buying_size_mean");
1567 buying_size_stddev = qr.GetVal<
double>(
"buying_size_stddev");
1568 reorder_point = qr.GetVal<
double>(
"reorder_point");
1569 reorder_quantity = qr.GetVal<
double>(
"reorder_quantity");
1570 cumulative_cap = qr.GetVal<
double>(
"cumulative_cap");
1571 sell_quantity = qr.GetVal<
double>(
"sell_quantity");
1572 latitude = qr.GetVal<
double>(
"latitude");
1573 longitude = qr.GetVal<
double>(
"longitude");
1576 ready.capacity(1e+300);
1579#line 40 "/cycamore/src/storage.cc"
1581 cyclus::toolkit::Commodity commod = cyclus::toolkit::Commodity(
out_commods.front());
1582 cyclus::toolkit::CommodityProducer::Add(commod);
1583 cyclus::toolkit::CommodityProducer::SetCapacity(commod,
throughput);