src/airflow/contam/PrjObjectsImpl.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. | ||
| 3 | * See also https://openstudio.net/license | ||
| 4 | ***********************************************************************************************************************/ | ||
| 5 | |||
| 6 | #include "../../utilities/core/StringHelpers.hpp" | ||
| 7 | |||
| 8 | #include "PrjObjectsImpl.hpp" | ||
| 9 | |||
| 10 | namespace openstudio { | ||
| 11 | namespace contam { | ||
| 12 | namespace detail { | ||
| 13 | |||
| 14 | 18 | void ZoneImpl::setDefaults() { | |
| 15 | 18 | m_nr = 0; | |
| 16 | 18 | m_flags = 0; | |
| 17 | 18 | m_ps = 0; | |
| 18 | 18 | m_pc = 0; | |
| 19 | 18 | m_pk = 0; | |
| 20 | 18 | m_pl = 0; | |
| 21 |
1/1✓ Branch 1 taken 18 times.
|
36 | m_relHt = PRJFLOAT("0.0"); |
| 22 |
1/1✓ Branch 1 taken 18 times.
|
36 | m_Vol = PRJFLOAT("0.0"); |
| 23 |
1/1✓ Branch 1 taken 18 times.
|
36 | m_T0 = PRJFLOAT("0.0"); |
| 24 |
1/1✓ Branch 1 taken 18 times.
|
18 | m_P0 = PRJFLOAT("0.0"); |
| 25 | 18 | m_color = 0; | |
| 26 | 18 | m_u_Ht = 0; | |
| 27 | 18 | m_u_V = 0; | |
| 28 | 18 | m_u_T = 0; | |
| 29 | 18 | m_u_P = 0; | |
| 30 | 18 | m_cdaxis = 0; | |
| 31 | 18 | m_cfd = 0; | |
| 32 |
1/1✓ Branch 1 taken 18 times.
|
36 | m_X1 = PRJFLOAT("0.0"); |
| 33 |
1/1✓ Branch 1 taken 18 times.
|
36 | m_Y1 = PRJFLOAT("0.0"); |
| 34 |
1/1✓ Branch 1 taken 18 times.
|
36 | m_H1 = PRJFLOAT("0.0"); |
| 35 |
1/1✓ Branch 1 taken 18 times.
|
36 | m_X2 = PRJFLOAT("0.0"); |
| 36 |
1/1✓ Branch 1 taken 18 times.
|
36 | m_Y2 = PRJFLOAT("0.0"); |
| 37 |
1/1✓ Branch 1 taken 18 times.
|
36 | m_H2 = PRJFLOAT("0.0"); |
| 38 |
1/1✓ Branch 1 taken 18 times.
|
36 | m_celldx = PRJFLOAT("0.0"); |
| 39 |
1/1✓ Branch 1 taken 18 times.
|
18 | m_axialD = PRJFLOAT("0.0"); |
| 40 | 18 | m_u_aD = 0; | |
| 41 | 18 | m_u_L = 0; | |
| 42 | 18 | } | |
| 43 | |||
| 44 | 18 | ZoneImpl::ZoneImpl() { | |
| 45 |
1/1✓ Branch 1 taken 18 times.
|
18 | setDefaults(); |
| 46 | 18 | } | |
| 47 | |||
| 48 | ✗ | ZoneImpl::ZoneImpl(int nr, unsigned int flags, int ps, int pc, int pk, int pl, std::string relHt, std::string Vol, std::string T0, std::string P0, | |
| 49 | std::string name, int color, int u_Ht, int u_V, int u_T, int u_P, int cdaxis, int cfd, std::string cfdname, std::string X1, | ||
| 50 | std::string Y1, std::string H1, std::string X2, std::string Y2, std::string H2, std::string celldx, std::string axialD, | ||
| 51 | ✗ | int u_aD, int u_L) { | |
| 52 | ✗ | setDefaults(); | |
| 53 | ✗ | setNr(nr); | |
| 54 | ✗ | setFlags(flags); | |
| 55 | ✗ | setPs(ps); | |
| 56 | ✗ | setPc(pc); | |
| 57 | ✗ | setPk(pk); | |
| 58 | ✗ | setPl(pl); | |
| 59 | ✗ | setRelHt(relHt); | |
| 60 | ✗ | setVol(Vol); | |
| 61 | ✗ | setT0(T0); | |
| 62 | ✗ | setP0(P0); | |
| 63 | ✗ | setName(name); | |
| 64 | ✗ | setColor(color); | |
| 65 | ✗ | setU_Ht(u_Ht); | |
| 66 | ✗ | setU_V(u_V); | |
| 67 | ✗ | setU_T(u_T); | |
| 68 | ✗ | setU_P(u_P); | |
| 69 | ✗ | setCdaxis(cdaxis); | |
| 70 | ✗ | setCfd(cfd); | |
| 71 | ✗ | setCfdname(cfdname); | |
| 72 | ✗ | setX1(X1); | |
| 73 | ✗ | setY1(Y1); | |
| 74 | ✗ | setH1(H1); | |
| 75 | ✗ | setX2(X2); | |
| 76 | ✗ | setY2(Y2); | |
| 77 | ✗ | setH2(H2); | |
| 78 | ✗ | setCelldx(celldx); | |
| 79 | ✗ | setAxialD(axialD); | |
| 80 | ✗ | setU_aD(u_aD); | |
| 81 | ✗ | setU_L(u_L); | |
| 82 | ✗ | } | |
| 83 | |||
| 84 | ✗ | ZoneImpl::ZoneImpl(int nr, unsigned int flags, int ps, int pc, int pk, int pl, double relHt, double Vol, double T0, double P0, std::string name, | |
| 85 | int color, int u_Ht, int u_V, int u_T, int u_P, int cdaxis, int cfd, std::string cfdname, double X1, double Y1, double H1, | ||
| 86 | ✗ | double X2, double Y2, double H2, double celldx, double axialD, int u_aD, int u_L) { | |
| 87 | ✗ | setDefaults(); | |
| 88 | ✗ | setNr(nr); | |
| 89 | ✗ | setFlags(flags); | |
| 90 | ✗ | setPs(ps); | |
| 91 | ✗ | setPc(pc); | |
| 92 | ✗ | setPk(pk); | |
| 93 | ✗ | setPl(pl); | |
| 94 | ✗ | setRelHt(relHt); | |
| 95 | ✗ | setVol(Vol); | |
| 96 | ✗ | setT0(T0); | |
| 97 | ✗ | setP0(P0); | |
| 98 | ✗ | setName(name); | |
| 99 | ✗ | setColor(color); | |
| 100 | ✗ | setU_Ht(u_Ht); | |
| 101 | ✗ | setU_V(u_V); | |
| 102 | ✗ | setU_T(u_T); | |
| 103 | ✗ | setU_P(u_P); | |
| 104 | ✗ | setCdaxis(cdaxis); | |
| 105 | ✗ | setCfd(cfd); | |
| 106 | ✗ | setCfdname(cfdname); | |
| 107 | ✗ | setX1(X1); | |
| 108 | ✗ | setY1(Y1); | |
| 109 | ✗ | setH1(H1); | |
| 110 | ✗ | setX2(X2); | |
| 111 | ✗ | setY2(Y2); | |
| 112 | ✗ | setH2(H2); | |
| 113 | ✗ | setCelldx(celldx); | |
| 114 | ✗ | setAxialD(axialD); | |
| 115 | ✗ | setU_aD(u_aD); | |
| 116 | ✗ | setU_L(u_L); | |
| 117 | ✗ | } | |
| 118 | |||
| 119 | ✗ | void ZoneImpl::read(Reader& input) { | |
| 120 | ✗ | setNr(input.readInt()); | |
| 121 | ✗ | setFlags(input.readInt()); | |
| 122 | ✗ | setPs(input.readInt()); | |
| 123 | ✗ | setPc(input.readInt()); | |
| 124 | ✗ | setPk(input.readInt()); | |
| 125 | ✗ | setPl(input.readInt()); | |
| 126 | ✗ | setRelHt(input.readNumber<std::string>()); | |
| 127 | ✗ | setVol(input.readNumber<std::string>()); | |
| 128 | ✗ | setT0(input.readNumber<std::string>()); | |
| 129 | ✗ | setP0(input.readNumber<std::string>()); | |
| 130 | ✗ | setName(input.readString()); | |
| 131 | ✗ | setColor(input.readInt()); | |
| 132 | ✗ | setU_Ht(input.readInt()); | |
| 133 | ✗ | setU_V(input.readInt()); | |
| 134 | ✗ | setU_T(input.readInt()); | |
| 135 | ✗ | setU_P(input.readInt()); | |
| 136 | ✗ | setCdaxis(input.readInt()); | |
| 137 | ✗ | setCfd(input.readInt()); | |
| 138 | ✗ | if (cfd() != 0) { | |
| 139 | ✗ | setCfdname(input.readString()); | |
| 140 | ✗ | } else if (cdaxis() != 0) { | |
| 141 | ✗ | input.readString(); // Read "1D:" | |
| 142 | ✗ | setX1(input.readNumber<std::string>()); | |
| 143 | ✗ | setY1(input.readNumber<std::string>()); | |
| 144 | ✗ | setH1(input.readNumber<std::string>()); | |
| 145 | ✗ | setX2(input.readNumber<std::string>()); | |
| 146 | ✗ | setY2(input.readNumber<std::string>()); | |
| 147 | ✗ | setH2(input.readNumber<std::string>()); | |
| 148 | ✗ | setCelldx(input.readNumber<std::string>()); | |
| 149 | ✗ | setAxialD(input.readNumber<std::string>()); | |
| 150 | ✗ | setU_aD(input.readInt()); | |
| 151 | ✗ | setU_L(input.readInt()); | |
| 152 | } | ||
| 153 | ✗ | } | |
| 154 | |||
| 155 | 3 | std::string ZoneImpl::write() { | |
| 156 | 3 | std::string string; | |
| 157 |
14/14✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
✓ Branch 16 taken 3 times.
✓ Branch 19 taken 3 times.
✓ Branch 22 taken 3 times.
✓ Branch 25 taken 3 times.
✓ Branch 28 taken 3 times.
✓ Branch 31 taken 3 times.
✓ Branch 34 taken 3 times.
✓ Branch 37 taken 3 times.
✓ Branch 40 taken 3 times.
|
6 | string += ANY_TO_STR(m_nr) + ' ' + ANY_TO_STR(m_flags) + ' ' + ANY_TO_STR(m_ps) + ' ' + ANY_TO_STR(m_pc) + ' ' + ANY_TO_STR(m_pk) + ' ' |
| 158 |
14/14✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
✓ Branch 16 taken 3 times.
✓ Branch 19 taken 3 times.
✓ Branch 22 taken 3 times.
✓ Branch 25 taken 3 times.
✓ Branch 28 taken 3 times.
✓ Branch 31 taken 3 times.
✓ Branch 34 taken 3 times.
✓ Branch 37 taken 3 times.
✓ Branch 40 taken 3 times.
|
12 | + ANY_TO_STR(m_pl) + ' ' + ANY_TO_STR(m_relHt) + ' ' + ANY_TO_STR(m_Vol) + ' ' + ANY_TO_STR(m_T0) + ' ' + ANY_TO_STR(m_P0) + ' ' |
| 159 |
15/15✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
✓ Branch 16 taken 3 times.
✓ Branch 19 taken 3 times.
✓ Branch 22 taken 3 times.
✓ Branch 25 taken 3 times.
✓ Branch 28 taken 3 times.
✓ Branch 31 taken 3 times.
✓ Branch 34 taken 3 times.
✓ Branch 37 taken 3 times.
✓ Branch 40 taken 3 times.
✓ Branch 43 taken 3 times.
|
12 | + m_name + ' ' + ANY_TO_STR(m_color) + ' ' + ANY_TO_STR(m_u_Ht) + ' ' + ANY_TO_STR(m_u_V) + ' ' + ANY_TO_STR(m_u_T) + ' ' |
| 160 |
9/9✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
✓ Branch 16 taken 3 times.
✓ Branch 19 taken 3 times.
✓ Branch 22 taken 3 times.
✓ Branch 25 taken 3 times.
|
9 | + ANY_TO_STR(m_u_P) + ' ' + ANY_TO_STR(m_cdaxis) + ' ' + ANY_TO_STR(m_cfd); |
| 161 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | if (m_cfd != 0) { |
| 162 | ✗ | string += ' ' + m_cfdname; | |
| 163 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | } else if (m_cdaxis != 0) { |
| 164 | ✗ | string += ANY_TO_STR(m_X1) + ' ' + ANY_TO_STR(m_Y1) + ' ' + ANY_TO_STR(m_H1) + ' ' + ANY_TO_STR(m_X2) + ' ' + ANY_TO_STR(m_Y2) + ' ' | |
| 165 | ✗ | + ANY_TO_STR(m_H2) + ' ' + ANY_TO_STR(m_celldx) + ' ' + ANY_TO_STR(m_axialD) + ' ' + ANY_TO_STR(m_u_aD) + ' ' + ANY_TO_STR(m_u_L); | |
| 166 | } | ||
| 167 |
1/1✓ Branch 1 taken 3 times.
|
6 | return string + '\n'; |
| 168 | 3 | } | |
| 169 | |||
| 170 | 55 | int ZoneImpl::nr() const { | |
| 171 | 55 | return m_nr; | |
| 172 | } | ||
| 173 | |||
| 174 | 33 | void ZoneImpl::setNr(const int nr) { | |
| 175 | 33 | m_nr = nr; | |
| 176 | 33 | } | |
| 177 | |||
| 178 | ✗ | unsigned int ZoneImpl::flags() const { | |
| 179 | ✗ | return m_flags; | |
| 180 | } | ||
| 181 | |||
| 182 | 3 | void ZoneImpl::setFlags(const unsigned int flags) { | |
| 183 | 3 | m_flags = flags; | |
| 184 | 3 | } | |
| 185 | |||
| 186 | ✗ | int ZoneImpl::ps() const { | |
| 187 | ✗ | return m_ps; | |
| 188 | } | ||
| 189 | |||
| 190 | ✗ | void ZoneImpl::setPs(const int ps) { | |
| 191 | ✗ | m_ps = ps; | |
| 192 | ✗ | } | |
| 193 | |||
| 194 | ✗ | int ZoneImpl::pc() const { | |
| 195 | ✗ | return m_pc; | |
| 196 | } | ||
| 197 | |||
| 198 | ✗ | void ZoneImpl::setPc(const int pc) { | |
| 199 | ✗ | m_pc = pc; | |
| 200 | ✗ | } | |
| 201 | |||
| 202 | ✗ | int ZoneImpl::pk() const { | |
| 203 | ✗ | return m_pk; | |
| 204 | } | ||
| 205 | |||
| 206 | ✗ | void ZoneImpl::setPk(const int pk) { | |
| 207 | ✗ | m_pk = pk; | |
| 208 | ✗ | } | |
| 209 | |||
| 210 | 92 | int ZoneImpl::pl() const { | |
| 211 | 92 | return m_pl; | |
| 212 | } | ||
| 213 | |||
| 214 | 15 | void ZoneImpl::setPl(const int pl) { | |
| 215 | 15 | m_pl = pl; | |
| 216 | 15 | } | |
| 217 | |||
| 218 | ✗ | double ZoneImpl::relHt() const { | |
| 219 | ✗ | return openstudio::string_conversions::to<double>(m_relHt); | |
| 220 | } | ||
| 221 | |||
| 222 | ✗ | bool ZoneImpl::setRelHt(const double relHt) { | |
| 223 | ✗ | m_relHt = openstudio::string_conversions::number(relHt); | |
| 224 | ✗ | return true; | |
| 225 | } | ||
| 226 | |||
| 227 | ✗ | bool ZoneImpl::setRelHt(const std::string& relHt) { | |
| 228 | ✗ | return assign_if_valid<double>(relHt, m_relHt); | |
| 229 | } | ||
| 230 | |||
| 231 | ✗ | double ZoneImpl::Vol() const { | |
| 232 | ✗ | return openstudio::string_conversions::to<double>(m_Vol); | |
| 233 | } | ||
| 234 | |||
| 235 | 2 | bool ZoneImpl::setVol(const double Vol) { | |
| 236 |
1/1✓ Branch 1 taken 2 times.
|
2 | m_Vol = openstudio::string_conversions::number(Vol); |
| 237 | 2 | return true; | |
| 238 | } | ||
| 239 | |||
| 240 | 10 | bool ZoneImpl::setVol(const std::string& Vol) { | |
| 241 | 10 | return assign_if_valid<double>(Vol, m_Vol); | |
| 242 | } | ||
| 243 | |||
| 244 | ✗ | double ZoneImpl::T0() const { | |
| 245 | ✗ | return openstudio::string_conversions::to<double>(m_T0); | |
| 246 | } | ||
| 247 | |||
| 248 | 2 | bool ZoneImpl::setT0(const double T0) { | |
| 249 |
1/1✓ Branch 1 taken 2 times.
|
2 | m_T0 = openstudio::string_conversions::number(T0); |
| 250 | 2 | return true; | |
| 251 | } | ||
| 252 | |||
| 253 | 16 | bool ZoneImpl::setT0(const std::string& T0) { | |
| 254 | 16 | return assign_if_valid<double>(T0, m_T0); | |
| 255 | } | ||
| 256 | |||
| 257 | ✗ | double ZoneImpl::P0() const { | |
| 258 | ✗ | return openstudio::string_conversions::to<double>(m_P0); | |
| 259 | } | ||
| 260 | |||
| 261 | ✗ | bool ZoneImpl::setP0(const double P0) { | |
| 262 | ✗ | m_P0 = openstudio::string_conversions::number(P0); | |
| 263 | ✗ | return true; | |
| 264 | } | ||
| 265 | |||
| 266 | ✗ | bool ZoneImpl::setP0(const std::string& P0) { | |
| 267 | ✗ | return assign_if_valid<double>(P0, m_P0); | |
| 268 | } | ||
| 269 | |||
| 270 | ✗ | std::string ZoneImpl::name() const { | |
| 271 | ✗ | return m_name; | |
| 272 | } | ||
| 273 | |||
| 274 | 18 | void ZoneImpl::setName(const std::string& name) { | |
| 275 | 18 | m_name = name; | |
| 276 | 18 | } | |
| 277 | |||
| 278 | ✗ | int ZoneImpl::color() const { | |
| 279 | ✗ | return m_color; | |
| 280 | } | ||
| 281 | |||
| 282 | ✗ | void ZoneImpl::setColor(const int color) { | |
| 283 | ✗ | m_color = color; | |
| 284 | ✗ | } | |
| 285 | |||
| 286 | ✗ | int ZoneImpl::u_Ht() const { | |
| 287 | ✗ | return m_u_Ht; | |
| 288 | } | ||
| 289 | |||
| 290 | ✗ | void ZoneImpl::setU_Ht(const int u_Ht) { | |
| 291 | ✗ | m_u_Ht = u_Ht; | |
| 292 | ✗ | } | |
| 293 | |||
| 294 | ✗ | int ZoneImpl::u_V() const { | |
| 295 | ✗ | return m_u_V; | |
| 296 | } | ||
| 297 | |||
| 298 | ✗ | void ZoneImpl::setU_V(const int u_V) { | |
| 299 | ✗ | m_u_V = u_V; | |
| 300 | ✗ | } | |
| 301 | |||
| 302 | ✗ | int ZoneImpl::u_T() const { | |
| 303 | ✗ | return m_u_T; | |
| 304 | } | ||
| 305 | |||
| 306 | ✗ | void ZoneImpl::setU_T(const int u_T) { | |
| 307 | ✗ | m_u_T = u_T; | |
| 308 | ✗ | } | |
| 309 | |||
| 310 | ✗ | int ZoneImpl::u_P() const { | |
| 311 | ✗ | return m_u_P; | |
| 312 | } | ||
| 313 | |||
| 314 | ✗ | void ZoneImpl::setU_P(const int u_P) { | |
| 315 | ✗ | m_u_P = u_P; | |
| 316 | ✗ | } | |
| 317 | |||
| 318 | ✗ | int ZoneImpl::cdaxis() const { | |
| 319 | ✗ | return m_cdaxis; | |
| 320 | } | ||
| 321 | |||
| 322 | ✗ | void ZoneImpl::setCdaxis(const int cdaxis) { | |
| 323 | ✗ | m_cdaxis = cdaxis; | |
| 324 | ✗ | } | |
| 325 | |||
| 326 | ✗ | int ZoneImpl::cfd() const { | |
| 327 | ✗ | return m_cfd; | |
| 328 | } | ||
| 329 | |||
| 330 | ✗ | void ZoneImpl::setCfd(const int cfd) { | |
| 331 | ✗ | m_cfd = cfd; | |
| 332 | ✗ | } | |
| 333 | |||
| 334 | ✗ | std::string ZoneImpl::cfdname() const { | |
| 335 | ✗ | return m_cfdname; | |
| 336 | } | ||
| 337 | |||
| 338 | ✗ | void ZoneImpl::setCfdname(const std::string& cfdname) { | |
| 339 | ✗ | m_cfdname = cfdname; | |
| 340 | ✗ | } | |
| 341 | |||
| 342 | ✗ | double ZoneImpl::X1() const { | |
| 343 | ✗ | return openstudio::string_conversions::to<double>(m_X1); | |
| 344 | } | ||
| 345 | |||
| 346 | ✗ | bool ZoneImpl::setX1(const double X1) { | |
| 347 | ✗ | m_X1 = openstudio::string_conversions::number(X1); | |
| 348 | ✗ | return true; | |
| 349 | } | ||
| 350 | |||
| 351 | ✗ | bool ZoneImpl::setX1(const std::string& X1) { | |
| 352 | ✗ | return assign_if_valid<double>(X1, m_X1); | |
| 353 | } | ||
| 354 | |||
| 355 | ✗ | double ZoneImpl::Y1() const { | |
| 356 | ✗ | return openstudio::string_conversions::to<double>(m_Y1); | |
| 357 | } | ||
| 358 | |||
| 359 | ✗ | bool ZoneImpl::setY1(const double Y1) { | |
| 360 | ✗ | m_Y1 = openstudio::string_conversions::number(Y1); | |
| 361 | ✗ | return true; | |
| 362 | } | ||
| 363 | |||
| 364 | ✗ | bool ZoneImpl::setY1(const std::string& Y1) { | |
| 365 | ✗ | return assign_if_valid<double>(Y1, m_Y1); | |
| 366 | } | ||
| 367 | |||
| 368 | ✗ | double ZoneImpl::H1() const { | |
| 369 | ✗ | return openstudio::string_conversions::to<double>(m_H1); | |
| 370 | } | ||
| 371 | |||
| 372 | ✗ | bool ZoneImpl::setH1(const double H1) { | |
| 373 | ✗ | m_H1 = openstudio::string_conversions::number(H1); | |
| 374 | ✗ | return true; | |
| 375 | } | ||
| 376 | |||
| 377 | ✗ | bool ZoneImpl::setH1(const std::string& H1) { | |
| 378 | ✗ | return assign_if_valid<double>(H1, m_H1); | |
| 379 | } | ||
| 380 | |||
| 381 | ✗ | double ZoneImpl::X2() const { | |
| 382 | ✗ | return openstudio::string_conversions::to<double>(m_X2); | |
| 383 | } | ||
| 384 | |||
| 385 | ✗ | bool ZoneImpl::setX2(const double X2) { | |
| 386 | ✗ | m_X2 = openstudio::string_conversions::number(X2); | |
| 387 | ✗ | return true; | |
| 388 | } | ||
| 389 | |||
| 390 | ✗ | bool ZoneImpl::setX2(const std::string& X2) { | |
| 391 | ✗ | return assign_if_valid<double>(X2, m_X2); | |
| 392 | } | ||
| 393 | |||
| 394 | ✗ | double ZoneImpl::Y2() const { | |
| 395 | ✗ | return openstudio::string_conversions::to<double>(m_Y2); | |
| 396 | } | ||
| 397 | |||
| 398 | ✗ | bool ZoneImpl::setY2(const double Y2) { | |
| 399 | ✗ | m_Y2 = openstudio::string_conversions::number(Y2); | |
| 400 | ✗ | return true; | |
| 401 | } | ||
| 402 | |||
| 403 | ✗ | bool ZoneImpl::setY2(const std::string& Y2) { | |
| 404 | ✗ | return assign_if_valid<double>(Y2, m_Y2); | |
| 405 | } | ||
| 406 | |||
| 407 | ✗ | double ZoneImpl::H2() const { | |
| 408 | ✗ | return openstudio::string_conversions::to<double>(m_H2); | |
| 409 | } | ||
| 410 | |||
| 411 | ✗ | bool ZoneImpl::setH2(const double H2) { | |
| 412 | ✗ | m_H2 = openstudio::string_conversions::number(H2); | |
| 413 | ✗ | return true; | |
| 414 | } | ||
| 415 | |||
| 416 | ✗ | bool ZoneImpl::setH2(const std::string& H2) { | |
| 417 | ✗ | return assign_if_valid<double>(H2, m_H2); | |
| 418 | } | ||
| 419 | |||
| 420 | ✗ | double ZoneImpl::celldx() const { | |
| 421 | ✗ | return openstudio::string_conversions::to<double>(m_celldx); | |
| 422 | } | ||
| 423 | |||
| 424 | ✗ | bool ZoneImpl::setCelldx(const double celldx) { | |
| 425 | ✗ | m_celldx = openstudio::string_conversions::number(celldx); | |
| 426 | ✗ | return true; | |
| 427 | } | ||
| 428 | |||
| 429 | ✗ | bool ZoneImpl::setCelldx(const std::string& celldx) { | |
| 430 | ✗ | return assign_if_valid<double>(celldx, m_celldx); | |
| 431 | } | ||
| 432 | |||
| 433 | ✗ | double ZoneImpl::axialD() const { | |
| 434 | ✗ | return openstudio::string_conversions::to<double>(m_axialD); | |
| 435 | } | ||
| 436 | |||
| 437 | ✗ | bool ZoneImpl::setAxialD(const double axialD) { | |
| 438 | ✗ | m_axialD = openstudio::string_conversions::number(axialD); | |
| 439 | ✗ | return true; | |
| 440 | } | ||
| 441 | |||
| 442 | ✗ | bool ZoneImpl::setAxialD(const std::string& axialD) { | |
| 443 | ✗ | return assign_if_valid<double>(axialD, m_axialD); | |
| 444 | } | ||
| 445 | |||
| 446 | ✗ | int ZoneImpl::u_aD() const { | |
| 447 | ✗ | return m_u_aD; | |
| 448 | } | ||
| 449 | |||
| 450 | ✗ | void ZoneImpl::setU_aD(const int u_aD) { | |
| 451 | ✗ | m_u_aD = u_aD; | |
| 452 | ✗ | } | |
| 453 | |||
| 454 | ✗ | int ZoneImpl::u_L() const { | |
| 455 | ✗ | return m_u_L; | |
| 456 | } | ||
| 457 | |||
| 458 | ✗ | void ZoneImpl::setU_L(const int u_L) { | |
| 459 | ✗ | m_u_L = u_L; | |
| 460 | ✗ | } | |
| 461 | |||
| 462 | 9 | void ZoneImpl::setVariablePressure(bool b) { | |
| 463 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (b) { |
| 464 | 9 | m_flags |= ZoneFlags::VAR_P; | |
| 465 | } else { | ||
| 466 | ✗ | m_flags &= ZoneFlags::NVAR_P; | |
| 467 | } | ||
| 468 | 9 | } | |
| 469 | |||
| 470 | 6 | bool ZoneImpl::variablePressure() const { | |
| 471 | 6 | return (m_flags & ZoneFlags::VAR_P) != 0u; | |
| 472 | } | ||
| 473 | |||
| 474 | 15 | void ZoneImpl::setVariableContaminants(bool b) { | |
| 475 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | if (b) { |
| 476 | 15 | m_flags |= ZoneFlags::VAR_C; | |
| 477 | } else { | ||
| 478 | ✗ | m_flags &= ZoneFlags::NVAR_C; | |
| 479 | } | ||
| 480 | 15 | } | |
| 481 | |||
| 482 | 6 | bool ZoneImpl::variableContaminants() const { | |
| 483 | 6 | return (m_flags & ZoneFlags::VAR_C) != 0u; | |
| 484 | } | ||
| 485 | |||
| 486 | 6 | void ZoneImpl::setSystem(bool b) { | |
| 487 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | if (b) { |
| 488 | 6 | m_flags |= ZoneFlags::SYS_N; | |
| 489 | } else { | ||
| 490 | ✗ | m_flags &= ZoneFlags::NSYS_N; | |
| 491 | } | ||
| 492 | 6 | } | |
| 493 | |||
| 494 | 7 | bool ZoneImpl::system() const { | |
| 495 | 7 | return (m_flags & ZoneFlags::SYS_N) != 0u; | |
| 496 | } | ||
| 497 | |||
| 498 | ✗ | double ZoneImpl::ic(const int i) const { | |
| 499 | ✗ | return openstudio::string_conversions::to<double>(m_ic[i]); | |
| 500 | } | ||
| 501 | |||
| 502 | ✗ | std::vector<double> ZoneImpl::ic() const { | |
| 503 | ✗ | std::vector<double> out; | |
| 504 | ✗ | for (std::size_t i = 0; i < m_ic.size(); i++) { | |
| 505 | ✗ | out.push_back(openstudio::string_conversions::to<double>(m_ic[i])); | |
| 506 | } | ||
| 507 | ✗ | return out; | |
| 508 | ✗ | } | |
| 509 | |||
| 510 | ✗ | bool ZoneImpl::setIc(const int i, const double value) { | |
| 511 | ✗ | m_ic[i] = openstudio::string_conversions::number(value); | |
| 512 | ✗ | return true; | |
| 513 | } | ||
| 514 | |||
| 515 | ✗ | bool ZoneImpl::setIc(const int i, const std::string& value) { | |
| 516 | ✗ | return assign_if_valid<double>(value, m_ic[i]); | |
| 517 | } | ||
| 518 | |||
| 519 | ✗ | bool ZoneImpl::setIc(const std::vector<double>& ic) { | |
| 520 | ✗ | std::vector<std::string> in; | |
| 521 | ✗ | for (const auto& input : ic) { | |
| 522 | ✗ | in.push_back(openstudio::string_conversions::number(input)); | |
| 523 | } | ||
| 524 | ✗ | return true; | |
| 525 | ✗ | } | |
| 526 | |||
| 527 | ✗ | bool ZoneImpl::setIc(const std::vector<std::string>& ic) { | |
| 528 | ✗ | for (const auto& input : ic) { | |
| 529 | ✗ | if (!is_valid<double>(input)) { | |
| 530 | ✗ | return false; | |
| 531 | } | ||
| 532 | } | ||
| 533 | ✗ | m_ic = ic; | |
| 534 | ✗ | return true; | |
| 535 | } | ||
| 536 | |||
| 537 | 14 | void SpeciesImpl::setDefaults() { | |
| 538 | 14 | m_nr = 0; | |
| 539 | 14 | m_sflag = 0; | |
| 540 | 14 | m_ntflag = 0; | |
| 541 |
1/1✓ Branch 1 taken 14 times.
|
28 | m_molwt = PRJFLOAT("0.0"); |
| 542 |
1/1✓ Branch 1 taken 14 times.
|
28 | m_mdiam = PRJFLOAT("0.0"); |
| 543 |
1/1✓ Branch 1 taken 14 times.
|
28 | m_edens = PRJFLOAT("0.0"); |
| 544 |
1/1✓ Branch 1 taken 14 times.
|
28 | m_decay = PRJFLOAT("0.0"); |
| 545 |
1/1✓ Branch 1 taken 14 times.
|
28 | m_Dm = PRJFLOAT("0.0"); |
| 546 |
1/1✓ Branch 1 taken 14 times.
|
28 | m_ccdef = PRJFLOAT("0.0"); |
| 547 |
1/1✓ Branch 1 taken 14 times.
|
14 | m_Cp = PRJFLOAT("0.0"); |
| 548 | 14 | m_ucc = 0; | |
| 549 | 14 | m_umd = 0; | |
| 550 | 14 | m_ued = 0; | |
| 551 | 14 | m_udm = 0; | |
| 552 | 14 | m_ucp = 0; | |
| 553 | 14 | } | |
| 554 | |||
| 555 | 14 | SpeciesImpl::SpeciesImpl() { | |
| 556 |
1/1✓ Branch 1 taken 14 times.
|
14 | setDefaults(); |
| 557 | 14 | } | |
| 558 | |||
| 559 | ✗ | SpeciesImpl::SpeciesImpl(int nr, int sflag, int ntflag, std::string molwt, std::string mdiam, std::string edens, std::string decay, | |
| 560 | std::string Dm, std::string ccdef, std::string Cp, int ucc, int umd, int ued, int udm, int ucp, std::string name, | ||
| 561 | ✗ | std::string desc) { | |
| 562 | ✗ | setDefaults(); | |
| 563 | ✗ | setNr(nr); | |
| 564 | ✗ | setSflag(sflag != 0); | |
| 565 | ✗ | setNtflag(ntflag != 0); | |
| 566 | ✗ | setMolwt(molwt); | |
| 567 | ✗ | setMdiam(mdiam); | |
| 568 | ✗ | setEdens(edens); | |
| 569 | ✗ | setDecay(decay); | |
| 570 | ✗ | setDm(Dm); | |
| 571 | ✗ | setCcdef(ccdef); | |
| 572 | ✗ | setCp(Cp); | |
| 573 | ✗ | setUcc(ucc); | |
| 574 | ✗ | setUmd(umd); | |
| 575 | ✗ | setUed(ued); | |
| 576 | ✗ | setUdm(udm); | |
| 577 | ✗ | setUcp(ucp); | |
| 578 | ✗ | setName(name); | |
| 579 | ✗ | setDesc(desc); | |
| 580 | ✗ | } | |
| 581 | |||
| 582 | ✗ | SpeciesImpl::SpeciesImpl(int nr, int sflag, int ntflag, double molwt, double mdiam, double edens, double decay, double Dm, double ccdef, | |
| 583 | ✗ | double Cp, int ucc, int umd, int ued, int udm, int ucp, std::string name, std::string desc) { | |
| 584 | ✗ | setDefaults(); | |
| 585 | ✗ | setNr(nr); | |
| 586 | ✗ | setSflag(sflag != 0); | |
| 587 | ✗ | setNtflag(ntflag != 0); | |
| 588 | ✗ | setMolwt(molwt); | |
| 589 | ✗ | setMdiam(mdiam); | |
| 590 | ✗ | setEdens(edens); | |
| 591 | ✗ | setDecay(decay); | |
| 592 | ✗ | setDm(Dm); | |
| 593 | ✗ | setCcdef(ccdef); | |
| 594 | ✗ | setCp(Cp); | |
| 595 | ✗ | setUcc(ucc); | |
| 596 | ✗ | setUmd(umd); | |
| 597 | ✗ | setUed(ued); | |
| 598 | ✗ | setUdm(udm); | |
| 599 | ✗ | setUcp(ucp); | |
| 600 | ✗ | setName(name); | |
| 601 | ✗ | setDesc(desc); | |
| 602 | ✗ | } | |
| 603 | |||
| 604 | 12 | void SpeciesImpl::read(Reader& input) { | |
| 605 | 12 | setNr(input.read<int>()); | |
| 606 | 12 | setSflag(input.read<int>() != 0); | |
| 607 | 12 | setNtflag(input.read<int>() != 0); | |
| 608 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | setMolwt(input.read<std::string>()); |
| 609 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | setMdiam(input.read<std::string>()); |
| 610 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | setEdens(input.read<std::string>()); |
| 611 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | setDecay(input.read<std::string>()); |
| 612 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | setDm(input.read<std::string>()); |
| 613 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | setCcdef(input.read<std::string>()); |
| 614 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | setCp(input.read<std::string>()); |
| 615 | 12 | setUcc(input.read<int>()); | |
| 616 | 12 | setUmd(input.read<int>()); | |
| 617 | 12 | setUed(input.read<int>()); | |
| 618 | 12 | setUdm(input.read<int>()); | |
| 619 | 12 | setUcp(input.read<int>()); | |
| 620 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | setName(input.readString()); |
| 621 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | setDesc(input.readLine()); |
| 622 | 12 | } | |
| 623 | |||
| 624 | 2 | std::string SpeciesImpl::write() { | |
| 625 | 2 | std::string string; | |
| 626 |
13/13✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
✓ Branch 16 taken 2 times.
✓ Branch 19 taken 2 times.
✓ Branch 22 taken 2 times.
✓ Branch 25 taken 2 times.
✓ Branch 28 taken 2 times.
✓ Branch 31 taken 2 times.
✓ Branch 34 taken 2 times.
✓ Branch 37 taken 2 times.
|
4 | string += ANY_TO_STR(m_nr) + ' ' + ANY_TO_STR(m_sflag) + ' ' + ANY_TO_STR(m_ntflag) + ' ' + ANY_TO_STR(m_molwt) + ' ' + ANY_TO_STR(m_mdiam) |
| 627 |
15/15✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
✓ Branch 16 taken 2 times.
✓ Branch 19 taken 2 times.
✓ Branch 22 taken 2 times.
✓ Branch 25 taken 2 times.
✓ Branch 28 taken 2 times.
✓ Branch 31 taken 2 times.
✓ Branch 34 taken 2 times.
✓ Branch 37 taken 2 times.
✓ Branch 40 taken 2 times.
✓ Branch 43 taken 2 times.
|
8 | + ' ' + ANY_TO_STR(m_edens) + ' ' + ANY_TO_STR(m_decay) + ' ' + ANY_TO_STR(m_Dm) + ' ' + ANY_TO_STR(m_ccdef) + ' ' + ANY_TO_STR(m_Cp) |
| 628 |
14/14✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
✓ Branch 16 taken 2 times.
✓ Branch 19 taken 2 times.
✓ Branch 22 taken 2 times.
✓ Branch 25 taken 2 times.
✓ Branch 28 taken 2 times.
✓ Branch 31 taken 2 times.
✓ Branch 34 taken 2 times.
✓ Branch 37 taken 2 times.
✓ Branch 40 taken 2 times.
|
8 | + ' ' + ANY_TO_STR(m_ucc) + ' ' + ANY_TO_STR(m_umd) + ' ' + ANY_TO_STR(m_ued) + ' ' + ANY_TO_STR(m_udm) + ' ' + ANY_TO_STR(m_ucp) |
| 629 |
5/5✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
|
4 | + ' ' + m_name + '\n'; |
| 630 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | string += m_desc + '\n'; |
| 631 | 2 | return string; | |
| 632 | ✗ | } | |
| 633 | |||
| 634 | 3 | int SpeciesImpl::nr() const { | |
| 635 | 3 | return m_nr; | |
| 636 | } | ||
| 637 | |||
| 638 | 26 | void SpeciesImpl::setNr(const int nr) { | |
| 639 | 26 | m_nr = nr; | |
| 640 | 26 | } | |
| 641 | |||
| 642 | 11 | bool SpeciesImpl::sflag() const { | |
| 643 | 11 | return m_sflag == 1; | |
| 644 | } | ||
| 645 | |||
| 646 | 13 | void SpeciesImpl::setSflag(const bool sflag) { | |
| 647 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 12 times.
|
13 | m_sflag = sflag ? 1 : 0; |
| 648 | 13 | } | |
| 649 | |||
| 650 | ✗ | bool SpeciesImpl::ntflag() const { | |
| 651 | ✗ | return m_ntflag == 1; | |
| 652 | } | ||
| 653 | |||
| 654 | 12 | void SpeciesImpl::setNtflag(const bool ntflag) { | |
| 655 | 12 | m_ntflag = (int)ntflag; | |
| 656 | 12 | } | |
| 657 | |||
| 658 | ✗ | double SpeciesImpl::molwt() const { | |
| 659 | ✗ | return openstudio::string_conversions::to<double>(m_molwt); | |
| 660 | } | ||
| 661 | |||
| 662 | 1 | bool SpeciesImpl::setMolwt(const double molwt) { | |
| 663 |
1/1✓ Branch 1 taken 1 time.
|
1 | m_molwt = openstudio::string_conversions::number(molwt); |
| 664 | 1 | return true; | |
| 665 | } | ||
| 666 | |||
| 667 | 13 | bool SpeciesImpl::setMolwt(const std::string& molwt) { | |
| 668 | 13 | return assign_if_valid<double>(molwt, m_molwt); | |
| 669 | } | ||
| 670 | |||
| 671 | ✗ | double SpeciesImpl::mdiam() const { | |
| 672 | ✗ | return openstudio::string_conversions::to<double>(m_mdiam); | |
| 673 | } | ||
| 674 | |||
| 675 | ✗ | bool SpeciesImpl::setMdiam(const double mdiam) { | |
| 676 | ✗ | m_mdiam = openstudio::string_conversions::number(mdiam); | |
| 677 | ✗ | return true; | |
| 678 | } | ||
| 679 | |||
| 680 | 12 | bool SpeciesImpl::setMdiam(const std::string& mdiam) { | |
| 681 | 12 | return assign_if_valid<double>(mdiam, m_mdiam); | |
| 682 | } | ||
| 683 | |||
| 684 | ✗ | double SpeciesImpl::edens() const { | |
| 685 | ✗ | return openstudio::string_conversions::to<double>(m_edens); | |
| 686 | } | ||
| 687 | |||
| 688 | ✗ | bool SpeciesImpl::setEdens(const double edens) { | |
| 689 | ✗ | m_edens = openstudio::string_conversions::number(edens); | |
| 690 | ✗ | return true; | |
| 691 | } | ||
| 692 | |||
| 693 | 12 | bool SpeciesImpl::setEdens(const std::string& edens) { | |
| 694 | 12 | return assign_if_valid<double>(edens, m_edens); | |
| 695 | } | ||
| 696 | |||
| 697 | ✗ | double SpeciesImpl::decay() const { | |
| 698 | ✗ | return openstudio::string_conversions::to<double>(m_decay); | |
| 699 | } | ||
| 700 | |||
| 701 | ✗ | bool SpeciesImpl::setDecay(const double decay) { | |
| 702 | ✗ | m_decay = openstudio::string_conversions::number(decay); | |
| 703 | ✗ | return true; | |
| 704 | } | ||
| 705 | |||
| 706 | 12 | bool SpeciesImpl::setDecay(const std::string& decay) { | |
| 707 | 12 | return assign_if_valid<double>(decay, m_decay); | |
| 708 | } | ||
| 709 | |||
| 710 | ✗ | double SpeciesImpl::Dm() const { | |
| 711 | ✗ | return openstudio::string_conversions::to<double>(m_Dm); | |
| 712 | } | ||
| 713 | |||
| 714 | 1 | bool SpeciesImpl::setDm(const double Dm) { | |
| 715 |
1/1✓ Branch 1 taken 1 time.
|
1 | m_Dm = openstudio::string_conversions::number(Dm); |
| 716 | 1 | return true; | |
| 717 | } | ||
| 718 | |||
| 719 | 13 | bool SpeciesImpl::setDm(const std::string& Dm) { | |
| 720 | 13 | return assign_if_valid<double>(Dm, m_Dm); | |
| 721 | } | ||
| 722 | |||
| 723 | ✗ | double SpeciesImpl::ccdef() const { | |
| 724 | ✗ | return openstudio::string_conversions::to<double>(m_ccdef); | |
| 725 | } | ||
| 726 | |||
| 727 | 1 | bool SpeciesImpl::setCcdef(const double ccdef) { | |
| 728 |
1/1✓ Branch 1 taken 1 time.
|
1 | m_ccdef = openstudio::string_conversions::number(ccdef); |
| 729 | 1 | return true; | |
| 730 | } | ||
| 731 | |||
| 732 | 13 | bool SpeciesImpl::setCcdef(const std::string& ccdef) { | |
| 733 | 13 | return assign_if_valid<double>(ccdef, m_ccdef); | |
| 734 | } | ||
| 735 | |||
| 736 | ✗ | double SpeciesImpl::Cp() const { | |
| 737 | ✗ | return openstudio::string_conversions::to<double>(m_Cp); | |
| 738 | } | ||
| 739 | |||
| 740 | ✗ | bool SpeciesImpl::setCp(const double Cp) { | |
| 741 | ✗ | m_Cp = openstudio::string_conversions::number(Cp); | |
| 742 | ✗ | return true; | |
| 743 | } | ||
| 744 | |||
| 745 | 12 | bool SpeciesImpl::setCp(const std::string& Cp) { | |
| 746 | 12 | return assign_if_valid<double>(Cp, m_Cp); | |
| 747 | } | ||
| 748 | |||
| 749 | ✗ | int SpeciesImpl::ucc() const { | |
| 750 | ✗ | return m_ucc; | |
| 751 | } | ||
| 752 | |||
| 753 | 12 | void SpeciesImpl::setUcc(const int ucc) { | |
| 754 | 12 | m_ucc = ucc; | |
| 755 | 12 | } | |
| 756 | |||
| 757 | ✗ | int SpeciesImpl::umd() const { | |
| 758 | ✗ | return m_umd; | |
| 759 | } | ||
| 760 | |||
| 761 | 12 | void SpeciesImpl::setUmd(const int umd) { | |
| 762 | 12 | m_umd = umd; | |
| 763 | 12 | } | |
| 764 | |||
| 765 | ✗ | int SpeciesImpl::ued() const { | |
| 766 | ✗ | return m_ued; | |
| 767 | } | ||
| 768 | |||
| 769 | 12 | void SpeciesImpl::setUed(const int ued) { | |
| 770 | 12 | m_ued = ued; | |
| 771 | 12 | } | |
| 772 | |||
| 773 | ✗ | int SpeciesImpl::udm() const { | |
| 774 | ✗ | return m_udm; | |
| 775 | } | ||
| 776 | |||
| 777 | 12 | void SpeciesImpl::setUdm(const int udm) { | |
| 778 | 12 | m_udm = udm; | |
| 779 | 12 | } | |
| 780 | |||
| 781 | ✗ | int SpeciesImpl::ucp() const { | |
| 782 | ✗ | return m_ucp; | |
| 783 | } | ||
| 784 | |||
| 785 | 12 | void SpeciesImpl::setUcp(const int ucp) { | |
| 786 | 12 | m_ucp = ucp; | |
| 787 | 12 | } | |
| 788 | |||
| 789 | ✗ | std::string SpeciesImpl::name() const { | |
| 790 | ✗ | return m_name; | |
| 791 | } | ||
| 792 | |||
| 793 | 14 | void SpeciesImpl::setName(const std::string& name) { | |
| 794 | 14 | m_name = name; | |
| 795 | 14 | } | |
| 796 | |||
| 797 | ✗ | std::string SpeciesImpl::desc() const { | |
| 798 | ✗ | return m_desc; | |
| 799 | } | ||
| 800 | |||
| 801 | 14 | void SpeciesImpl::setDesc(const std::string& desc) { | |
| 802 | 14 | m_desc = desc; | |
| 803 | 14 | } | |
| 804 | |||
| 805 | 3 | void AhsImpl::setDefaults() { | |
| 806 | 3 | m_nr = 0; | |
| 807 | 3 | m_zone_r = 0; | |
| 808 | 3 | m_zone_s = 0; | |
| 809 | 3 | m_path_r = 0; | |
| 810 | 3 | m_path_s = 0; | |
| 811 | 3 | m_path_x = 0; | |
| 812 | 3 | } | |
| 813 | |||
| 814 | 3 | AhsImpl::AhsImpl() { | |
| 815 |
1/1✓ Branch 1 taken 3 times.
|
3 | setDefaults(); |
| 816 | 3 | } | |
| 817 | |||
| 818 | ✗ | AhsImpl::AhsImpl(int nr, int zone_r, int zone_s, int path_r, int path_s, int path_x, std::string name, std::string desc) { | |
| 819 | ✗ | setDefaults(); | |
| 820 | ✗ | setNr(nr); | |
| 821 | ✗ | setZone_r(zone_r); | |
| 822 | ✗ | setZone_s(zone_s); | |
| 823 | ✗ | setPath_r(path_r); | |
| 824 | ✗ | setPath_s(path_s); | |
| 825 | ✗ | setPath_x(path_x); | |
| 826 | ✗ | setName(name); | |
| 827 | ✗ | setDesc(desc); | |
| 828 | ✗ | } | |
| 829 | |||
| 830 | ✗ | void AhsImpl::read(Reader& input) { | |
| 831 | ✗ | setNr(input.read<int>()); | |
| 832 | ✗ | setZone_r(input.read<int>()); | |
| 833 | ✗ | setZone_s(input.read<int>()); | |
| 834 | ✗ | setPath_r(input.read<int>()); | |
| 835 | ✗ | setPath_s(input.read<int>()); | |
| 836 | ✗ | setPath_x(input.read<int>()); | |
| 837 | ✗ | setName(input.readString()); | |
| 838 | ✗ | setDesc(input.readLine()); | |
| 839 | ✗ | } | |
| 840 | |||
| 841 | 1 | std::string AhsImpl::write() { | |
| 842 | 1 | std::string string; | |
| 843 |
13/13✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
✓ Branch 37 taken 1 time.
|
2 | string += ANY_TO_STR(m_nr) + ' ' + ANY_TO_STR(m_zone_r) + ' ' + ANY_TO_STR(m_zone_s) + ' ' + ANY_TO_STR(m_path_r) + ' ' + ANY_TO_STR(m_path_s) |
| 844 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
|
3 | + ' ' + ANY_TO_STR(m_path_x) + ' ' + m_name + '\n'; |
| 845 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | string += m_desc + '\n'; |
| 846 | 1 | return string; | |
| 847 | ✗ | } | |
| 848 | |||
| 849 | 14 | int AhsImpl::nr() const { | |
| 850 | 14 | return m_nr; | |
| 851 | } | ||
| 852 | |||
| 853 | 6 | void AhsImpl::setNr(const int nr) { | |
| 854 | 6 | m_nr = nr; | |
| 855 | 6 | } | |
| 856 | |||
| 857 | 13 | int AhsImpl::zone_r() const { | |
| 858 | 13 | return m_zone_r; | |
| 859 | } | ||
| 860 | |||
| 861 | 3 | void AhsImpl::setZone_r(const int zone_r) { | |
| 862 | 3 | m_zone_r = zone_r; | |
| 863 | 3 | } | |
| 864 | |||
| 865 | 13 | int AhsImpl::zone_s() const { | |
| 866 | 13 | return m_zone_s; | |
| 867 | } | ||
| 868 | |||
| 869 | 3 | void AhsImpl::setZone_s(const int zone_s) { | |
| 870 | 3 | m_zone_s = zone_s; | |
| 871 | 3 | } | |
| 872 | |||
| 873 | ✗ | int AhsImpl::path_r() const { | |
| 874 | ✗ | return m_path_r; | |
| 875 | } | ||
| 876 | |||
| 877 | 3 | void AhsImpl::setPath_r(const int path_r) { | |
| 878 | 3 | m_path_r = path_r; | |
| 879 | 3 | } | |
| 880 | |||
| 881 | ✗ | int AhsImpl::path_s() const { | |
| 882 | ✗ | return m_path_s; | |
| 883 | } | ||
| 884 | |||
| 885 | 3 | void AhsImpl::setPath_s(const int path_s) { | |
| 886 | 3 | m_path_s = path_s; | |
| 887 | 3 | } | |
| 888 | |||
| 889 | ✗ | int AhsImpl::path_x() const { | |
| 890 | ✗ | return m_path_x; | |
| 891 | } | ||
| 892 | |||
| 893 | 3 | void AhsImpl::setPath_x(const int path_x) { | |
| 894 | 3 | m_path_x = path_x; | |
| 895 | 3 | } | |
| 896 | |||
| 897 | ✗ | std::string AhsImpl::name() const { | |
| 898 | ✗ | return m_name; | |
| 899 | } | ||
| 900 | |||
| 901 | 3 | void AhsImpl::setName(const std::string& name) { | |
| 902 | 3 | m_name = name; | |
| 903 | 3 | } | |
| 904 | |||
| 905 | ✗ | std::string AhsImpl::desc() const { | |
| 906 | ✗ | return m_desc; | |
| 907 | } | ||
| 908 | |||
| 909 | ✗ | void AhsImpl::setDesc(const std::string& desc) { | |
| 910 | ✗ | m_desc = desc; | |
| 911 | ✗ | } | |
| 912 | |||
| 913 | 69 | void AirflowPathImpl::setDefaults() { | |
| 914 | 69 | m_nr = 0; | |
| 915 | 69 | m_flags = 0; | |
| 916 | 69 | m_pzn = 0; | |
| 917 | 69 | m_pzm = 0; | |
| 918 | 69 | m_pe = 0; | |
| 919 | 69 | m_pf = 0; | |
| 920 | 69 | m_pw = 0; | |
| 921 | 69 | m_pa = 0; | |
| 922 | 69 | m_ps = 0; | |
| 923 | 69 | m_pc = 0; | |
| 924 | 69 | m_pld = 0; | |
| 925 |
1/1✓ Branch 1 taken 69 times.
|
138 | m_X = PRJFLOAT("0.0"); |
| 926 |
1/1✓ Branch 1 taken 69 times.
|
138 | m_Y = PRJFLOAT("0.0"); |
| 927 |
1/1✓ Branch 1 taken 69 times.
|
138 | m_relHt = PRJFLOAT("0.0"); |
| 928 |
1/1✓ Branch 1 taken 69 times.
|
138 | m_mult = PRJFLOAT("0.0"); |
| 929 |
1/1✓ Branch 1 taken 69 times.
|
138 | m_wPset = PRJFLOAT("0.0"); |
| 930 |
1/1✓ Branch 1 taken 69 times.
|
138 | m_wPmod = PRJFLOAT("0.0"); |
| 931 |
1/1✓ Branch 1 taken 69 times.
|
138 | m_wazm = PRJFLOAT("0.0"); |
| 932 |
1/1✓ Branch 1 taken 69 times.
|
138 | m_Fahs = PRJFLOAT("0.0"); |
| 933 |
1/1✓ Branch 1 taken 69 times.
|
138 | m_Xmax = PRJFLOAT("0.0"); |
| 934 |
1/1✓ Branch 1 taken 69 times.
|
69 | m_Xmin = PRJFLOAT("0.0"); |
| 935 | 69 | m_icon = 0; | |
| 936 | 69 | m_dir = 0; | |
| 937 | 69 | m_u_Ht = 0; | |
| 938 | 69 | m_u_XY = 0; | |
| 939 | 69 | m_u_dP = 0; | |
| 940 | 69 | m_u_F = 0; | |
| 941 | 69 | m_cfd = 0; | |
| 942 | 69 | m_cfd_ptype = 0; | |
| 943 | 69 | m_cfd_btype = 0; | |
| 944 | 69 | m_cfd_capp = 0; | |
| 945 | 69 | } | |
| 946 | |||
| 947 | 69 | AirflowPathImpl::AirflowPathImpl() { | |
| 948 |
1/1✓ Branch 1 taken 69 times.
|
69 | setDefaults(); |
| 949 | 69 | } | |
| 950 | |||
| 951 | ✗ | AirflowPathImpl::AirflowPathImpl(int nr, int flags, int pzn, int pzm, int pe, int pf, int pw, int pa, int ps, int pc, int pld, std::string X, | |
| 952 | std::string Y, std::string relHt, std::string mult, std::string wPset, std::string wPmod, std::string wazm, | ||
| 953 | std::string Fahs, std::string Xmax, std::string Xmin, unsigned int icon, unsigned int dir, int u_Ht, int u_XY, | ||
| 954 | ✗ | int u_dP, int u_F, int cfd, std::string cfd_name, int cfd_ptype, int cfd_btype, int cfd_capp) { | |
| 955 | ✗ | setDefaults(); | |
| 956 | ✗ | setNr(nr); | |
| 957 | ✗ | setFlags(flags); | |
| 958 | ✗ | setPzn(pzn); | |
| 959 | ✗ | setPzm(pzm); | |
| 960 | ✗ | setPe(pe); | |
| 961 | ✗ | setPf(pf); | |
| 962 | ✗ | setPw(pw); | |
| 963 | ✗ | setPa(pa); | |
| 964 | ✗ | setPs(ps); | |
| 965 | ✗ | setPc(pc); | |
| 966 | ✗ | setPld(pld); | |
| 967 | ✗ | setX(X); | |
| 968 | ✗ | setY(Y); | |
| 969 | ✗ | setRelHt(relHt); | |
| 970 | ✗ | setMult(mult); | |
| 971 | ✗ | setWPset(wPset); | |
| 972 | ✗ | setWPmod(wPmod); | |
| 973 | ✗ | setWazm(wazm); | |
| 974 | ✗ | setFahs(Fahs); | |
| 975 | ✗ | setXmax(Xmax); | |
| 976 | ✗ | setXmin(Xmin); | |
| 977 | ✗ | setIcon(icon); | |
| 978 | ✗ | setDir(dir); | |
| 979 | ✗ | setU_Ht(u_Ht); | |
| 980 | ✗ | setU_XY(u_XY); | |
| 981 | ✗ | setU_dP(u_dP); | |
| 982 | ✗ | setU_F(u_F); | |
| 983 | ✗ | setCfd(cfd); | |
| 984 | ✗ | setCfd_name(cfd_name); | |
| 985 | ✗ | setCfd_ptype(cfd_ptype); | |
| 986 | ✗ | setCfd_btype(cfd_btype); | |
| 987 | ✗ | setCfd_capp(cfd_capp); | |
| 988 | ✗ | } | |
| 989 | |||
| 990 | ✗ | AirflowPathImpl::AirflowPathImpl(int nr, int flags, int pzn, int pzm, int pe, int pf, int pw, int pa, int ps, int pc, int pld, double X, double Y, | |
| 991 | double relHt, double mult, double wPset, double wPmod, double wazm, double Fahs, double Xmax, double Xmin, | ||
| 992 | unsigned int icon, unsigned int dir, int u_Ht, int u_XY, int u_dP, int u_F, int cfd, std::string cfd_name, | ||
| 993 | ✗ | int cfd_ptype, int cfd_btype, int cfd_capp) { | |
| 994 | ✗ | setDefaults(); | |
| 995 | ✗ | setNr(nr); | |
| 996 | ✗ | setFlags(flags); | |
| 997 | ✗ | setPzn(pzn); | |
| 998 | ✗ | setPzm(pzm); | |
| 999 | ✗ | setPe(pe); | |
| 1000 | ✗ | setPf(pf); | |
| 1001 | ✗ | setPw(pw); | |
| 1002 | ✗ | setPa(pa); | |
| 1003 | ✗ | setPs(ps); | |
| 1004 | ✗ | setPc(pc); | |
| 1005 | ✗ | setPld(pld); | |
| 1006 | ✗ | setX(X); | |
| 1007 | ✗ | setY(Y); | |
| 1008 | ✗ | setRelHt(relHt); | |
| 1009 | ✗ | setMult(mult); | |
| 1010 | ✗ | setWPset(wPset); | |
| 1011 | ✗ | setWPmod(wPmod); | |
| 1012 | ✗ | setWazm(wazm); | |
| 1013 | ✗ | setFahs(Fahs); | |
| 1014 | ✗ | setXmax(Xmax); | |
| 1015 | ✗ | setXmin(Xmin); | |
| 1016 | ✗ | setIcon(icon); | |
| 1017 | ✗ | setDir(dir); | |
| 1018 | ✗ | setU_Ht(u_Ht); | |
| 1019 | ✗ | setU_XY(u_XY); | |
| 1020 | ✗ | setU_dP(u_dP); | |
| 1021 | ✗ | setU_F(u_F); | |
| 1022 | ✗ | setCfd(cfd); | |
| 1023 | ✗ | setCfd_name(cfd_name); | |
| 1024 | ✗ | setCfd_ptype(cfd_ptype); | |
| 1025 | ✗ | setCfd_btype(cfd_btype); | |
| 1026 | ✗ | setCfd_capp(cfd_capp); | |
| 1027 | ✗ | } | |
| 1028 | |||
| 1029 | ✗ | void AirflowPathImpl::read(Reader& input) { | |
| 1030 | ✗ | setNr(input.read<int>()); | |
| 1031 | ✗ | setFlags(input.read<int>()); | |
| 1032 | ✗ | setPzn(input.read<int>()); | |
| 1033 | ✗ | setPzm(input.read<int>()); | |
| 1034 | ✗ | setPe(input.read<int>()); | |
| 1035 | ✗ | setPf(input.read<int>()); | |
| 1036 | ✗ | setPw(input.read<int>()); | |
| 1037 | ✗ | setPa(input.read<int>()); | |
| 1038 | ✗ | setPs(input.read<int>()); | |
| 1039 | ✗ | setPc(input.read<int>()); | |
| 1040 | ✗ | setPld(input.read<int>()); | |
| 1041 | ✗ | setX(input.readNumber<std::string>()); | |
| 1042 | ✗ | setY(input.readNumber<std::string>()); | |
| 1043 | ✗ | setRelHt(input.readNumber<std::string>()); | |
| 1044 | ✗ | setMult(input.readNumber<std::string>()); | |
| 1045 | ✗ | setWPset(input.readNumber<std::string>()); | |
| 1046 | ✗ | setWPmod(input.readNumber<std::string>()); | |
| 1047 | ✗ | setWazm(input.readNumber<std::string>()); | |
| 1048 | ✗ | setFahs(input.readNumber<std::string>()); | |
| 1049 | ✗ | setXmax(input.readNumber<std::string>()); | |
| 1050 | ✗ | setXmin(input.readNumber<std::string>()); | |
| 1051 | ✗ | setIcon(input.read<unsigned int>()); | |
| 1052 | ✗ | setDir(input.read<unsigned int>()); | |
| 1053 | ✗ | setU_Ht(input.read<int>()); | |
| 1054 | ✗ | setU_XY(input.read<int>()); | |
| 1055 | ✗ | setU_dP(input.read<int>()); | |
| 1056 | ✗ | setU_F(input.read<int>()); | |
| 1057 | ✗ | setCfd(input.read<int>()); | |
| 1058 | ✗ | if (m_cfd != 0) { | |
| 1059 | ✗ | setCfd_name(input.readString()); | |
| 1060 | ✗ | setCfd_ptype(input.read<int>()); | |
| 1061 | ✗ | setCfd_btype(input.read<int>()); | |
| 1062 | ✗ | setCfd_capp(input.read<int>()); | |
| 1063 | } | ||
| 1064 | ✗ | } | |
| 1065 | |||
| 1066 | 17 | std::string AirflowPathImpl::write() { | |
| 1067 | 17 | std::string string; | |
| 1068 |
14/14✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 7 taken 17 times.
✓ Branch 10 taken 17 times.
✓ Branch 13 taken 17 times.
✓ Branch 16 taken 17 times.
✓ Branch 19 taken 17 times.
✓ Branch 22 taken 17 times.
✓ Branch 25 taken 17 times.
✓ Branch 28 taken 17 times.
✓ Branch 31 taken 17 times.
✓ Branch 34 taken 17 times.
✓ Branch 37 taken 17 times.
✓ Branch 40 taken 17 times.
|
34 | string += ANY_TO_STR(m_nr) + ' ' + ANY_TO_STR(m_flags) + ' ' + ANY_TO_STR(m_pzn) + ' ' + ANY_TO_STR(m_pzm) + ' ' + ANY_TO_STR(m_pe) + ' ' |
| 1069 |
15/15✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 7 taken 17 times.
✓ Branch 10 taken 17 times.
✓ Branch 13 taken 17 times.
✓ Branch 16 taken 17 times.
✓ Branch 19 taken 17 times.
✓ Branch 22 taken 17 times.
✓ Branch 25 taken 17 times.
✓ Branch 28 taken 17 times.
✓ Branch 31 taken 17 times.
✓ Branch 34 taken 17 times.
✓ Branch 37 taken 17 times.
✓ Branch 40 taken 17 times.
✓ Branch 43 taken 17 times.
|
68 | + ANY_TO_STR(m_pf) + ' ' + ANY_TO_STR(m_pw) + ' ' + ANY_TO_STR(m_pa) + ' ' + ANY_TO_STR(m_ps) + ' ' + ANY_TO_STR(m_pc) + ' ' |
| 1070 |
15/15✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 7 taken 17 times.
✓ Branch 10 taken 17 times.
✓ Branch 13 taken 17 times.
✓ Branch 16 taken 17 times.
✓ Branch 19 taken 17 times.
✓ Branch 22 taken 17 times.
✓ Branch 25 taken 17 times.
✓ Branch 28 taken 17 times.
✓ Branch 31 taken 17 times.
✓ Branch 34 taken 17 times.
✓ Branch 37 taken 17 times.
✓ Branch 40 taken 17 times.
✓ Branch 43 taken 17 times.
|
68 | + ANY_TO_STR(m_pld) + ' ' + ANY_TO_STR(m_X) + ' ' + ANY_TO_STR(m_Y) + ' ' + ANY_TO_STR(m_relHt) + ' ' + ANY_TO_STR(m_mult) + ' ' |
| 1071 |
14/14✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 7 taken 17 times.
✓ Branch 10 taken 17 times.
✓ Branch 13 taken 17 times.
✓ Branch 16 taken 17 times.
✓ Branch 19 taken 17 times.
✓ Branch 22 taken 17 times.
✓ Branch 25 taken 17 times.
✓ Branch 28 taken 17 times.
✓ Branch 31 taken 17 times.
✓ Branch 34 taken 17 times.
✓ Branch 37 taken 17 times.
✓ Branch 40 taken 17 times.
|
68 | + ANY_TO_STR(m_wPset) + ' ' + ANY_TO_STR(m_wPmod) + ' ' + ANY_TO_STR(m_wazm) + ' ' + ANY_TO_STR(m_Fahs) + ' ' + ANY_TO_STR(m_Xmax) |
| 1072 |
15/15✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 7 taken 17 times.
✓ Branch 10 taken 17 times.
✓ Branch 13 taken 17 times.
✓ Branch 16 taken 17 times.
✓ Branch 19 taken 17 times.
✓ Branch 22 taken 17 times.
✓ Branch 25 taken 17 times.
✓ Branch 28 taken 17 times.
✓ Branch 31 taken 17 times.
✓ Branch 34 taken 17 times.
✓ Branch 37 taken 17 times.
✓ Branch 40 taken 17 times.
✓ Branch 43 taken 17 times.
|
68 | + ' ' + ANY_TO_STR(m_Xmin) + ' ' + ANY_TO_STR(m_icon) + ' ' + ANY_TO_STR(m_dir) + ' ' + ANY_TO_STR(m_u_Ht) + ' ' + ANY_TO_STR(m_u_XY) |
| 1073 |
10/10✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 7 taken 17 times.
✓ Branch 10 taken 17 times.
✓ Branch 13 taken 17 times.
✓ Branch 16 taken 17 times.
✓ Branch 19 taken 17 times.
✓ Branch 22 taken 17 times.
✓ Branch 25 taken 17 times.
✓ Branch 28 taken 17 times.
|
51 | + ' ' + ANY_TO_STR(m_u_dP) + ' ' + ANY_TO_STR(m_u_F) + ' ' + ANY_TO_STR(m_cfd); |
| 1074 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (m_cfd != 0) { |
| 1075 | ✗ | string += ' ' + m_cfd_name + ' ' + ANY_TO_STR(m_cfd_ptype) + ' ' + ANY_TO_STR(m_cfd_btype) + ' ' + ANY_TO_STR(m_cfd_capp); | |
| 1076 | } | ||
| 1077 |
1/1✓ Branch 1 taken 17 times.
|
34 | return string + '\n'; |
| 1078 | 17 | } | |
| 1079 | |||
| 1080 | 105 | int AirflowPathImpl::nr() const { | |
| 1081 | 105 | return m_nr; | |
| 1082 | } | ||
| 1083 | |||
| 1084 | 92 | void AirflowPathImpl::setNr(const int nr) { | |
| 1085 | 92 | m_nr = nr; | |
| 1086 | 92 | } | |
| 1087 | |||
| 1088 | ✗ | int AirflowPathImpl::flags() const { | |
| 1089 | ✗ | return m_flags; | |
| 1090 | } | ||
| 1091 | |||
| 1092 | ✗ | void AirflowPathImpl::setFlags(const int flags) { | |
| 1093 | ✗ | m_flags = flags; | |
| 1094 | ✗ | } | |
| 1095 | |||
| 1096 | 39 | int AirflowPathImpl::pzn() const { | |
| 1097 | 39 | return m_pzn; | |
| 1098 | } | ||
| 1099 | |||
| 1100 | 69 | void AirflowPathImpl::setPzn(const int pzn) { | |
| 1101 | 69 | m_pzn = pzn; | |
| 1102 | 69 | } | |
| 1103 | |||
| 1104 | 26 | int AirflowPathImpl::pzm() const { | |
| 1105 | 26 | return m_pzm; | |
| 1106 | } | ||
| 1107 | |||
| 1108 | 69 | void AirflowPathImpl::setPzm(const int pzm) { | |
| 1109 | 69 | m_pzm = pzm; | |
| 1110 | 69 | } | |
| 1111 | |||
| 1112 | 12 | int AirflowPathImpl::pe() const { | |
| 1113 | 12 | return m_pe; | |
| 1114 | } | ||
| 1115 | |||
| 1116 | 46 | void AirflowPathImpl::setPe(const int pe) { | |
| 1117 | 46 | m_pe = pe; | |
| 1118 | 46 | } | |
| 1119 | |||
| 1120 | ✗ | int AirflowPathImpl::pf() const { | |
| 1121 | ✗ | return m_pf; | |
| 1122 | } | ||
| 1123 | |||
| 1124 | ✗ | void AirflowPathImpl::setPf(const int pf) { | |
| 1125 | ✗ | m_pf = pf; | |
| 1126 | ✗ | } | |
| 1127 | |||
| 1128 | ✗ | int AirflowPathImpl::pw() const { | |
| 1129 | ✗ | return m_pw; | |
| 1130 | } | ||
| 1131 | |||
| 1132 | 48 | void AirflowPathImpl::setPw(const int pw) { | |
| 1133 | 48 | m_pw = pw; | |
| 1134 | 48 | } | |
| 1135 | |||
| 1136 | ✗ | int AirflowPathImpl::pa() const { | |
| 1137 | ✗ | return m_pa; | |
| 1138 | } | ||
| 1139 | |||
| 1140 | 14 | void AirflowPathImpl::setPa(const int pa) { | |
| 1141 | 14 | m_pa = pa; | |
| 1142 | 14 | } | |
| 1143 | |||
| 1144 | ✗ | int AirflowPathImpl::ps() const { | |
| 1145 | ✗ | return m_ps; | |
| 1146 | } | ||
| 1147 | |||
| 1148 | ✗ | void AirflowPathImpl::setPs(const int ps) { | |
| 1149 | ✗ | m_ps = ps; | |
| 1150 | ✗ | } | |
| 1151 | |||
| 1152 | ✗ | int AirflowPathImpl::pc() const { | |
| 1153 | ✗ | return m_pc; | |
| 1154 | } | ||
| 1155 | |||
| 1156 | ✗ | void AirflowPathImpl::setPc(const int pc) { | |
| 1157 | ✗ | m_pc = pc; | |
| 1158 | ✗ | } | |
| 1159 | |||
| 1160 | ✗ | int AirflowPathImpl::pld() const { | |
| 1161 | ✗ | return m_pld; | |
| 1162 | } | ||
| 1163 | |||
| 1164 | 69 | void AirflowPathImpl::setPld(const int pld) { | |
| 1165 | 69 | m_pld = pld; | |
| 1166 | 69 | } | |
| 1167 | |||
| 1168 | ✗ | double AirflowPathImpl::X() const { | |
| 1169 | ✗ | return openstudio::string_conversions::to<double>(m_X); | |
| 1170 | } | ||
| 1171 | |||
| 1172 | ✗ | bool AirflowPathImpl::setX(const double X) { | |
| 1173 | ✗ | m_X = openstudio::string_conversions::number(X); | |
| 1174 | ✗ | return true; | |
| 1175 | } | ||
| 1176 | |||
| 1177 | ✗ | bool AirflowPathImpl::setX(const std::string& X) { | |
| 1178 | ✗ | return assign_if_valid<double>(X, m_X); | |
| 1179 | } | ||
| 1180 | |||
| 1181 | ✗ | double AirflowPathImpl::Y() const { | |
| 1182 | ✗ | return openstudio::string_conversions::to<double>(m_Y); | |
| 1183 | } | ||
| 1184 | |||
| 1185 | ✗ | bool AirflowPathImpl::setY(const double Y) { | |
| 1186 | ✗ | m_Y = openstudio::string_conversions::number(Y); | |
| 1187 | ✗ | return true; | |
| 1188 | } | ||
| 1189 | |||
| 1190 | ✗ | bool AirflowPathImpl::setY(const std::string& Y) { | |
| 1191 | ✗ | return assign_if_valid<double>(Y, m_Y); | |
| 1192 | } | ||
| 1193 | |||
| 1194 | ✗ | double AirflowPathImpl::relHt() const { | |
| 1195 | ✗ | return openstudio::string_conversions::to<double>(m_relHt); | |
| 1196 | } | ||
| 1197 | |||
| 1198 | 46 | bool AirflowPathImpl::setRelHt(const double relHt) { | |
| 1199 |
1/1✓ Branch 1 taken 46 times.
|
46 | m_relHt = openstudio::string_conversions::number(relHt); |
| 1200 | 46 | return true; | |
| 1201 | } | ||
| 1202 | |||
| 1203 | ✗ | bool AirflowPathImpl::setRelHt(const std::string& relHt) { | |
| 1204 | ✗ | return assign_if_valid<double>(relHt, m_relHt); | |
| 1205 | } | ||
| 1206 | |||
| 1207 | 17 | double AirflowPathImpl::mult() const { | |
| 1208 | 17 | return openstudio::string_conversions::to<double>(m_mult); | |
| 1209 | } | ||
| 1210 | |||
| 1211 | 46 | bool AirflowPathImpl::setMult(const double mult) { | |
| 1212 |
1/1✓ Branch 1 taken 46 times.
|
46 | m_mult = openstudio::string_conversions::number(mult); |
| 1213 | 46 | return true; | |
| 1214 | } | ||
| 1215 | |||
| 1216 | ✗ | bool AirflowPathImpl::setMult(const std::string& mult) { | |
| 1217 | ✗ | return assign_if_valid<double>(mult, m_mult); | |
| 1218 | } | ||
| 1219 | |||
| 1220 | ✗ | double AirflowPathImpl::wPset() const { | |
| 1221 | ✗ | return openstudio::string_conversions::to<double>(m_wPset); | |
| 1222 | } | ||
| 1223 | |||
| 1224 | ✗ | bool AirflowPathImpl::setWPset(const double wPset) { | |
| 1225 | ✗ | m_wPset = openstudio::string_conversions::number(wPset); | |
| 1226 | ✗ | return true; | |
| 1227 | } | ||
| 1228 | |||
| 1229 | ✗ | bool AirflowPathImpl::setWPset(const std::string& wPset) { | |
| 1230 | ✗ | return assign_if_valid<double>(wPset, m_wPset); | |
| 1231 | } | ||
| 1232 | |||
| 1233 | ✗ | double AirflowPathImpl::wPmod() const { | |
| 1234 | ✗ | return openstudio::string_conversions::to<double>(m_wPmod); | |
| 1235 | } | ||
| 1236 | |||
| 1237 | 36 | bool AirflowPathImpl::setWPmod(const double wPmod) { | |
| 1238 |
1/1✓ Branch 1 taken 36 times.
|
36 | m_wPmod = openstudio::string_conversions::number(wPmod); |
| 1239 | 36 | return true; | |
| 1240 | } | ||
| 1241 | |||
| 1242 | ✗ | bool AirflowPathImpl::setWPmod(const std::string& wPmod) { | |
| 1243 | ✗ | return assign_if_valid<double>(wPmod, m_wPmod); | |
| 1244 | } | ||
| 1245 | |||
| 1246 | ✗ | double AirflowPathImpl::wazm() const { | |
| 1247 | ✗ | return openstudio::string_conversions::to<double>(m_wazm); | |
| 1248 | } | ||
| 1249 | |||
| 1250 | 36 | bool AirflowPathImpl::setWazm(const double wazm) { | |
| 1251 |
1/1✓ Branch 1 taken 36 times.
|
36 | m_wazm = openstudio::string_conversions::number(wazm); |
| 1252 | 36 | return true; | |
| 1253 | } | ||
| 1254 | |||
| 1255 | ✗ | bool AirflowPathImpl::setWazm(const std::string& wazm) { | |
| 1256 | ✗ | return assign_if_valid<double>(wazm, m_wazm); | |
| 1257 | } | ||
| 1258 | |||
| 1259 | ✗ | double AirflowPathImpl::Fahs() const { | |
| 1260 | ✗ | return openstudio::string_conversions::to<double>(m_Fahs); | |
| 1261 | } | ||
| 1262 | |||
| 1263 | ✗ | bool AirflowPathImpl::setFahs(const double Fahs) { | |
| 1264 | ✗ | m_Fahs = openstudio::string_conversions::number(Fahs); | |
| 1265 | ✗ | return true; | |
| 1266 | } | ||
| 1267 | |||
| 1268 | 14 | bool AirflowPathImpl::setFahs(const std::string& Fahs) { | |
| 1269 | 14 | return assign_if_valid<double>(Fahs, m_Fahs); | |
| 1270 | } | ||
| 1271 | |||
| 1272 | ✗ | double AirflowPathImpl::Xmax() const { | |
| 1273 | ✗ | return openstudio::string_conversions::to<double>(m_Xmax); | |
| 1274 | } | ||
| 1275 | |||
| 1276 | ✗ | bool AirflowPathImpl::setXmax(const double Xmax) { | |
| 1277 | ✗ | m_Xmax = openstudio::string_conversions::number(Xmax); | |
| 1278 | ✗ | return true; | |
| 1279 | } | ||
| 1280 | |||
| 1281 | ✗ | bool AirflowPathImpl::setXmax(const std::string& Xmax) { | |
| 1282 | ✗ | return assign_if_valid<double>(Xmax, m_Xmax); | |
| 1283 | } | ||
| 1284 | |||
| 1285 | ✗ | double AirflowPathImpl::Xmin() const { | |
| 1286 | ✗ | return openstudio::string_conversions::to<double>(m_Xmin); | |
| 1287 | } | ||
| 1288 | |||
| 1289 | ✗ | bool AirflowPathImpl::setXmin(const double Xmin) { | |
| 1290 | ✗ | m_Xmin = openstudio::string_conversions::number(Xmin); | |
| 1291 | ✗ | return true; | |
| 1292 | } | ||
| 1293 | |||
| 1294 | ✗ | bool AirflowPathImpl::setXmin(const std::string& Xmin) { | |
| 1295 | ✗ | return assign_if_valid<double>(Xmin, m_Xmin); | |
| 1296 | } | ||
| 1297 | |||
| 1298 | ✗ | unsigned int AirflowPathImpl::icon() const { | |
| 1299 | ✗ | return m_icon; | |
| 1300 | } | ||
| 1301 | |||
| 1302 | ✗ | void AirflowPathImpl::setIcon(const unsigned int icon) { | |
| 1303 | ✗ | m_icon = icon; | |
| 1304 | ✗ | } | |
| 1305 | |||
| 1306 | ✗ | unsigned int AirflowPathImpl::dir() const { | |
| 1307 | ✗ | return m_dir; | |
| 1308 | } | ||
| 1309 | |||
| 1310 | ✗ | void AirflowPathImpl::setDir(const unsigned int dir) { | |
| 1311 | ✗ | m_dir = dir; | |
| 1312 | ✗ | } | |
| 1313 | |||
| 1314 | ✗ | int AirflowPathImpl::u_Ht() const { | |
| 1315 | ✗ | return m_u_Ht; | |
| 1316 | } | ||
| 1317 | |||
| 1318 | ✗ | void AirflowPathImpl::setU_Ht(const int u_Ht) { | |
| 1319 | ✗ | m_u_Ht = u_Ht; | |
| 1320 | ✗ | } | |
| 1321 | |||
| 1322 | ✗ | int AirflowPathImpl::u_XY() const { | |
| 1323 | ✗ | return m_u_XY; | |
| 1324 | } | ||
| 1325 | |||
| 1326 | ✗ | void AirflowPathImpl::setU_XY(const int u_XY) { | |
| 1327 | ✗ | m_u_XY = u_XY; | |
| 1328 | ✗ | } | |
| 1329 | |||
| 1330 | ✗ | int AirflowPathImpl::u_dP() const { | |
| 1331 | ✗ | return m_u_dP; | |
| 1332 | } | ||
| 1333 | |||
| 1334 | ✗ | void AirflowPathImpl::setU_dP(const int u_dP) { | |
| 1335 | ✗ | m_u_dP = u_dP; | |
| 1336 | ✗ | } | |
| 1337 | |||
| 1338 | ✗ | int AirflowPathImpl::u_F() const { | |
| 1339 | ✗ | return m_u_F; | |
| 1340 | } | ||
| 1341 | |||
| 1342 | ✗ | void AirflowPathImpl::setU_F(const int u_F) { | |
| 1343 | ✗ | m_u_F = u_F; | |
| 1344 | ✗ | } | |
| 1345 | |||
| 1346 | ✗ | int AirflowPathImpl::cfd() const { | |
| 1347 | ✗ | return m_cfd; | |
| 1348 | } | ||
| 1349 | |||
| 1350 | ✗ | void AirflowPathImpl::setCfd(const int cfd) { | |
| 1351 | ✗ | m_cfd = cfd; | |
| 1352 | ✗ | } | |
| 1353 | |||
| 1354 | ✗ | std::string AirflowPathImpl::cfd_name() const { | |
| 1355 | ✗ | return m_cfd_name; | |
| 1356 | } | ||
| 1357 | |||
| 1358 | ✗ | void AirflowPathImpl::setCfd_name(const std::string& cfd_name) { | |
| 1359 | ✗ | m_cfd_name = cfd_name; | |
| 1360 | ✗ | } | |
| 1361 | |||
| 1362 | ✗ | int AirflowPathImpl::cfd_ptype() const { | |
| 1363 | ✗ | return m_cfd_ptype; | |
| 1364 | } | ||
| 1365 | |||
| 1366 | ✗ | void AirflowPathImpl::setCfd_ptype(const int cfd_ptype) { | |
| 1367 | ✗ | m_cfd_ptype = cfd_ptype; | |
| 1368 | ✗ | } | |
| 1369 | |||
| 1370 | ✗ | int AirflowPathImpl::cfd_btype() const { | |
| 1371 | ✗ | return m_cfd_btype; | |
| 1372 | } | ||
| 1373 | |||
| 1374 | ✗ | void AirflowPathImpl::setCfd_btype(const int cfd_btype) { | |
| 1375 | ✗ | m_cfd_btype = cfd_btype; | |
| 1376 | ✗ | } | |
| 1377 | |||
| 1378 | ✗ | int AirflowPathImpl::cfd_capp() const { | |
| 1379 | ✗ | return m_cfd_capp; | |
| 1380 | } | ||
| 1381 | |||
| 1382 | ✗ | void AirflowPathImpl::setCfd_capp(const int cfd_capp) { | |
| 1383 | ✗ | m_cfd_capp = cfd_capp; | |
| 1384 | ✗ | } | |
| 1385 | |||
| 1386 | 36 | void AirflowPathImpl::setWindPressure(bool b) { | |
| 1387 |
1/2✓ Branch 0 taken 36 times.
✗ Branch 1 not taken.
|
36 | if (b) { |
| 1388 | 36 | m_flags |= PathFlags::WIND; | |
| 1389 | } else { | ||
| 1390 | ✗ | m_flags &= 0xFFFE; | |
| 1391 | } | ||
| 1392 | 36 | } | |
| 1393 | |||
| 1394 | 20 | bool AirflowPathImpl::windPressure() { | |
| 1395 | 20 | return (m_flags & PathFlags::WIND) != 0; | |
| 1396 | } | ||
| 1397 | |||
| 1398 | 14 | void AirflowPathImpl::setSystem(bool b) { | |
| 1399 |
1/2✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
|
14 | if (b) { |
| 1400 | 14 | m_flags |= PathFlags::AHS_S; | |
| 1401 | } else { | ||
| 1402 | ✗ | m_flags &= 0xFFF7; | |
| 1403 | } | ||
| 1404 | 14 | } | |
| 1405 | |||
| 1406 | 26 | bool AirflowPathImpl::system() { | |
| 1407 | 26 | return (m_flags & PathFlags::AHS_S) != 0; | |
| 1408 | } | ||
| 1409 | |||
| 1410 | 3 | void AirflowPathImpl::setExhaust(bool b) { | |
| 1411 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (b) { |
| 1412 | 3 | m_flags |= PathFlags::AHS_X; | |
| 1413 | } else { | ||
| 1414 | ✗ | m_flags &= 0xFFBF; | |
| 1415 | } | ||
| 1416 | 3 | } | |
| 1417 | |||
| 1418 | 8 | bool AirflowPathImpl::exhaust() { | |
| 1419 | 8 | return (m_flags & PathFlags::AHS_X) != 0; | |
| 1420 | } | ||
| 1421 | |||
| 1422 | 3 | void AirflowPathImpl::setRecirculation(bool b) { | |
| 1423 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (b) { |
| 1424 | 3 | m_flags |= PathFlags::AHS_R; | |
| 1425 | } else { | ||
| 1426 | ✗ | m_flags &= 0xFFEF; | |
| 1427 | } | ||
| 1428 | 3 | } | |
| 1429 | |||
| 1430 | 6 | bool AirflowPathImpl::recirculation() { | |
| 1431 | 6 | return (m_flags & PathFlags::AHS_R) != 0; | |
| 1432 | } | ||
| 1433 | |||
| 1434 | 3 | void AirflowPathImpl::setOutsideAir(bool b) { | |
| 1435 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (b) { |
| 1436 | 3 | m_flags |= PathFlags::AHS_O; | |
| 1437 | } else { | ||
| 1438 | ✗ | m_flags &= 0xFFDF; | |
| 1439 | } | ||
| 1440 | 3 | } | |
| 1441 | |||
| 1442 | 7 | bool AirflowPathImpl::outsideAir() { | |
| 1443 | 7 | return (m_flags & PathFlags::AHS_O) != 0; | |
| 1444 | } | ||
| 1445 | |||
| 1446 | 8 | void RunControlImpl::setDefaults() { | |
| 1447 | 8 | m_sim_af = 0; | |
| 1448 | 8 | m_afcalc = 0; | |
| 1449 | 8 | m_afmaxi = 0; | |
| 1450 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_afrcnvg = PRJFLOAT("0.0"); |
| 1451 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_afacnvg = PRJFLOAT("0.0"); |
| 1452 |
1/1✓ Branch 1 taken 8 times.
|
8 | m_afrelax = PRJFLOAT("0.0"); |
| 1453 | 8 | m_uac2 = 0; | |
| 1454 |
1/1✓ Branch 1 taken 8 times.
|
8 | m_Pres = PRJFLOAT("0.0"); |
| 1455 | 8 | m_uPres = 0; | |
| 1456 | 8 | m_afslae = 0; | |
| 1457 | 8 | m_afrseq = 0; | |
| 1458 | 8 | m_aflmaxi = 0; | |
| 1459 |
1/1✓ Branch 1 taken 8 times.
|
8 | m_aflcnvg = PRJFLOAT("0.0"); |
| 1460 | 8 | m_aflinit = 0; | |
| 1461 | 8 | m_Tadj = 0; | |
| 1462 | 8 | m_sim_mf = 0; | |
| 1463 | 8 | m_ccmaxi = 0; | |
| 1464 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_ccrcnvg = PRJFLOAT("0.0"); |
| 1465 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_ccacnvg = PRJFLOAT("0.0"); |
| 1466 |
1/1✓ Branch 1 taken 8 times.
|
8 | m_ccrelax = PRJFLOAT("0.0"); |
| 1467 | 8 | m_uccc = 0; | |
| 1468 | 8 | m_mfnmthd = 0; | |
| 1469 | 8 | m_mfnrseq = 0; | |
| 1470 | 8 | m_mfnmaxi = 0; | |
| 1471 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_mfnrcnvg = PRJFLOAT("0.0"); |
| 1472 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_mfnacnvg = PRJFLOAT("0.0"); |
| 1473 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_mfnrelax = PRJFLOAT("0.0"); |
| 1474 |
1/1✓ Branch 1 taken 8 times.
|
8 | m_mfngamma = PRJFLOAT("0.0"); |
| 1475 | 8 | m_uccn = 0; | |
| 1476 | 8 | m_mftmthd = 0; | |
| 1477 | 8 | m_mftrseq = 0; | |
| 1478 | 8 | m_mftmaxi = 0; | |
| 1479 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_mftrcnvg = PRJFLOAT("0.0"); |
| 1480 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_mftacnvg = PRJFLOAT("0.0"); |
| 1481 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_mftrelax = PRJFLOAT("0.0"); |
| 1482 |
1/1✓ Branch 1 taken 8 times.
|
8 | m_mftgamma = PRJFLOAT("0.0"); |
| 1483 | 8 | m_ucct = 0; | |
| 1484 | 8 | m_mfvmthd = 0; | |
| 1485 | 8 | m_mfvrseq = 0; | |
| 1486 | 8 | m_mfvmaxi = 0; | |
| 1487 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_mfvrcnvg = PRJFLOAT("0.0"); |
| 1488 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_mfvacnvg = PRJFLOAT("0.0"); |
| 1489 |
1/1✓ Branch 1 taken 8 times.
|
8 | m_mfvrelax = PRJFLOAT("0.0"); |
| 1490 | 8 | m_uccv = 0; | |
| 1491 | 8 | m_mf_solver = 0; | |
| 1492 | 8 | m_sim_1dz = 0; | |
| 1493 | 8 | m_sim_1dd = 0; | |
| 1494 |
1/1✓ Branch 1 taken 8 times.
|
8 | m_celldx = PRJFLOAT("0.0"); |
| 1495 | 8 | m_sim_vjt = 0; | |
| 1496 | 8 | m_udx = 0; | |
| 1497 | 8 | m_cvode_mth = 0; | |
| 1498 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_cvode_rcnvg = PRJFLOAT("0.0"); |
| 1499 |
1/1✓ Branch 1 taken 8 times.
|
16 | m_cvode_acnvg = PRJFLOAT("0.0"); |
| 1500 |
1/1✓ Branch 1 taken 8 times.
|
8 | m_cvode_dtmax = PRJFLOAT("0.0"); |
| 1501 | 8 | m_tsdens = 0; | |
| 1502 |
1/1✓ Branch 1 taken 8 times.
|
8 | m_tsrelax = PRJFLOAT("0.0"); |
| 1503 | 8 | m_tsmaxi = 0; | |
| 1504 | 8 | m_cnvgSS = 0; | |
| 1505 | 8 | m_densZP = 0; | |
| 1506 | 8 | m_stackD = 0; | |
| 1507 | 8 | m_dodMdt = 0; | |
| 1508 | 8 | m_restart = 0; | |
| 1509 | 8 | m_list = 0; | |
| 1510 | 8 | m_doDlg = 0; | |
| 1511 | 8 | m_pfsave = 0; | |
| 1512 | 8 | m_zfsave = 0; | |
| 1513 | 8 | m_zcsave = 0; | |
| 1514 | 8 | m_achvol = 0; | |
| 1515 | 8 | m_achsave = 0; | |
| 1516 | 8 | m_abwsave = 0; | |
| 1517 | 8 | m_cbwsave = 0; | |
| 1518 | 8 | m_expsave = 0; | |
| 1519 | 8 | m_ebwsave = 0; | |
| 1520 | 8 | m_zaasave = 0; | |
| 1521 | 8 | m_zbwsave = 0; | |
| 1522 | 8 | m_rzfsave = 0; | |
| 1523 | 8 | m_rzmsave = 0; | |
| 1524 | 8 | m_rz1save = 0; | |
| 1525 | 8 | m_csmsave = 0; | |
| 1526 | 8 | m_srfsave = 0; | |
| 1527 | 8 | m_logsave = 0; | |
| 1528 | 8 | m_BldgFlowZ = 0; | |
| 1529 | 8 | m_BldgFlowD = 0; | |
| 1530 | 8 | m_BldgFlowC = 0; | |
| 1531 | 8 | m_cfd_ctype = 0; | |
| 1532 |
1/1✓ Branch 1 taken 8 times.
|
8 | m_cfd_convcpl = PRJFLOAT("0.0"); |
| 1533 | 8 | m_cfd_var = 0; | |
| 1534 | 8 | m_cfd_zref = 0; | |
| 1535 | 8 | m_cfd_imax = 0; | |
| 1536 | 8 | m_cfd_dtcmo = 0; | |
| 1537 | 8 | } | |
| 1538 | |||
| 1539 | 8 | RunControlImpl::RunControlImpl() { | |
| 1540 |
1/1✓ Branch 1 taken 8 times.
|
8 | setDefaults(); |
| 1541 | 8 | } | |
| 1542 | |||
| 1543 | ✗ | RunControlImpl::RunControlImpl(int sim_af, int afcalc, int afmaxi, double afrcnvg, double afacnvg, double afrelax, int uac2, double Pres, | |
| 1544 | int uPres, int afslae, int afrseq, int aflmaxi, double aflcnvg, int aflinit, int Tadj, int sim_mf, int ccmaxi, | ||
| 1545 | double ccrcnvg, double ccacnvg, double ccrelax, int uccc, int mfnmthd, int mfnrseq, int mfnmaxi, double mfnrcnvg, | ||
| 1546 | double mfnacnvg, double mfnrelax, double mfngamma, int uccn, int mftmthd, int mftrseq, int mftmaxi, | ||
| 1547 | double mftrcnvg, double mftacnvg, double mftrelax, double mftgamma, int ucct, int mfvmthd, int mfvrseq, | ||
| 1548 | int mfvmaxi, double mfvrcnvg, double mfvacnvg, double mfvrelax, int uccv, int mf_solver, int sim_1dz, int sim_1dd, | ||
| 1549 | double celldx, int sim_vjt, int udx, int cvode_mth, double cvode_rcnvg, double cvode_acnvg, double cvode_dtmax, | ||
| 1550 | int tsdens, double tsrelax, int tsmaxi, int cnvgSS, int densZP, int stackD, int dodMdt, std::string date_st, | ||
| 1551 | std::string time_st, std::string date_0, std::string time_0, std::string date_1, std::string time_1, | ||
| 1552 | std::string time_step, std::string time_list, std::string time_scrn, int restart, std::string rstdate, | ||
| 1553 | std::string rsttime, int list, int doDlg, int pfsave, int zfsave, int zcsave, int achvol, int achsave, int abwsave, | ||
| 1554 | int cbwsave, int expsave, int ebwsave, int zaasave, int zbwsave, int rzfsave, int rzmsave, int rz1save, | ||
| 1555 | int csmsave, int srfsave, int logsave, std::vector<int> save, std::vector<double> rvals, int BldgFlowZ, | ||
| 1556 | int BldgFlowD, int BldgFlowC, int cfd_ctype, double cfd_convcpl, int cfd_var, int cfd_zref, int cfd_imax, | ||
| 1557 | ✗ | int cfd_dtcmo) { | |
| 1558 | ✗ | setDefaults(); | |
| 1559 | ✗ | setSim_af(sim_af); | |
| 1560 | ✗ | setAfcalc(afcalc); | |
| 1561 | ✗ | setAfmaxi(afmaxi); | |
| 1562 | ✗ | setAfrcnvg(afrcnvg); | |
| 1563 | ✗ | setAfacnvg(afacnvg); | |
| 1564 | ✗ | setAfrelax(afrelax); | |
| 1565 | ✗ | setUac2(uac2); | |
| 1566 | ✗ | setPres(Pres); | |
| 1567 | ✗ | setUPres(uPres); | |
| 1568 | ✗ | setAfslae(afslae); | |
| 1569 | ✗ | setAfrseq(afrseq); | |
| 1570 | ✗ | setAflmaxi(aflmaxi); | |
| 1571 | ✗ | setAflcnvg(aflcnvg); | |
| 1572 | ✗ | setAflinit(aflinit); | |
| 1573 | ✗ | setTadj(Tadj); | |
| 1574 | ✗ | setSim_mf(sim_mf); | |
| 1575 | ✗ | setCcmaxi(ccmaxi); | |
| 1576 | ✗ | setCcrcnvg(ccrcnvg); | |
| 1577 | ✗ | setCcacnvg(ccacnvg); | |
| 1578 | ✗ | setCcrelax(ccrelax); | |
| 1579 | ✗ | setUccc(uccc); | |
| 1580 | ✗ | setMfnmthd(mfnmthd); | |
| 1581 | ✗ | setMfnrseq(mfnrseq); | |
| 1582 | ✗ | setMfnmaxi(mfnmaxi); | |
| 1583 | ✗ | setMfnrcnvg(mfnrcnvg); | |
| 1584 | ✗ | setMfnacnvg(mfnacnvg); | |
| 1585 | ✗ | setMfnrelax(mfnrelax); | |
| 1586 | ✗ | setMfngamma(mfngamma); | |
| 1587 | ✗ | setUccn(uccn); | |
| 1588 | ✗ | setMftmthd(mftmthd); | |
| 1589 | ✗ | setMftrseq(mftrseq); | |
| 1590 | ✗ | setMftmaxi(mftmaxi); | |
| 1591 | ✗ | setMftrcnvg(mftrcnvg); | |
| 1592 | ✗ | setMftacnvg(mftacnvg); | |
| 1593 | ✗ | setMftrelax(mftrelax); | |
| 1594 | ✗ | setMftgamma(mftgamma); | |
| 1595 | ✗ | setUcct(ucct); | |
| 1596 | ✗ | setMfvmthd(mfvmthd); | |
| 1597 | ✗ | setMfvrseq(mfvrseq); | |
| 1598 | ✗ | setMfvmaxi(mfvmaxi); | |
| 1599 | ✗ | setMfvrcnvg(mfvrcnvg); | |
| 1600 | ✗ | setMfvacnvg(mfvacnvg); | |
| 1601 | ✗ | setMfvrelax(mfvrelax); | |
| 1602 | ✗ | setUccv(uccv); | |
| 1603 | ✗ | setMf_solver(mf_solver); | |
| 1604 | ✗ | setSim_1dz(sim_1dz); | |
| 1605 | ✗ | setSim_1dd(sim_1dd); | |
| 1606 | ✗ | setCelldx(celldx); | |
| 1607 | ✗ | setSim_vjt(sim_vjt); | |
| 1608 | ✗ | setUdx(udx); | |
| 1609 | ✗ | setCvode_mth(cvode_mth); | |
| 1610 | ✗ | setCvode_rcnvg(cvode_rcnvg); | |
| 1611 | ✗ | setCvode_acnvg(cvode_acnvg); | |
| 1612 | ✗ | setCvode_dtmax(cvode_dtmax); | |
| 1613 | ✗ | setTsdens(tsdens); | |
| 1614 | ✗ | setTsrelax(tsrelax); | |
| 1615 | ✗ | setTsmaxi(tsmaxi); | |
| 1616 | ✗ | setCnvgSS(cnvgSS); | |
| 1617 | ✗ | setDensZP(densZP); | |
| 1618 | ✗ | setStackD(stackD); | |
| 1619 | ✗ | setDodMdt(dodMdt); | |
| 1620 | ✗ | setDate_st(date_st); | |
| 1621 | ✗ | setTime_st(time_st); | |
| 1622 | ✗ | setDate_0(date_0); | |
| 1623 | ✗ | setTime_0(time_0); | |
| 1624 | ✗ | setDate_1(date_1); | |
| 1625 | ✗ | setTime_1(time_1); | |
| 1626 | ✗ | setTime_step(time_step); | |
| 1627 | ✗ | setTime_list(time_list); | |
| 1628 | ✗ | setTime_scrn(time_scrn); | |
| 1629 | ✗ | setRestart(restart); | |
| 1630 | ✗ | setRstdate(rstdate); | |
| 1631 | ✗ | setRsttime(rsttime); | |
| 1632 | ✗ | setList(list); | |
| 1633 | ✗ | setDoDlg(doDlg); | |
| 1634 | ✗ | setPfsave(pfsave); | |
| 1635 | ✗ | setZfsave(zfsave); | |
| 1636 | ✗ | setZcsave(zcsave); | |
| 1637 | ✗ | setAchvol(achvol); | |
| 1638 | ✗ | setAchsave(achsave); | |
| 1639 | ✗ | setAbwsave(abwsave); | |
| 1640 | ✗ | setCbwsave(cbwsave); | |
| 1641 | ✗ | setExpsave(expsave); | |
| 1642 | ✗ | setEbwsave(ebwsave); | |
| 1643 | ✗ | setZaasave(zaasave); | |
| 1644 | ✗ | setZbwsave(zbwsave); | |
| 1645 | ✗ | setRzfsave(rzfsave); | |
| 1646 | ✗ | setRzmsave(rzmsave); | |
| 1647 | ✗ | setRz1save(rz1save); | |
| 1648 | ✗ | setCsmsave(csmsave); | |
| 1649 | ✗ | setSrfsave(srfsave); | |
| 1650 | ✗ | setLogsave(logsave); | |
| 1651 | ✗ | setSave(save); | |
| 1652 | ✗ | setRvals(rvals); | |
| 1653 | ✗ | setBldgFlowZ(BldgFlowZ); | |
| 1654 | ✗ | setBldgFlowD(BldgFlowD); | |
| 1655 | ✗ | setBldgFlowC(BldgFlowC); | |
| 1656 | ✗ | setCfd_ctype(cfd_ctype); | |
| 1657 | ✗ | setCfd_convcpl(cfd_convcpl); | |
| 1658 | ✗ | setCfd_var(cfd_var); | |
| 1659 | ✗ | setCfd_zref(cfd_zref); | |
| 1660 | ✗ | setCfd_imax(cfd_imax); | |
| 1661 | ✗ | setCfd_dtcmo(cfd_dtcmo); | |
| 1662 | ✗ | } | |
| 1663 | |||
| 1664 | ✗ | RunControlImpl::RunControlImpl(int sim_af, int afcalc, int afmaxi, std::string afrcnvg, std::string afacnvg, std::string afrelax, int uac2, | |
| 1665 | std::string Pres, int uPres, int afslae, int afrseq, int aflmaxi, std::string aflcnvg, int aflinit, int Tadj, | ||
| 1666 | int sim_mf, int ccmaxi, std::string ccrcnvg, std::string ccacnvg, std::string ccrelax, int uccc, int mfnmthd, | ||
| 1667 | int mfnrseq, int mfnmaxi, std::string mfnrcnvg, std::string mfnacnvg, std::string mfnrelax, std::string mfngamma, | ||
| 1668 | int uccn, int mftmthd, int mftrseq, int mftmaxi, std::string mftrcnvg, std::string mftacnvg, std::string mftrelax, | ||
| 1669 | std::string mftgamma, int ucct, int mfvmthd, int mfvrseq, int mfvmaxi, std::string mfvrcnvg, std::string mfvacnvg, | ||
| 1670 | std::string mfvrelax, int uccv, int mf_solver, int sim_1dz, int sim_1dd, std::string celldx, int sim_vjt, int udx, | ||
| 1671 | int cvode_mth, std::string cvode_rcnvg, std::string cvode_acnvg, std::string cvode_dtmax, int tsdens, | ||
| 1672 | std::string tsrelax, int tsmaxi, int cnvgSS, int densZP, int stackD, int dodMdt, std::string date_st, | ||
| 1673 | std::string time_st, std::string date_0, std::string time_0, std::string date_1, std::string time_1, | ||
| 1674 | std::string time_step, std::string time_list, std::string time_scrn, int restart, std::string rstdate, | ||
| 1675 | std::string rsttime, int list, int doDlg, int pfsave, int zfsave, int zcsave, int achvol, int achsave, int abwsave, | ||
| 1676 | int cbwsave, int expsave, int ebwsave, int zaasave, int zbwsave, int rzfsave, int rzmsave, int rz1save, | ||
| 1677 | int csmsave, int srfsave, int logsave, std::vector<int> save, std::vector<std::string> rvals, int BldgFlowZ, | ||
| 1678 | int BldgFlowD, int BldgFlowC, int cfd_ctype, std::string cfd_convcpl, int cfd_var, int cfd_zref, int cfd_imax, | ||
| 1679 | ✗ | int cfd_dtcmo) { | |
| 1680 | ✗ | setDefaults(); | |
| 1681 | ✗ | setSim_af(sim_af); | |
| 1682 | ✗ | setAfcalc(afcalc); | |
| 1683 | ✗ | setAfmaxi(afmaxi); | |
| 1684 | ✗ | setAfrcnvg(afrcnvg); | |
| 1685 | ✗ | setAfacnvg(afacnvg); | |
| 1686 | ✗ | setAfrelax(afrelax); | |
| 1687 | ✗ | setUac2(uac2); | |
| 1688 | ✗ | setPres(Pres); | |
| 1689 | ✗ | setUPres(uPres); | |
| 1690 | ✗ | setAfslae(afslae); | |
| 1691 | ✗ | setAfrseq(afrseq); | |
| 1692 | ✗ | setAflmaxi(aflmaxi); | |
| 1693 | ✗ | setAflcnvg(aflcnvg); | |
| 1694 | ✗ | setAflinit(aflinit); | |
| 1695 | ✗ | setTadj(Tadj); | |
| 1696 | ✗ | setSim_mf(sim_mf); | |
| 1697 | ✗ | setCcmaxi(ccmaxi); | |
| 1698 | ✗ | setCcrcnvg(ccrcnvg); | |
| 1699 | ✗ | setCcacnvg(ccacnvg); | |
| 1700 | ✗ | setCcrelax(ccrelax); | |
| 1701 | ✗ | setUccc(uccc); | |
| 1702 | ✗ | setMfnmthd(mfnmthd); | |
| 1703 | ✗ | setMfnrseq(mfnrseq); | |
| 1704 | ✗ | setMfnmaxi(mfnmaxi); | |
| 1705 | ✗ | setMfnrcnvg(mfnrcnvg); | |
| 1706 | ✗ | setMfnacnvg(mfnacnvg); | |
| 1707 | ✗ | setMfnrelax(mfnrelax); | |
| 1708 | ✗ | setMfngamma(mfngamma); | |
| 1709 | ✗ | setUccn(uccn); | |
| 1710 | ✗ | setMftmthd(mftmthd); | |
| 1711 | ✗ | setMftrseq(mftrseq); | |
| 1712 | ✗ | setMftmaxi(mftmaxi); | |
| 1713 | ✗ | setMftrcnvg(mftrcnvg); | |
| 1714 | ✗ | setMftacnvg(mftacnvg); | |
| 1715 | ✗ | setMftrelax(mftrelax); | |
| 1716 | ✗ | setMftgamma(mftgamma); | |
| 1717 | ✗ | setUcct(ucct); | |
| 1718 | ✗ | setMfvmthd(mfvmthd); | |
| 1719 | ✗ | setMfvrseq(mfvrseq); | |
| 1720 | ✗ | setMfvmaxi(mfvmaxi); | |
| 1721 | ✗ | setMfvrcnvg(mfvrcnvg); | |
| 1722 | ✗ | setMfvacnvg(mfvacnvg); | |
| 1723 | ✗ | setMfvrelax(mfvrelax); | |
| 1724 | ✗ | setUccv(uccv); | |
| 1725 | ✗ | setMf_solver(mf_solver); | |
| 1726 | ✗ | setSim_1dz(sim_1dz); | |
| 1727 | ✗ | setSim_1dd(sim_1dd); | |
| 1728 | ✗ | setCelldx(celldx); | |
| 1729 | ✗ | setSim_vjt(sim_vjt); | |
| 1730 | ✗ | setUdx(udx); | |
| 1731 | ✗ | setCvode_mth(cvode_mth); | |
| 1732 | ✗ | setCvode_rcnvg(cvode_rcnvg); | |
| 1733 | ✗ | setCvode_acnvg(cvode_acnvg); | |
| 1734 | ✗ | setCvode_dtmax(cvode_dtmax); | |
| 1735 | ✗ | setTsdens(tsdens); | |
| 1736 | ✗ | setTsrelax(tsrelax); | |
| 1737 | ✗ | setTsmaxi(tsmaxi); | |
| 1738 | ✗ | setCnvgSS(cnvgSS); | |
| 1739 | ✗ | setDensZP(densZP); | |
| 1740 | ✗ | setStackD(stackD); | |
| 1741 | ✗ | setDodMdt(dodMdt); | |
| 1742 | ✗ | setDate_st(date_st); | |
| 1743 | ✗ | setTime_st(time_st); | |
| 1744 | ✗ | setDate_0(date_0); | |
| 1745 | ✗ | setTime_0(time_0); | |
| 1746 | ✗ | setDate_1(date_1); | |
| 1747 | ✗ | setTime_1(time_1); | |
| 1748 | ✗ | setTime_step(time_step); | |
| 1749 | ✗ | setTime_list(time_list); | |
| 1750 | ✗ | setTime_scrn(time_scrn); | |
| 1751 | ✗ | setRestart(restart); | |
| 1752 | ✗ | setRstdate(rstdate); | |
| 1753 | ✗ | setRsttime(rsttime); | |
| 1754 | ✗ | setList(list); | |
| 1755 | ✗ | setDoDlg(doDlg); | |
| 1756 | ✗ | setPfsave(pfsave); | |
| 1757 | ✗ | setZfsave(zfsave); | |
| 1758 | ✗ | setZcsave(zcsave); | |
| 1759 | ✗ | setAchvol(achvol); | |
| 1760 | ✗ | setAchsave(achsave); | |
| 1761 | ✗ | setAbwsave(abwsave); | |
| 1762 | ✗ | setCbwsave(cbwsave); | |
| 1763 | ✗ | setExpsave(expsave); | |
| 1764 | ✗ | setEbwsave(ebwsave); | |
| 1765 | ✗ | setZaasave(zaasave); | |
| 1766 | ✗ | setZbwsave(zbwsave); | |
| 1767 | ✗ | setRzfsave(rzfsave); | |
| 1768 | ✗ | setRzmsave(rzmsave); | |
| 1769 | ✗ | setRz1save(rz1save); | |
| 1770 | ✗ | setCsmsave(csmsave); | |
| 1771 | ✗ | setSrfsave(srfsave); | |
| 1772 | ✗ | setLogsave(logsave); | |
| 1773 | ✗ | setSave(save); | |
| 1774 | ✗ | setRvals(rvals); | |
| 1775 | ✗ | setBldgFlowZ(BldgFlowZ); | |
| 1776 | ✗ | setBldgFlowD(BldgFlowD); | |
| 1777 | ✗ | setBldgFlowC(BldgFlowC); | |
| 1778 | ✗ | setCfd_ctype(cfd_ctype); | |
| 1779 | ✗ | setCfd_convcpl(cfd_convcpl); | |
| 1780 | ✗ | setCfd_var(cfd_var); | |
| 1781 | ✗ | setCfd_zref(cfd_zref); | |
| 1782 | ✗ | setCfd_imax(cfd_imax); | |
| 1783 | ✗ | setCfd_dtcmo(cfd_dtcmo); | |
| 1784 | ✗ | } | |
| 1785 | |||
| 1786 | 6 | void RunControlImpl::read(Reader& input) { | |
| 1787 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setSim_af(input.read<int>()); |
| 1788 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAfcalc(input.read<int>()); |
| 1789 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAfmaxi(input.read<int>()); |
| 1790 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAfrcnvg(input.readNumber<std::string>()); |
| 1791 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAfacnvg(input.readNumber<std::string>()); |
| 1792 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAfrelax(input.readNumber<std::string>()); |
| 1793 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setUac2(input.read<int>()); |
| 1794 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setPres(input.readNumber<std::string>()); |
| 1795 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setUPres(input.read<int>()); |
| 1796 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAfslae(input.read<int>()); |
| 1797 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAfrseq(input.read<int>()); |
| 1798 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAflmaxi(input.read<int>()); |
| 1799 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAflcnvg(input.readNumber<std::string>()); |
| 1800 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAflinit(input.read<int>()); |
| 1801 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setTadj(input.read<int>()); |
| 1802 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setSim_mf(input.read<int>()); |
| 1803 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCcmaxi(input.read<int>()); |
| 1804 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCcrcnvg(input.readNumber<std::string>()); |
| 1805 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCcacnvg(input.readNumber<std::string>()); |
| 1806 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCcrelax(input.readNumber<std::string>()); |
| 1807 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setUccc(input.read<int>()); |
| 1808 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfnmthd(input.read<int>()); |
| 1809 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfnrseq(input.read<int>()); |
| 1810 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfnmaxi(input.read<int>()); |
| 1811 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfnrcnvg(input.readNumber<std::string>()); |
| 1812 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfnacnvg(input.readNumber<std::string>()); |
| 1813 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfnrelax(input.readNumber<std::string>()); |
| 1814 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfngamma(input.readNumber<std::string>()); |
| 1815 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setUccn(input.read<int>()); |
| 1816 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMftmthd(input.read<int>()); |
| 1817 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMftrseq(input.read<int>()); |
| 1818 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMftmaxi(input.read<int>()); |
| 1819 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMftrcnvg(input.readNumber<std::string>()); |
| 1820 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMftacnvg(input.readNumber<std::string>()); |
| 1821 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMftrelax(input.readNumber<std::string>()); |
| 1822 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMftgamma(input.readNumber<std::string>()); |
| 1823 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setUcct(input.read<int>()); |
| 1824 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfvmthd(input.read<int>()); |
| 1825 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfvrseq(input.read<int>()); |
| 1826 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfvmaxi(input.read<int>()); |
| 1827 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfvrcnvg(input.readNumber<std::string>()); |
| 1828 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfvacnvg(input.readNumber<std::string>()); |
| 1829 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMfvrelax(input.readNumber<std::string>()); |
| 1830 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setUccv(input.read<int>()); |
| 1831 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setMf_solver(input.read<int>()); |
| 1832 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setSim_1dz(input.read<int>()); |
| 1833 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setSim_1dd(input.read<int>()); |
| 1834 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCelldx(input.readNumber<std::string>()); |
| 1835 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setSim_vjt(input.read<int>()); |
| 1836 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setUdx(input.read<int>()); |
| 1837 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCvode_mth(input.read<int>()); |
| 1838 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCvode_rcnvg(input.readNumber<std::string>()); |
| 1839 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCvode_acnvg(input.readNumber<std::string>()); |
| 1840 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCvode_dtmax(input.readNumber<std::string>()); |
| 1841 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setTsdens(input.read<int>()); |
| 1842 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setTsrelax(input.readNumber<std::string>()); |
| 1843 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setTsmaxi(input.read<int>()); |
| 1844 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCnvgSS(input.read<int>()); |
| 1845 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setDensZP(input.read<int>()); |
| 1846 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setStackD(input.read<int>()); |
| 1847 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setDodMdt(input.read<int>()); |
| 1848 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setDate_st(input.readString()); |
| 1849 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setTime_st(input.readString()); |
| 1850 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setDate_0(input.readString()); |
| 1851 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setTime_0(input.readString()); |
| 1852 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setDate_1(input.readString()); |
| 1853 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setTime_1(input.readString()); |
| 1854 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setTime_step(input.readString()); |
| 1855 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setTime_list(input.readString()); |
| 1856 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setTime_scrn(input.readString()); |
| 1857 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setRestart(input.read<int>()); |
| 1858 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setRstdate(input.readString()); |
| 1859 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setRsttime(input.readString()); |
| 1860 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setList(input.read<int>()); |
| 1861 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setDoDlg(input.read<int>()); |
| 1862 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setPfsave(input.read<int>()); |
| 1863 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setZfsave(input.read<int>()); |
| 1864 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setZcsave(input.read<int>()); |
| 1865 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAchvol(input.read<int>()); |
| 1866 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAchsave(input.read<int>()); |
| 1867 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setAbwsave(input.read<int>()); |
| 1868 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCbwsave(input.read<int>()); |
| 1869 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setExpsave(input.read<int>()); |
| 1870 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setEbwsave(input.read<int>()); |
| 1871 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setZaasave(input.read<int>()); |
| 1872 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setZbwsave(input.read<int>()); |
| 1873 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setRzfsave(input.read<int>()); |
| 1874 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setRzmsave(input.read<int>()); |
| 1875 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setRz1save(input.read<int>()); |
| 1876 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCsmsave(input.read<int>()); |
| 1877 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setSrfsave(input.read<int>()); |
| 1878 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setLogsave(input.read<int>()); |
| 1879 | 6 | std::vector<int> save; | |
| 1880 |
2/2✓ Branch 0 taken 96 times.
✓ Branch 1 taken 6 times.
|
102 | for (int i = 0; i < 16; i++) { |
| 1881 |
2/2✓ Branch 1 taken 96 times.
✓ Branch 4 taken 96 times.
|
96 | save.push_back(input.read<int>()); |
| 1882 | } | ||
| 1883 |
1/1✓ Branch 1 taken 6 times.
|
6 | setSave(save); |
| 1884 |
1/1✓ Branch 1 taken 6 times.
|
6 | int nrvals = input.read<int>(); |
| 1885 | 6 | std::vector<std::string> rvals; | |
| 1886 |
2/2✓ Branch 0 taken 12 times.
✓ Branch 1 taken 6 times.
|
18 | for (int i = 0; i < nrvals; i++) { |
| 1887 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | rvals.push_back(input.read<std::string>()); |
| 1888 | } | ||
| 1889 |
1/1✓ Branch 1 taken 6 times.
|
6 | setRvals(rvals); |
| 1890 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setBldgFlowZ(input.read<int>()); |
| 1891 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setBldgFlowD(input.read<int>()); |
| 1892 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setBldgFlowC(input.read<int>()); |
| 1893 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCfd_ctype(input.read<int>()); |
| 1894 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCfd_convcpl(input.readNumber<std::string>()); |
| 1895 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCfd_var(input.read<int>()); |
| 1896 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCfd_zref(input.read<int>()); |
| 1897 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCfd_imax(input.read<int>()); |
| 1898 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCfd_dtcmo(input.read<int>()); |
| 1899 | 6 | } | |
| 1900 | |||
| 1901 | 1 | std::string RunControlImpl::write() { | |
| 1902 | 1 | std::string string; | |
| 1903 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
|
2 | string += ANY_TO_STR(m_sim_af) + ' ' + ANY_TO_STR(m_afcalc) + ' ' + ANY_TO_STR(m_afmaxi) + ' ' + ANY_TO_STR(m_afrcnvg) + ' ' |
| 1904 |
12/12✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
|
4 | + ANY_TO_STR(m_afacnvg) + ' ' + ANY_TO_STR(m_afrelax) + ' ' + ANY_TO_STR(m_uac2) + ' ' + ANY_TO_STR(m_Pres) + ' ' |
| 1905 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
3 | + ANY_TO_STR(m_uPres) + '\n'; |
| 1906 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
|
2 | string += ANY_TO_STR(m_afslae) + ' ' + ANY_TO_STR(m_afrseq) + ' ' + ANY_TO_STR(m_aflmaxi) + ' ' + ANY_TO_STR(m_aflcnvg) + ' ' |
| 1907 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
|
3 | + ANY_TO_STR(m_aflinit) + ' ' + ANY_TO_STR(m_Tadj) + '\n'; |
| 1908 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
|
2 | string += ANY_TO_STR(m_sim_mf) + ' ' + ANY_TO_STR(m_ccmaxi) + ' ' + ANY_TO_STR(m_ccrcnvg) + ' ' + ANY_TO_STR(m_ccacnvg) + ' ' |
| 1909 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
|
3 | + ANY_TO_STR(m_ccrelax) + ' ' + ANY_TO_STR(m_uccc) + '\n'; |
| 1910 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
|
2 | string += ANY_TO_STR(m_mfnmthd) + ' ' + ANY_TO_STR(m_mfnrseq) + ' ' + ANY_TO_STR(m_mfnmaxi) + ' ' + ANY_TO_STR(m_mfnrcnvg) + ' ' |
| 1911 |
13/13✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
✓ Branch 37 taken 1 time.
|
3 | + ANY_TO_STR(m_mfnacnvg) + ' ' + ANY_TO_STR(m_mfnrelax) + ' ' + ANY_TO_STR(m_mfngamma) + ' ' + ANY_TO_STR(m_uccn) + '\n'; |
| 1912 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
|
2 | string += ANY_TO_STR(m_mftmthd) + ' ' + ANY_TO_STR(m_mftrseq) + ' ' + ANY_TO_STR(m_mftmaxi) + ' ' + ANY_TO_STR(m_mftrcnvg) + ' ' |
| 1913 |
13/13✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
✓ Branch 37 taken 1 time.
|
3 | + ANY_TO_STR(m_mftacnvg) + ' ' + ANY_TO_STR(m_mftrelax) + ' ' + ANY_TO_STR(m_mftgamma) + ' ' + ANY_TO_STR(m_ucct) + '\n'; |
| 1914 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
|
2 | string += ANY_TO_STR(m_mfvmthd) + ' ' + ANY_TO_STR(m_mfvrseq) + ' ' + ANY_TO_STR(m_mfvmaxi) + ' ' + ANY_TO_STR(m_mfvrcnvg) + ' ' |
| 1915 |
10/10✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
|
3 | + ANY_TO_STR(m_mfvacnvg) + ' ' + ANY_TO_STR(m_mfvrelax) + ' ' + ANY_TO_STR(m_uccv) + '\n'; |
| 1916 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
|
2 | string += ANY_TO_STR(m_mf_solver) + ' ' + ANY_TO_STR(m_sim_1dz) + ' ' + ANY_TO_STR(m_sim_1dd) + ' ' + ANY_TO_STR(m_celldx) + ' ' |
| 1917 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
|
3 | + ANY_TO_STR(m_sim_vjt) + ' ' + ANY_TO_STR(m_udx) + '\n'; |
| 1918 |
12/12✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
|
1 | string += ANY_TO_STR(m_cvode_mth) + ' ' + ANY_TO_STR(m_cvode_rcnvg) + ' ' + ANY_TO_STR(m_cvode_acnvg) + ' ' + ANY_TO_STR(m_cvode_dtmax) + '\n'; |
| 1919 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
|
2 | string += ANY_TO_STR(m_tsdens) + ' ' + ANY_TO_STR(m_tsrelax) + ' ' + ANY_TO_STR(m_tsmaxi) + ' ' + ANY_TO_STR(m_cnvgSS) + ' ' |
| 1920 |
10/10✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
|
3 | + ANY_TO_STR(m_densZP) + ' ' + ANY_TO_STR(m_stackD) + ' ' + ANY_TO_STR(m_dodMdt) + '\n'; |
| 1921 |
12/12✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
|
2 | string += m_date_st + ' ' + m_time_st + ' ' + m_date_0 + ' ' + m_time_0 + ' ' + m_date_1 + ' ' + m_time_1 + ' ' + m_time_step + ' ' |
| 1922 |
6/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
|
2 | + m_time_list + ' ' + m_time_scrn + '\n'; |
| 1923 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
|
1 | string += ANY_TO_STR(m_restart) + ' ' + m_rstdate + ' ' + m_rsttime + '\n'; |
| 1924 | string += | ||
| 1925 |
15/15✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
✓ Branch 37 taken 1 time.
✓ Branch 40 taken 1 time.
✓ Branch 43 taken 1 time.
|
1 | ANY_TO_STR(m_list) + ' ' + ANY_TO_STR(m_doDlg) + ' ' + ANY_TO_STR(m_pfsave) + ' ' + ANY_TO_STR(m_zfsave) + ' ' + ANY_TO_STR(m_zcsave) + '\n'; |
| 1926 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
|
2 | string += ANY_TO_STR(m_achvol) + ' ' + ANY_TO_STR(m_achsave) + ' ' + ANY_TO_STR(m_abwsave) + ' ' + ANY_TO_STR(m_cbwsave) + ' ' |
| 1927 |
13/13✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
✓ Branch 37 taken 1 time.
|
3 | + ANY_TO_STR(m_expsave) + ' ' + ANY_TO_STR(m_ebwsave) + ' ' + ANY_TO_STR(m_zaasave) + ' ' + ANY_TO_STR(m_zbwsave) + '\n'; |
| 1928 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
|
2 | string += ANY_TO_STR(m_rzfsave) + ' ' + ANY_TO_STR(m_rzmsave) + ' ' + ANY_TO_STR(m_rz1save) + ' ' + ANY_TO_STR(m_csmsave) + ' ' |
| 1929 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
|
3 | + ANY_TO_STR(m_srfsave) + ' ' + ANY_TO_STR(m_logsave) + '\n'; |
| 1930 |
2/2✓ Branch 0 taken 16 times.
✓ Branch 1 taken 1 time.
|
17 | for (int i = 0; i < 16; i++) { |
| 1931 |
3/3✓ Branch 2 taken 16 times.
✓ Branch 5 taken 16 times.
✓ Branch 8 taken 16 times.
|
16 | string += ANY_TO_STR(m_save[i]) + ' '; |
| 1932 | } | ||
| 1933 |
1/1✓ Branch 1 taken 1 time.
|
1 | string += '\n'; |
| 1934 |
3/3✓ Branch 2 taken 1 time.
✓ Branch 5 taken 1 time.
✓ Branch 8 taken 1 time.
|
1 | string += ANY_TO_STR((int)m_rvals.size()) + '\n'; |
| 1935 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 2 taken 1 time.
|
3 | for (unsigned int i = 0; i < m_rvals.size(); i++) { |
| 1936 |
3/3✓ Branch 2 taken 2 times.
✓ Branch 5 taken 2 times.
✓ Branch 8 taken 2 times.
|
2 | string += ANY_TO_STR(m_rvals[i]) + ' '; |
| 1937 | } | ||
| 1938 |
1/1✓ Branch 1 taken 1 time.
|
1 | string += '\n'; |
| 1939 |
9/9✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
|
1 | string += ANY_TO_STR(m_BldgFlowZ) + ' ' + ANY_TO_STR(m_BldgFlowD) + ' ' + ANY_TO_STR(m_BldgFlowC) + '\n'; |
| 1940 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
|
2 | string += ANY_TO_STR(m_cfd_ctype) + ' ' + ANY_TO_STR(m_cfd_convcpl) + ' ' + ANY_TO_STR(m_cfd_var) + ' ' + ANY_TO_STR(m_cfd_zref) + ' ' |
| 1941 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
|
3 | + ANY_TO_STR(m_cfd_imax) + ' ' + ANY_TO_STR(m_cfd_dtcmo) + '\n'; |
| 1942 | 1 | return string; | |
| 1943 | ✗ | } | |
| 1944 | |||
| 1945 | ✗ | int RunControlImpl::sim_af() const { | |
| 1946 | ✗ | return m_sim_af; | |
| 1947 | } | ||
| 1948 | |||
| 1949 | 7 | void RunControlImpl::setSim_af(const int sim_af) { | |
| 1950 | 7 | m_sim_af = sim_af; | |
| 1951 | 7 | } | |
| 1952 | |||
| 1953 | ✗ | int RunControlImpl::afcalc() const { | |
| 1954 | ✗ | return m_afcalc; | |
| 1955 | } | ||
| 1956 | |||
| 1957 | 6 | void RunControlImpl::setAfcalc(const int afcalc) { | |
| 1958 | 6 | m_afcalc = afcalc; | |
| 1959 | 6 | } | |
| 1960 | |||
| 1961 | ✗ | int RunControlImpl::afmaxi() const { | |
| 1962 | ✗ | return m_afmaxi; | |
| 1963 | } | ||
| 1964 | |||
| 1965 | 6 | void RunControlImpl::setAfmaxi(const int afmaxi) { | |
| 1966 | 6 | m_afmaxi = afmaxi; | |
| 1967 | 6 | } | |
| 1968 | |||
| 1969 | ✗ | double RunControlImpl::afrcnvg() const { | |
| 1970 | ✗ | return openstudio::string_conversions::to<double>(m_afrcnvg); | |
| 1971 | } | ||
| 1972 | |||
| 1973 | ✗ | bool RunControlImpl::setAfrcnvg(const double afrcnvg) { | |
| 1974 | ✗ | m_afrcnvg = openstudio::string_conversions::number(afrcnvg); | |
| 1975 | ✗ | return true; | |
| 1976 | } | ||
| 1977 | |||
| 1978 | 6 | bool RunControlImpl::setAfrcnvg(const std::string& afrcnvg) { | |
| 1979 | 6 | return assign_if_valid<double>(afrcnvg, m_afrcnvg); | |
| 1980 | } | ||
| 1981 | |||
| 1982 | ✗ | double RunControlImpl::afacnvg() const { | |
| 1983 | ✗ | return openstudio::string_conversions::to<double>(m_afacnvg); | |
| 1984 | } | ||
| 1985 | |||
| 1986 | ✗ | bool RunControlImpl::setAfacnvg(const double afacnvg) { | |
| 1987 | ✗ | m_afacnvg = openstudio::string_conversions::number(afacnvg); | |
| 1988 | ✗ | return true; | |
| 1989 | } | ||
| 1990 | |||
| 1991 | 6 | bool RunControlImpl::setAfacnvg(const std::string& afacnvg) { | |
| 1992 | 6 | return assign_if_valid<double>(afacnvg, m_afacnvg); | |
| 1993 | } | ||
| 1994 | |||
| 1995 | ✗ | double RunControlImpl::afrelax() const { | |
| 1996 | ✗ | return openstudio::string_conversions::to<double>(m_afrelax); | |
| 1997 | } | ||
| 1998 | |||
| 1999 | ✗ | bool RunControlImpl::setAfrelax(const double afrelax) { | |
| 2000 | ✗ | m_afrelax = openstudio::string_conversions::number(afrelax); | |
| 2001 | ✗ | return true; | |
| 2002 | } | ||
| 2003 | |||
| 2004 | 6 | bool RunControlImpl::setAfrelax(const std::string& afrelax) { | |
| 2005 | 6 | return assign_if_valid<double>(afrelax, m_afrelax); | |
| 2006 | } | ||
| 2007 | |||
| 2008 | ✗ | int RunControlImpl::uac2() const { | |
| 2009 | ✗ | return m_uac2; | |
| 2010 | } | ||
| 2011 | |||
| 2012 | 6 | void RunControlImpl::setUac2(const int uac2) { | |
| 2013 | 6 | m_uac2 = uac2; | |
| 2014 | 6 | } | |
| 2015 | |||
| 2016 | ✗ | double RunControlImpl::Pres() const { | |
| 2017 | ✗ | return openstudio::string_conversions::to<double>(m_Pres); | |
| 2018 | } | ||
| 2019 | |||
| 2020 | ✗ | bool RunControlImpl::setPres(const double Pres) { | |
| 2021 | ✗ | m_Pres = openstudio::string_conversions::number(Pres); | |
| 2022 | ✗ | return true; | |
| 2023 | } | ||
| 2024 | |||
| 2025 | 6 | bool RunControlImpl::setPres(const std::string& Pres) { | |
| 2026 | 6 | return assign_if_valid<double>(Pres, m_Pres); | |
| 2027 | } | ||
| 2028 | |||
| 2029 | ✗ | int RunControlImpl::uPres() const { | |
| 2030 | ✗ | return m_uPres; | |
| 2031 | } | ||
| 2032 | |||
| 2033 | 6 | void RunControlImpl::setUPres(const int uPres) { | |
| 2034 | 6 | m_uPres = uPres; | |
| 2035 | 6 | } | |
| 2036 | |||
| 2037 | ✗ | int RunControlImpl::afslae() const { | |
| 2038 | ✗ | return m_afslae; | |
| 2039 | } | ||
| 2040 | |||
| 2041 | 6 | void RunControlImpl::setAfslae(const int afslae) { | |
| 2042 | 6 | m_afslae = afslae; | |
| 2043 | 6 | } | |
| 2044 | |||
| 2045 | ✗ | int RunControlImpl::afrseq() const { | |
| 2046 | ✗ | return m_afrseq; | |
| 2047 | } | ||
| 2048 | |||
| 2049 | 6 | void RunControlImpl::setAfrseq(const int afrseq) { | |
| 2050 | 6 | m_afrseq = afrseq; | |
| 2051 | 6 | } | |
| 2052 | |||
| 2053 | ✗ | int RunControlImpl::aflmaxi() const { | |
| 2054 | ✗ | return m_aflmaxi; | |
| 2055 | } | ||
| 2056 | |||
| 2057 | 6 | void RunControlImpl::setAflmaxi(const int aflmaxi) { | |
| 2058 | 6 | m_aflmaxi = aflmaxi; | |
| 2059 | 6 | } | |
| 2060 | |||
| 2061 | ✗ | double RunControlImpl::aflcnvg() const { | |
| 2062 | ✗ | return openstudio::string_conversions::to<double>(m_aflcnvg); | |
| 2063 | } | ||
| 2064 | |||
| 2065 | ✗ | bool RunControlImpl::setAflcnvg(const double aflcnvg) { | |
| 2066 | ✗ | m_aflcnvg = openstudio::string_conversions::number(aflcnvg); | |
| 2067 | ✗ | return true; | |
| 2068 | } | ||
| 2069 | |||
| 2070 | 6 | bool RunControlImpl::setAflcnvg(const std::string& aflcnvg) { | |
| 2071 | 6 | return assign_if_valid<double>(aflcnvg, m_aflcnvg); | |
| 2072 | } | ||
| 2073 | |||
| 2074 | ✗ | int RunControlImpl::aflinit() const { | |
| 2075 | ✗ | return m_aflinit; | |
| 2076 | } | ||
| 2077 | |||
| 2078 | 6 | void RunControlImpl::setAflinit(const int aflinit) { | |
| 2079 | 6 | m_aflinit = aflinit; | |
| 2080 | 6 | } | |
| 2081 | |||
| 2082 | ✗ | int RunControlImpl::Tadj() const { | |
| 2083 | ✗ | return m_Tadj; | |
| 2084 | } | ||
| 2085 | |||
| 2086 | 6 | void RunControlImpl::setTadj(const int Tadj) { | |
| 2087 | 6 | m_Tadj = Tadj; | |
| 2088 | 6 | } | |
| 2089 | |||
| 2090 | ✗ | int RunControlImpl::sim_mf() const { | |
| 2091 | ✗ | return m_sim_mf; | |
| 2092 | } | ||
| 2093 | |||
| 2094 | 6 | void RunControlImpl::setSim_mf(const int sim_mf) { | |
| 2095 | 6 | m_sim_mf = sim_mf; | |
| 2096 | 6 | } | |
| 2097 | |||
| 2098 | ✗ | int RunControlImpl::ccmaxi() const { | |
| 2099 | ✗ | return m_ccmaxi; | |
| 2100 | } | ||
| 2101 | |||
| 2102 | 6 | void RunControlImpl::setCcmaxi(const int ccmaxi) { | |
| 2103 | 6 | m_ccmaxi = ccmaxi; | |
| 2104 | 6 | } | |
| 2105 | |||
| 2106 | ✗ | double RunControlImpl::ccrcnvg() const { | |
| 2107 | ✗ | return openstudio::string_conversions::to<double>(m_ccrcnvg); | |
| 2108 | } | ||
| 2109 | |||
| 2110 | ✗ | bool RunControlImpl::setCcrcnvg(const double ccrcnvg) { | |
| 2111 | ✗ | m_ccrcnvg = openstudio::string_conversions::number(ccrcnvg); | |
| 2112 | ✗ | return true; | |
| 2113 | } | ||
| 2114 | |||
| 2115 | 6 | bool RunControlImpl::setCcrcnvg(const std::string& ccrcnvg) { | |
| 2116 | 6 | return assign_if_valid<double>(ccrcnvg, m_ccrcnvg); | |
| 2117 | } | ||
| 2118 | |||
| 2119 | ✗ | double RunControlImpl::ccacnvg() const { | |
| 2120 | ✗ | return openstudio::string_conversions::to<double>(m_ccacnvg); | |
| 2121 | } | ||
| 2122 | |||
| 2123 | ✗ | bool RunControlImpl::setCcacnvg(const double ccacnvg) { | |
| 2124 | ✗ | m_ccacnvg = openstudio::string_conversions::number(ccacnvg); | |
| 2125 | ✗ | return true; | |
| 2126 | } | ||
| 2127 | |||
| 2128 | 6 | bool RunControlImpl::setCcacnvg(const std::string& ccacnvg) { | |
| 2129 | 6 | return assign_if_valid<double>(ccacnvg, m_ccacnvg); | |
| 2130 | } | ||
| 2131 | |||
| 2132 | ✗ | double RunControlImpl::ccrelax() const { | |
| 2133 | ✗ | return openstudio::string_conversions::to<double>(m_ccrelax); | |
| 2134 | } | ||
| 2135 | |||
| 2136 | ✗ | bool RunControlImpl::setCcrelax(const double ccrelax) { | |
| 2137 | ✗ | m_ccrelax = openstudio::string_conversions::number(ccrelax); | |
| 2138 | ✗ | return true; | |
| 2139 | } | ||
| 2140 | |||
| 2141 | 6 | bool RunControlImpl::setCcrelax(const std::string& ccrelax) { | |
| 2142 | 6 | return assign_if_valid<double>(ccrelax, m_ccrelax); | |
| 2143 | } | ||
| 2144 | |||
| 2145 | ✗ | int RunControlImpl::uccc() const { | |
| 2146 | ✗ | return m_uccc; | |
| 2147 | } | ||
| 2148 | |||
| 2149 | 6 | void RunControlImpl::setUccc(const int uccc) { | |
| 2150 | 6 | m_uccc = uccc; | |
| 2151 | 6 | } | |
| 2152 | |||
| 2153 | ✗ | int RunControlImpl::mfnmthd() const { | |
| 2154 | ✗ | return m_mfnmthd; | |
| 2155 | } | ||
| 2156 | |||
| 2157 | 6 | void RunControlImpl::setMfnmthd(const int mfnmthd) { | |
| 2158 | 6 | m_mfnmthd = mfnmthd; | |
| 2159 | 6 | } | |
| 2160 | |||
| 2161 | ✗ | int RunControlImpl::mfnrseq() const { | |
| 2162 | ✗ | return m_mfnrseq; | |
| 2163 | } | ||
| 2164 | |||
| 2165 | 6 | void RunControlImpl::setMfnrseq(const int mfnrseq) { | |
| 2166 | 6 | m_mfnrseq = mfnrseq; | |
| 2167 | 6 | } | |
| 2168 | |||
| 2169 | ✗ | int RunControlImpl::mfnmaxi() const { | |
| 2170 | ✗ | return m_mfnmaxi; | |
| 2171 | } | ||
| 2172 | |||
| 2173 | 6 | void RunControlImpl::setMfnmaxi(const int mfnmaxi) { | |
| 2174 | 6 | m_mfnmaxi = mfnmaxi; | |
| 2175 | 6 | } | |
| 2176 | |||
| 2177 | ✗ | double RunControlImpl::mfnrcnvg() const { | |
| 2178 | ✗ | return openstudio::string_conversions::to<double>(m_mfnrcnvg); | |
| 2179 | } | ||
| 2180 | |||
| 2181 | ✗ | bool RunControlImpl::setMfnrcnvg(const double mfnrcnvg) { | |
| 2182 | ✗ | m_mfnrcnvg = openstudio::string_conversions::number(mfnrcnvg); | |
| 2183 | ✗ | return true; | |
| 2184 | } | ||
| 2185 | |||
| 2186 | 6 | bool RunControlImpl::setMfnrcnvg(const std::string& mfnrcnvg) { | |
| 2187 | 6 | return assign_if_valid<double>(mfnrcnvg, m_mfnrcnvg); | |
| 2188 | } | ||
| 2189 | |||
| 2190 | ✗ | double RunControlImpl::mfnacnvg() const { | |
| 2191 | ✗ | return openstudio::string_conversions::to<double>(m_mfnacnvg); | |
| 2192 | } | ||
| 2193 | |||
| 2194 | ✗ | bool RunControlImpl::setMfnacnvg(const double mfnacnvg) { | |
| 2195 | ✗ | m_mfnacnvg = openstudio::string_conversions::number(mfnacnvg); | |
| 2196 | ✗ | return true; | |
| 2197 | } | ||
| 2198 | |||
| 2199 | 6 | bool RunControlImpl::setMfnacnvg(const std::string& mfnacnvg) { | |
| 2200 | 6 | return assign_if_valid<double>(mfnacnvg, m_mfnacnvg); | |
| 2201 | } | ||
| 2202 | |||
| 2203 | ✗ | double RunControlImpl::mfnrelax() const { | |
| 2204 | ✗ | return openstudio::string_conversions::to<double>(m_mfnrelax); | |
| 2205 | } | ||
| 2206 | |||
| 2207 | ✗ | bool RunControlImpl::setMfnrelax(const double mfnrelax) { | |
| 2208 | ✗ | m_mfnrelax = openstudio::string_conversions::number(mfnrelax); | |
| 2209 | ✗ | return true; | |
| 2210 | } | ||
| 2211 | |||
| 2212 | 6 | bool RunControlImpl::setMfnrelax(const std::string& mfnrelax) { | |
| 2213 | 6 | return assign_if_valid<double>(mfnrelax, m_mfnrelax); | |
| 2214 | } | ||
| 2215 | |||
| 2216 | ✗ | double RunControlImpl::mfngamma() const { | |
| 2217 | ✗ | return openstudio::string_conversions::to<double>(m_mfngamma); | |
| 2218 | } | ||
| 2219 | |||
| 2220 | ✗ | bool RunControlImpl::setMfngamma(const double mfngamma) { | |
| 2221 | ✗ | m_mfngamma = openstudio::string_conversions::number(mfngamma); | |
| 2222 | ✗ | return true; | |
| 2223 | } | ||
| 2224 | |||
| 2225 | 6 | bool RunControlImpl::setMfngamma(const std::string& mfngamma) { | |
| 2226 | 6 | return assign_if_valid<double>(mfngamma, m_mfngamma); | |
| 2227 | } | ||
| 2228 | |||
| 2229 | ✗ | int RunControlImpl::uccn() const { | |
| 2230 | ✗ | return m_uccn; | |
| 2231 | } | ||
| 2232 | |||
| 2233 | 6 | void RunControlImpl::setUccn(const int uccn) { | |
| 2234 | 6 | m_uccn = uccn; | |
| 2235 | 6 | } | |
| 2236 | |||
| 2237 | ✗ | int RunControlImpl::mftmthd() const { | |
| 2238 | ✗ | return m_mftmthd; | |
| 2239 | } | ||
| 2240 | |||
| 2241 | 6 | void RunControlImpl::setMftmthd(const int mftmthd) { | |
| 2242 | 6 | m_mftmthd = mftmthd; | |
| 2243 | 6 | } | |
| 2244 | |||
| 2245 | ✗ | int RunControlImpl::mftrseq() const { | |
| 2246 | ✗ | return m_mftrseq; | |
| 2247 | } | ||
| 2248 | |||
| 2249 | 6 | void RunControlImpl::setMftrseq(const int mftrseq) { | |
| 2250 | 6 | m_mftrseq = mftrseq; | |
| 2251 | 6 | } | |
| 2252 | |||
| 2253 | ✗ | int RunControlImpl::mftmaxi() const { | |
| 2254 | ✗ | return m_mftmaxi; | |
| 2255 | } | ||
| 2256 | |||
| 2257 | 6 | void RunControlImpl::setMftmaxi(const int mftmaxi) { | |
| 2258 | 6 | m_mftmaxi = mftmaxi; | |
| 2259 | 6 | } | |
| 2260 | |||
| 2261 | ✗ | double RunControlImpl::mftrcnvg() const { | |
| 2262 | ✗ | return openstudio::string_conversions::to<double>(m_mftrcnvg); | |
| 2263 | } | ||
| 2264 | |||
| 2265 | ✗ | bool RunControlImpl::setMftrcnvg(const double mftrcnvg) { | |
| 2266 | ✗ | m_mftrcnvg = openstudio::string_conversions::number(mftrcnvg); | |
| 2267 | ✗ | return true; | |
| 2268 | } | ||
| 2269 | |||
| 2270 | 6 | bool RunControlImpl::setMftrcnvg(const std::string& mftrcnvg) { | |
| 2271 | 6 | return assign_if_valid<double>(mftrcnvg, m_mftrcnvg); | |
| 2272 | } | ||
| 2273 | |||
| 2274 | ✗ | double RunControlImpl::mftacnvg() const { | |
| 2275 | ✗ | return openstudio::string_conversions::to<double>(m_mftacnvg); | |
| 2276 | } | ||
| 2277 | |||
| 2278 | ✗ | bool RunControlImpl::setMftacnvg(const double mftacnvg) { | |
| 2279 | ✗ | m_mftacnvg = openstudio::string_conversions::number(mftacnvg); | |
| 2280 | ✗ | return true; | |
| 2281 | } | ||
| 2282 | |||
| 2283 | 6 | bool RunControlImpl::setMftacnvg(const std::string& mftacnvg) { | |
| 2284 | 6 | return assign_if_valid<double>(mftacnvg, m_mftacnvg); | |
| 2285 | } | ||
| 2286 | |||
| 2287 | ✗ | double RunControlImpl::mftrelax() const { | |
| 2288 | ✗ | return openstudio::string_conversions::to<double>(m_mftrelax); | |
| 2289 | } | ||
| 2290 | |||
| 2291 | ✗ | bool RunControlImpl::setMftrelax(const double mftrelax) { | |
| 2292 | ✗ | m_mftrelax = openstudio::string_conversions::number(mftrelax); | |
| 2293 | ✗ | return true; | |
| 2294 | } | ||
| 2295 | |||
| 2296 | 6 | bool RunControlImpl::setMftrelax(const std::string& mftrelax) { | |
| 2297 | 6 | return assign_if_valid<double>(mftrelax, m_mftrelax); | |
| 2298 | } | ||
| 2299 | |||
| 2300 | ✗ | double RunControlImpl::mftgamma() const { | |
| 2301 | ✗ | return openstudio::string_conversions::to<double>(m_mftgamma); | |
| 2302 | } | ||
| 2303 | |||
| 2304 | ✗ | bool RunControlImpl::setMftgamma(const double mftgamma) { | |
| 2305 | ✗ | m_mftgamma = openstudio::string_conversions::number(mftgamma); | |
| 2306 | ✗ | return true; | |
| 2307 | } | ||
| 2308 | |||
| 2309 | 6 | bool RunControlImpl::setMftgamma(const std::string& mftgamma) { | |
| 2310 | 6 | return assign_if_valid<double>(mftgamma, m_mftgamma); | |
| 2311 | } | ||
| 2312 | |||
| 2313 | ✗ | int RunControlImpl::ucct() const { | |
| 2314 | ✗ | return m_ucct; | |
| 2315 | } | ||
| 2316 | |||
| 2317 | 6 | void RunControlImpl::setUcct(const int ucct) { | |
| 2318 | 6 | m_ucct = ucct; | |
| 2319 | 6 | } | |
| 2320 | |||
| 2321 | ✗ | int RunControlImpl::mfvmthd() const { | |
| 2322 | ✗ | return m_mfvmthd; | |
| 2323 | } | ||
| 2324 | |||
| 2325 | 6 | void RunControlImpl::setMfvmthd(const int mfvmthd) { | |
| 2326 | 6 | m_mfvmthd = mfvmthd; | |
| 2327 | 6 | } | |
| 2328 | |||
| 2329 | ✗ | int RunControlImpl::mfvrseq() const { | |
| 2330 | ✗ | return m_mfvrseq; | |
| 2331 | } | ||
| 2332 | |||
| 2333 | 6 | void RunControlImpl::setMfvrseq(const int mfvrseq) { | |
| 2334 | 6 | m_mfvrseq = mfvrseq; | |
| 2335 | 6 | } | |
| 2336 | |||
| 2337 | ✗ | int RunControlImpl::mfvmaxi() const { | |
| 2338 | ✗ | return m_mfvmaxi; | |
| 2339 | } | ||
| 2340 | |||
| 2341 | 6 | void RunControlImpl::setMfvmaxi(const int mfvmaxi) { | |
| 2342 | 6 | m_mfvmaxi = mfvmaxi; | |
| 2343 | 6 | } | |
| 2344 | |||
| 2345 | ✗ | double RunControlImpl::mfvrcnvg() const { | |
| 2346 | ✗ | return openstudio::string_conversions::to<double>(m_mfvrcnvg); | |
| 2347 | } | ||
| 2348 | |||
| 2349 | ✗ | bool RunControlImpl::setMfvrcnvg(const double mfvrcnvg) { | |
| 2350 | ✗ | m_mfvrcnvg = openstudio::string_conversions::number(mfvrcnvg); | |
| 2351 | ✗ | return true; | |
| 2352 | } | ||
| 2353 | |||
| 2354 | 6 | bool RunControlImpl::setMfvrcnvg(const std::string& mfvrcnvg) { | |
| 2355 | 6 | return assign_if_valid<double>(mfvrcnvg, m_mfvrcnvg); | |
| 2356 | } | ||
| 2357 | |||
| 2358 | ✗ | double RunControlImpl::mfvacnvg() const { | |
| 2359 | ✗ | return openstudio::string_conversions::to<double>(m_mfvacnvg); | |
| 2360 | } | ||
| 2361 | |||
| 2362 | ✗ | bool RunControlImpl::setMfvacnvg(const double mfvacnvg) { | |
| 2363 | ✗ | m_mfvacnvg = openstudio::string_conversions::number(mfvacnvg); | |
| 2364 | ✗ | return true; | |
| 2365 | } | ||
| 2366 | |||
| 2367 | 6 | bool RunControlImpl::setMfvacnvg(const std::string& mfvacnvg) { | |
| 2368 | 6 | return assign_if_valid<double>(mfvacnvg, m_mfvacnvg); | |
| 2369 | } | ||
| 2370 | |||
| 2371 | ✗ | double RunControlImpl::mfvrelax() const { | |
| 2372 | ✗ | return openstudio::string_conversions::to<double>(m_mfvrelax); | |
| 2373 | } | ||
| 2374 | |||
| 2375 | ✗ | bool RunControlImpl::setMfvrelax(const double mfvrelax) { | |
| 2376 | ✗ | m_mfvrelax = openstudio::string_conversions::number(mfvrelax); | |
| 2377 | ✗ | return true; | |
| 2378 | } | ||
| 2379 | |||
| 2380 | 6 | bool RunControlImpl::setMfvrelax(const std::string& mfvrelax) { | |
| 2381 | 6 | return assign_if_valid<double>(mfvrelax, m_mfvrelax); | |
| 2382 | } | ||
| 2383 | |||
| 2384 | ✗ | int RunControlImpl::uccv() const { | |
| 2385 | ✗ | return m_uccv; | |
| 2386 | } | ||
| 2387 | |||
| 2388 | 6 | void RunControlImpl::setUccv(const int uccv) { | |
| 2389 | 6 | m_uccv = uccv; | |
| 2390 | 6 | } | |
| 2391 | |||
| 2392 | ✗ | int RunControlImpl::mf_solver() const { | |
| 2393 | ✗ | return m_mf_solver; | |
| 2394 | } | ||
| 2395 | |||
| 2396 | 6 | void RunControlImpl::setMf_solver(const int mf_solver) { | |
| 2397 | 6 | m_mf_solver = mf_solver; | |
| 2398 | 6 | } | |
| 2399 | |||
| 2400 | ✗ | int RunControlImpl::sim_1dz() const { | |
| 2401 | ✗ | return m_sim_1dz; | |
| 2402 | } | ||
| 2403 | |||
| 2404 | 6 | void RunControlImpl::setSim_1dz(const int sim_1dz) { | |
| 2405 | 6 | m_sim_1dz = sim_1dz; | |
| 2406 | 6 | } | |
| 2407 | |||
| 2408 | ✗ | int RunControlImpl::sim_1dd() const { | |
| 2409 | ✗ | return m_sim_1dd; | |
| 2410 | } | ||
| 2411 | |||
| 2412 | 6 | void RunControlImpl::setSim_1dd(const int sim_1dd) { | |
| 2413 | 6 | m_sim_1dd = sim_1dd; | |
| 2414 | 6 | } | |
| 2415 | |||
| 2416 | ✗ | double RunControlImpl::celldx() const { | |
| 2417 | ✗ | return openstudio::string_conversions::to<double>(m_celldx); | |
| 2418 | } | ||
| 2419 | |||
| 2420 | ✗ | bool RunControlImpl::setCelldx(const double celldx) { | |
| 2421 | ✗ | m_celldx = openstudio::string_conversions::number(celldx); | |
| 2422 | ✗ | return true; | |
| 2423 | } | ||
| 2424 | |||
| 2425 | 6 | bool RunControlImpl::setCelldx(const std::string& celldx) { | |
| 2426 | 6 | return assign_if_valid<double>(celldx, m_celldx); | |
| 2427 | } | ||
| 2428 | |||
| 2429 | ✗ | int RunControlImpl::sim_vjt() const { | |
| 2430 | ✗ | return m_sim_vjt; | |
| 2431 | } | ||
| 2432 | |||
| 2433 | 6 | void RunControlImpl::setSim_vjt(const int sim_vjt) { | |
| 2434 | 6 | m_sim_vjt = sim_vjt; | |
| 2435 | 6 | } | |
| 2436 | |||
| 2437 | ✗ | int RunControlImpl::udx() const { | |
| 2438 | ✗ | return m_udx; | |
| 2439 | } | ||
| 2440 | |||
| 2441 | 6 | void RunControlImpl::setUdx(const int udx) { | |
| 2442 | 6 | m_udx = udx; | |
| 2443 | 6 | } | |
| 2444 | |||
| 2445 | ✗ | int RunControlImpl::cvode_mth() const { | |
| 2446 | ✗ | return m_cvode_mth; | |
| 2447 | } | ||
| 2448 | |||
| 2449 | 6 | void RunControlImpl::setCvode_mth(const int cvode_mth) { | |
| 2450 | 6 | m_cvode_mth = cvode_mth; | |
| 2451 | 6 | } | |
| 2452 | |||
| 2453 | ✗ | double RunControlImpl::cvode_rcnvg() const { | |
| 2454 | ✗ | return openstudio::string_conversions::to<double>(m_cvode_rcnvg); | |
| 2455 | } | ||
| 2456 | |||
| 2457 | ✗ | bool RunControlImpl::setCvode_rcnvg(const double cvode_rcnvg) { | |
| 2458 | ✗ | m_cvode_rcnvg = openstudio::string_conversions::number(cvode_rcnvg); | |
| 2459 | ✗ | return true; | |
| 2460 | } | ||
| 2461 | |||
| 2462 | 6 | bool RunControlImpl::setCvode_rcnvg(const std::string& cvode_rcnvg) { | |
| 2463 | 6 | return assign_if_valid<double>(cvode_rcnvg, m_cvode_rcnvg); | |
| 2464 | } | ||
| 2465 | |||
| 2466 | ✗ | double RunControlImpl::cvode_acnvg() const { | |
| 2467 | ✗ | return openstudio::string_conversions::to<double>(m_cvode_acnvg); | |
| 2468 | } | ||
| 2469 | |||
| 2470 | ✗ | bool RunControlImpl::setCvode_acnvg(const double cvode_acnvg) { | |
| 2471 | ✗ | m_cvode_acnvg = openstudio::string_conversions::number(cvode_acnvg); | |
| 2472 | ✗ | return true; | |
| 2473 | } | ||
| 2474 | |||
| 2475 | 6 | bool RunControlImpl::setCvode_acnvg(const std::string& cvode_acnvg) { | |
| 2476 | 6 | return assign_if_valid<double>(cvode_acnvg, m_cvode_acnvg); | |
| 2477 | } | ||
| 2478 | |||
| 2479 | ✗ | double RunControlImpl::cvode_dtmax() const { | |
| 2480 | ✗ | return openstudio::string_conversions::to<double>(m_cvode_dtmax); | |
| 2481 | } | ||
| 2482 | |||
| 2483 | ✗ | bool RunControlImpl::setCvode_dtmax(const double cvode_dtmax) { | |
| 2484 | ✗ | m_cvode_dtmax = openstudio::string_conversions::number(cvode_dtmax); | |
| 2485 | ✗ | return true; | |
| 2486 | } | ||
| 2487 | |||
| 2488 | 6 | bool RunControlImpl::setCvode_dtmax(const std::string& cvode_dtmax) { | |
| 2489 | 6 | return assign_if_valid<double>(cvode_dtmax, m_cvode_dtmax); | |
| 2490 | } | ||
| 2491 | |||
| 2492 | ✗ | int RunControlImpl::tsdens() const { | |
| 2493 | ✗ | return m_tsdens; | |
| 2494 | } | ||
| 2495 | |||
| 2496 | 6 | void RunControlImpl::setTsdens(const int tsdens) { | |
| 2497 | 6 | m_tsdens = tsdens; | |
| 2498 | 6 | } | |
| 2499 | |||
| 2500 | ✗ | double RunControlImpl::tsrelax() const { | |
| 2501 | ✗ | return openstudio::string_conversions::to<double>(m_tsrelax); | |
| 2502 | } | ||
| 2503 | |||
| 2504 | ✗ | bool RunControlImpl::setTsrelax(const double tsrelax) { | |
| 2505 | ✗ | m_tsrelax = openstudio::string_conversions::number(tsrelax); | |
| 2506 | ✗ | return true; | |
| 2507 | } | ||
| 2508 | |||
| 2509 | 6 | bool RunControlImpl::setTsrelax(const std::string& tsrelax) { | |
| 2510 | 6 | return assign_if_valid<double>(tsrelax, m_tsrelax); | |
| 2511 | } | ||
| 2512 | |||
| 2513 | ✗ | int RunControlImpl::tsmaxi() const { | |
| 2514 | ✗ | return m_tsmaxi; | |
| 2515 | } | ||
| 2516 | |||
| 2517 | 6 | void RunControlImpl::setTsmaxi(const int tsmaxi) { | |
| 2518 | 6 | m_tsmaxi = tsmaxi; | |
| 2519 | 6 | } | |
| 2520 | |||
| 2521 | ✗ | int RunControlImpl::cnvgSS() const { | |
| 2522 | ✗ | return m_cnvgSS; | |
| 2523 | } | ||
| 2524 | |||
| 2525 | 6 | void RunControlImpl::setCnvgSS(const int cnvgSS) { | |
| 2526 | 6 | m_cnvgSS = cnvgSS; | |
| 2527 | 6 | } | |
| 2528 | |||
| 2529 | ✗ | int RunControlImpl::densZP() const { | |
| 2530 | ✗ | return m_densZP; | |
| 2531 | } | ||
| 2532 | |||
| 2533 | 6 | void RunControlImpl::setDensZP(const int densZP) { | |
| 2534 | 6 | m_densZP = densZP; | |
| 2535 | 6 | } | |
| 2536 | |||
| 2537 | ✗ | int RunControlImpl::stackD() const { | |
| 2538 | ✗ | return m_stackD; | |
| 2539 | } | ||
| 2540 | |||
| 2541 | 6 | void RunControlImpl::setStackD(const int stackD) { | |
| 2542 | 6 | m_stackD = stackD; | |
| 2543 | 6 | } | |
| 2544 | |||
| 2545 | ✗ | int RunControlImpl::dodMdt() const { | |
| 2546 | ✗ | return m_dodMdt; | |
| 2547 | } | ||
| 2548 | |||
| 2549 | 6 | void RunControlImpl::setDodMdt(const int dodMdt) { | |
| 2550 | 6 | m_dodMdt = dodMdt; | |
| 2551 | 6 | } | |
| 2552 | |||
| 2553 | ✗ | std::string RunControlImpl::date_st() const { | |
| 2554 | ✗ | return m_date_st; | |
| 2555 | } | ||
| 2556 | |||
| 2557 | 6 | void RunControlImpl::setDate_st(const std::string& date_st) { | |
| 2558 | 6 | m_date_st = date_st; | |
| 2559 | 6 | } | |
| 2560 | |||
| 2561 | ✗ | std::string RunControlImpl::time_st() const { | |
| 2562 | ✗ | return m_time_st; | |
| 2563 | } | ||
| 2564 | |||
| 2565 | 6 | void RunControlImpl::setTime_st(const std::string& time_st) { | |
| 2566 | 6 | m_time_st = time_st; | |
| 2567 | 6 | } | |
| 2568 | |||
| 2569 | ✗ | std::string RunControlImpl::date_0() const { | |
| 2570 | ✗ | return m_date_0; | |
| 2571 | } | ||
| 2572 | |||
| 2573 | 7 | void RunControlImpl::setDate_0(const std::string& date_0) { | |
| 2574 | 7 | m_date_0 = date_0; | |
| 2575 | 7 | } | |
| 2576 | |||
| 2577 | ✗ | std::string RunControlImpl::time_0() const { | |
| 2578 | ✗ | return m_time_0; | |
| 2579 | } | ||
| 2580 | |||
| 2581 | 7 | void RunControlImpl::setTime_0(const std::string& time_0) { | |
| 2582 | 7 | m_time_0 = time_0; | |
| 2583 | 7 | } | |
| 2584 | |||
| 2585 | ✗ | std::string RunControlImpl::date_1() const { | |
| 2586 | ✗ | return m_date_1; | |
| 2587 | } | ||
| 2588 | |||
| 2589 | 7 | void RunControlImpl::setDate_1(const std::string& date_1) { | |
| 2590 | 7 | m_date_1 = date_1; | |
| 2591 | 7 | } | |
| 2592 | |||
| 2593 | ✗ | std::string RunControlImpl::time_1() const { | |
| 2594 | ✗ | return m_time_1; | |
| 2595 | } | ||
| 2596 | |||
| 2597 | 7 | void RunControlImpl::setTime_1(const std::string& time_1) { | |
| 2598 | 7 | m_time_1 = time_1; | |
| 2599 | 7 | } | |
| 2600 | |||
| 2601 | ✗ | std::string RunControlImpl::time_step() const { | |
| 2602 | ✗ | return m_time_step; | |
| 2603 | } | ||
| 2604 | |||
| 2605 | 6 | void RunControlImpl::setTime_step(const std::string& time_step) { | |
| 2606 | 6 | m_time_step = time_step; | |
| 2607 | 6 | } | |
| 2608 | |||
| 2609 | ✗ | std::string RunControlImpl::time_list() const { | |
| 2610 | ✗ | return m_time_list; | |
| 2611 | } | ||
| 2612 | |||
| 2613 | 6 | void RunControlImpl::setTime_list(const std::string& time_list) { | |
| 2614 | 6 | m_time_list = time_list; | |
| 2615 | 6 | } | |
| 2616 | |||
| 2617 | ✗ | std::string RunControlImpl::time_scrn() const { | |
| 2618 | ✗ | return m_time_scrn; | |
| 2619 | } | ||
| 2620 | |||
| 2621 | 6 | void RunControlImpl::setTime_scrn(const std::string& time_scrn) { | |
| 2622 | 6 | m_time_scrn = time_scrn; | |
| 2623 | 6 | } | |
| 2624 | |||
| 2625 | ✗ | int RunControlImpl::restart() const { | |
| 2626 | ✗ | return m_restart; | |
| 2627 | } | ||
| 2628 | |||
| 2629 | 6 | void RunControlImpl::setRestart(const int restart) { | |
| 2630 | 6 | m_restart = restart; | |
| 2631 | 6 | } | |
| 2632 | |||
| 2633 | ✗ | std::string RunControlImpl::rstdate() const { | |
| 2634 | ✗ | return m_rstdate; | |
| 2635 | } | ||
| 2636 | |||
| 2637 | 6 | void RunControlImpl::setRstdate(const std::string& rstdate) { | |
| 2638 | 6 | m_rstdate = rstdate; | |
| 2639 | 6 | } | |
| 2640 | |||
| 2641 | ✗ | std::string RunControlImpl::rsttime() const { | |
| 2642 | ✗ | return m_rsttime; | |
| 2643 | } | ||
| 2644 | |||
| 2645 | 6 | void RunControlImpl::setRsttime(const std::string& rsttime) { | |
| 2646 | 6 | m_rsttime = rsttime; | |
| 2647 | 6 | } | |
| 2648 | |||
| 2649 | ✗ | int RunControlImpl::list() const { | |
| 2650 | ✗ | return m_list; | |
| 2651 | } | ||
| 2652 | |||
| 2653 | 6 | void RunControlImpl::setList(const int list) { | |
| 2654 | 6 | m_list = list; | |
| 2655 | 6 | } | |
| 2656 | |||
| 2657 | ✗ | int RunControlImpl::doDlg() const { | |
| 2658 | ✗ | return m_doDlg; | |
| 2659 | } | ||
| 2660 | |||
| 2661 | 6 | void RunControlImpl::setDoDlg(const int doDlg) { | |
| 2662 | 6 | m_doDlg = doDlg; | |
| 2663 | 6 | } | |
| 2664 | |||
| 2665 | ✗ | int RunControlImpl::pfsave() const { | |
| 2666 | ✗ | return m_pfsave; | |
| 2667 | } | ||
| 2668 | |||
| 2669 | 6 | void RunControlImpl::setPfsave(const int pfsave) { | |
| 2670 | 6 | m_pfsave = pfsave; | |
| 2671 | 6 | } | |
| 2672 | |||
| 2673 | ✗ | int RunControlImpl::zfsave() const { | |
| 2674 | ✗ | return m_zfsave; | |
| 2675 | } | ||
| 2676 | |||
| 2677 | 6 | void RunControlImpl::setZfsave(const int zfsave) { | |
| 2678 | 6 | m_zfsave = zfsave; | |
| 2679 | 6 | } | |
| 2680 | |||
| 2681 | ✗ | int RunControlImpl::zcsave() const { | |
| 2682 | ✗ | return m_zcsave; | |
| 2683 | } | ||
| 2684 | |||
| 2685 | 6 | void RunControlImpl::setZcsave(const int zcsave) { | |
| 2686 | 6 | m_zcsave = zcsave; | |
| 2687 | 6 | } | |
| 2688 | |||
| 2689 | ✗ | int RunControlImpl::achvol() const { | |
| 2690 | ✗ | return m_achvol; | |
| 2691 | } | ||
| 2692 | |||
| 2693 | 6 | void RunControlImpl::setAchvol(const int achvol) { | |
| 2694 | 6 | m_achvol = achvol; | |
| 2695 | 6 | } | |
| 2696 | |||
| 2697 | ✗ | int RunControlImpl::achsave() const { | |
| 2698 | ✗ | return m_achsave; | |
| 2699 | } | ||
| 2700 | |||
| 2701 | 6 | void RunControlImpl::setAchsave(const int achsave) { | |
| 2702 | 6 | m_achsave = achsave; | |
| 2703 | 6 | } | |
| 2704 | |||
| 2705 | ✗ | int RunControlImpl::abwsave() const { | |
| 2706 | ✗ | return m_abwsave; | |
| 2707 | } | ||
| 2708 | |||
| 2709 | 6 | void RunControlImpl::setAbwsave(const int abwsave) { | |
| 2710 | 6 | m_abwsave = abwsave; | |
| 2711 | 6 | } | |
| 2712 | |||
| 2713 | ✗ | int RunControlImpl::cbwsave() const { | |
| 2714 | ✗ | return m_cbwsave; | |
| 2715 | } | ||
| 2716 | |||
| 2717 | 6 | void RunControlImpl::setCbwsave(const int cbwsave) { | |
| 2718 | 6 | m_cbwsave = cbwsave; | |
| 2719 | 6 | } | |
| 2720 | |||
| 2721 | ✗ | int RunControlImpl::expsave() const { | |
| 2722 | ✗ | return m_expsave; | |
| 2723 | } | ||
| 2724 | |||
| 2725 | 6 | void RunControlImpl::setExpsave(const int expsave) { | |
| 2726 | 6 | m_expsave = expsave; | |
| 2727 | 6 | } | |
| 2728 | |||
| 2729 | ✗ | int RunControlImpl::ebwsave() const { | |
| 2730 | ✗ | return m_ebwsave; | |
| 2731 | } | ||
| 2732 | |||
| 2733 | 6 | void RunControlImpl::setEbwsave(const int ebwsave) { | |
| 2734 | 6 | m_ebwsave = ebwsave; | |
| 2735 | 6 | } | |
| 2736 | |||
| 2737 | ✗ | int RunControlImpl::zaasave() const { | |
| 2738 | ✗ | return m_zaasave; | |
| 2739 | } | ||
| 2740 | |||
| 2741 | 6 | void RunControlImpl::setZaasave(const int zaasave) { | |
| 2742 | 6 | m_zaasave = zaasave; | |
| 2743 | 6 | } | |
| 2744 | |||
| 2745 | ✗ | int RunControlImpl::zbwsave() const { | |
| 2746 | ✗ | return m_zbwsave; | |
| 2747 | } | ||
| 2748 | |||
| 2749 | 6 | void RunControlImpl::setZbwsave(const int zbwsave) { | |
| 2750 | 6 | m_zbwsave = zbwsave; | |
| 2751 | 6 | } | |
| 2752 | |||
| 2753 | ✗ | int RunControlImpl::rzfsave() const { | |
| 2754 | ✗ | return m_rzfsave; | |
| 2755 | } | ||
| 2756 | |||
| 2757 | 6 | void RunControlImpl::setRzfsave(const int rzfsave) { | |
| 2758 | 6 | m_rzfsave = rzfsave; | |
| 2759 | 6 | } | |
| 2760 | |||
| 2761 | ✗ | int RunControlImpl::rzmsave() const { | |
| 2762 | ✗ | return m_rzmsave; | |
| 2763 | } | ||
| 2764 | |||
| 2765 | 6 | void RunControlImpl::setRzmsave(const int rzmsave) { | |
| 2766 | 6 | m_rzmsave = rzmsave; | |
| 2767 | 6 | } | |
| 2768 | |||
| 2769 | ✗ | int RunControlImpl::rz1save() const { | |
| 2770 | ✗ | return m_rz1save; | |
| 2771 | } | ||
| 2772 | |||
| 2773 | 6 | void RunControlImpl::setRz1save(const int rz1save) { | |
| 2774 | 6 | m_rz1save = rz1save; | |
| 2775 | 6 | } | |
| 2776 | |||
| 2777 | ✗ | int RunControlImpl::csmsave() const { | |
| 2778 | ✗ | return m_csmsave; | |
| 2779 | } | ||
| 2780 | |||
| 2781 | 6 | void RunControlImpl::setCsmsave(const int csmsave) { | |
| 2782 | 6 | m_csmsave = csmsave; | |
| 2783 | 6 | } | |
| 2784 | |||
| 2785 | ✗ | int RunControlImpl::srfsave() const { | |
| 2786 | ✗ | return m_srfsave; | |
| 2787 | } | ||
| 2788 | |||
| 2789 | 6 | void RunControlImpl::setSrfsave(const int srfsave) { | |
| 2790 | 6 | m_srfsave = srfsave; | |
| 2791 | 6 | } | |
| 2792 | |||
| 2793 | ✗ | int RunControlImpl::logsave() const { | |
| 2794 | ✗ | return m_logsave; | |
| 2795 | } | ||
| 2796 | |||
| 2797 | 6 | void RunControlImpl::setLogsave(const int logsave) { | |
| 2798 | 6 | m_logsave = logsave; | |
| 2799 | 6 | } | |
| 2800 | |||
| 2801 | ✗ | std::vector<int> RunControlImpl::save() const { | |
| 2802 | ✗ | return m_save; | |
| 2803 | } | ||
| 2804 | |||
| 2805 | 6 | void RunControlImpl::setSave(const std::vector<int>& save) { | |
| 2806 | 6 | m_save = save; | |
| 2807 | 6 | } | |
| 2808 | |||
| 2809 | ✗ | std::vector<double> RunControlImpl::rvals() const { | |
| 2810 | ✗ | std::vector<double> out; | |
| 2811 | ✗ | for (const auto& val : m_rvals) { | |
| 2812 | ✗ | out.push_back(openstudio::string_conversions::to<double>(val)); | |
| 2813 | } | ||
| 2814 | ✗ | return out; | |
| 2815 | ✗ | } | |
| 2816 | |||
| 2817 | ✗ | bool RunControlImpl::setRvals(const std::vector<double>& rvals) { | |
| 2818 | ✗ | std::vector<std::string> new_vals; | |
| 2819 | ✗ | for (const auto& val : rvals) { | |
| 2820 | ✗ | new_vals.push_back(openstudio::string_conversions::number(val)); | |
| 2821 | } | ||
| 2822 | ✗ | m_rvals = new_vals; | |
| 2823 | ✗ | return true; | |
| 2824 | ✗ | } | |
| 2825 | |||
| 2826 | 6 | bool RunControlImpl::setRvals(const std::vector<std::string>& rvals) { | |
| 2827 |
1/2✓ Branch 3 taken 6 times.
✗ Branch 4 not taken.
|
6 | if (std::all_of(rvals.begin(), rvals.end(), is_valid<double, std::string>)) { |
| 2828 | 6 | m_rvals = rvals; | |
| 2829 | 6 | return true; | |
| 2830 | } else { | ||
| 2831 | ✗ | return false; | |
| 2832 | } | ||
| 2833 | } | ||
| 2834 | |||
| 2835 | ✗ | int RunControlImpl::BldgFlowZ() const { | |
| 2836 | ✗ | return m_BldgFlowZ; | |
| 2837 | } | ||
| 2838 | |||
| 2839 | 6 | void RunControlImpl::setBldgFlowZ(const int BldgFlowZ) { | |
| 2840 | 6 | m_BldgFlowZ = BldgFlowZ; | |
| 2841 | 6 | } | |
| 2842 | |||
| 2843 | ✗ | int RunControlImpl::BldgFlowD() const { | |
| 2844 | ✗ | return m_BldgFlowD; | |
| 2845 | } | ||
| 2846 | |||
| 2847 | 6 | void RunControlImpl::setBldgFlowD(const int BldgFlowD) { | |
| 2848 | 6 | m_BldgFlowD = BldgFlowD; | |
| 2849 | 6 | } | |
| 2850 | |||
| 2851 | ✗ | int RunControlImpl::BldgFlowC() const { | |
| 2852 | ✗ | return m_BldgFlowC; | |
| 2853 | } | ||
| 2854 | |||
| 2855 | 6 | void RunControlImpl::setBldgFlowC(const int BldgFlowC) { | |
| 2856 | 6 | m_BldgFlowC = BldgFlowC; | |
| 2857 | 6 | } | |
| 2858 | |||
| 2859 | ✗ | int RunControlImpl::cfd_ctype() const { | |
| 2860 | ✗ | return m_cfd_ctype; | |
| 2861 | } | ||
| 2862 | |||
| 2863 | 6 | void RunControlImpl::setCfd_ctype(const int cfd_ctype) { | |
| 2864 | 6 | m_cfd_ctype = cfd_ctype; | |
| 2865 | 6 | } | |
| 2866 | |||
| 2867 | ✗ | double RunControlImpl::cfd_convcpl() const { | |
| 2868 | ✗ | return openstudio::string_conversions::to<double>(m_cfd_convcpl); | |
| 2869 | } | ||
| 2870 | |||
| 2871 | ✗ | bool RunControlImpl::setCfd_convcpl(const double cfd_convcpl) { | |
| 2872 | ✗ | m_cfd_convcpl = openstudio::string_conversions::number(cfd_convcpl); | |
| 2873 | ✗ | return true; | |
| 2874 | } | ||
| 2875 | |||
| 2876 | 6 | bool RunControlImpl::setCfd_convcpl(const std::string& cfd_convcpl) { | |
| 2877 | 6 | return assign_if_valid<double>(cfd_convcpl, m_cfd_convcpl); | |
| 2878 | } | ||
| 2879 | |||
| 2880 | ✗ | int RunControlImpl::cfd_var() const { | |
| 2881 | ✗ | return m_cfd_var; | |
| 2882 | } | ||
| 2883 | |||
| 2884 | 6 | void RunControlImpl::setCfd_var(const int cfd_var) { | |
| 2885 | 6 | m_cfd_var = cfd_var; | |
| 2886 | 6 | } | |
| 2887 | |||
| 2888 | ✗ | int RunControlImpl::cfd_zref() const { | |
| 2889 | ✗ | return m_cfd_zref; | |
| 2890 | } | ||
| 2891 | |||
| 2892 | 6 | void RunControlImpl::setCfd_zref(const int cfd_zref) { | |
| 2893 | 6 | m_cfd_zref = cfd_zref; | |
| 2894 | 6 | } | |
| 2895 | |||
| 2896 | ✗ | int RunControlImpl::cfd_imax() const { | |
| 2897 | ✗ | return m_cfd_imax; | |
| 2898 | } | ||
| 2899 | |||
| 2900 | 6 | void RunControlImpl::setCfd_imax(const int cfd_imax) { | |
| 2901 | 6 | m_cfd_imax = cfd_imax; | |
| 2902 | 6 | } | |
| 2903 | |||
| 2904 | ✗ | int RunControlImpl::cfd_dtcmo() const { | |
| 2905 | ✗ | return m_cfd_dtcmo; | |
| 2906 | } | ||
| 2907 | |||
| 2908 | 6 | void RunControlImpl::setCfd_dtcmo(const int cfd_dtcmo) { | |
| 2909 | 6 | m_cfd_dtcmo = cfd_dtcmo; | |
| 2910 | 6 | } | |
| 2911 | |||
| 2912 | 12 | void LevelImpl::setDefaults() { | |
| 2913 | 12 | m_nr = 0; | |
| 2914 |
1/1✓ Branch 1 taken 12 times.
|
24 | m_refht = PRJFLOAT("0.0"); |
| 2915 |
1/1✓ Branch 1 taken 12 times.
|
12 | m_delht = PRJFLOAT("0.0"); |
| 2916 | 12 | m_u_rfht = 0; | |
| 2917 | 12 | m_u_dlht = 0; | |
| 2918 | 12 | } | |
| 2919 | |||
| 2920 | 12 | LevelImpl::LevelImpl() { | |
| 2921 |
1/1✓ Branch 1 taken 12 times.
|
12 | setDefaults(); |
| 2922 | 12 | } | |
| 2923 | |||
| 2924 | ✗ | LevelImpl::LevelImpl(int nr, double refht, double delht, int u_rfht, int u_dlht, std::string name, std::vector<Icon> icons) { | |
| 2925 | ✗ | setDefaults(); | |
| 2926 | ✗ | setNr(nr); | |
| 2927 | ✗ | setRefht(refht); | |
| 2928 | ✗ | setDelht(delht); | |
| 2929 | ✗ | setU_rfht(u_rfht); | |
| 2930 | ✗ | setU_dlht(u_dlht); | |
| 2931 | ✗ | setName(name); | |
| 2932 | ✗ | setIcons(icons); | |
| 2933 | ✗ | } | |
| 2934 | |||
| 2935 | ✗ | LevelImpl::LevelImpl(int nr, std::string refht, std::string delht, int u_rfht, int u_dlht, std::string name, std::vector<Icon> icons) { | |
| 2936 | ✗ | setDefaults(); | |
| 2937 | ✗ | setNr(nr); | |
| 2938 | ✗ | setRefht(refht); | |
| 2939 | ✗ | setDelht(delht); | |
| 2940 | ✗ | setU_rfht(u_rfht); | |
| 2941 | ✗ | setU_dlht(u_dlht); | |
| 2942 | ✗ | setName(name); | |
| 2943 | ✗ | setIcons(icons); | |
| 2944 | ✗ | } | |
| 2945 | |||
| 2946 | 6 | void LevelImpl::read(Reader& input) { | |
| 2947 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setNr(input.read<int>()); |
| 2948 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setRefht(input.readNumber<std::string>()); |
| 2949 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setDelht(input.readNumber<std::string>()); |
| 2950 |
1/1✓ Branch 1 taken 6 times.
|
6 | int nicon = input.read<int>(); |
| 2951 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setU_rfht(input.read<int>()); |
| 2952 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setU_dlht(input.read<int>()); |
| 2953 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setName(input.readString()); |
| 2954 | 6 | std::vector<Icon> icons; | |
| 2955 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
|
6 | for (int i = 0; i < nicon; i++) { |
| 2956 | ✗ | Icon object; | |
| 2957 | ✗ | object.read(input); | |
| 2958 | ✗ | icons.push_back(object); | |
| 2959 | ✗ | } | |
| 2960 |
1/1✓ Branch 1 taken 6 times.
|
6 | setIcons(icons); |
| 2961 | 6 | } | |
| 2962 | |||
| 2963 | 1 | std::string LevelImpl::write() { | |
| 2964 | 1 | std::string string; | |
| 2965 |
11/11✓ Branch 2 taken 1 time.
✓ Branch 5 taken 1 time.
✓ Branch 8 taken 1 time.
✓ Branch 11 taken 1 time.
✓ Branch 14 taken 1 time.
✓ Branch 17 taken 1 time.
✓ Branch 20 taken 1 time.
✓ Branch 23 taken 1 time.
✓ Branch 26 taken 1 time.
✓ Branch 29 taken 1 time.
✓ Branch 32 taken 1 time.
|
2 | string += ANY_TO_STR(m_nr) + ' ' + ANY_TO_STR(m_refht) + ' ' + ANY_TO_STR(m_delht) + ' ' + ANY_TO_STR((int)m_icons.size()) + ' ' |
| 2966 |
10/10✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
|
3 | + ANY_TO_STR(m_u_rfht) + ' ' + ANY_TO_STR(m_u_dlht) + ' ' + ANY_TO_STR(m_name) + '\n'; |
| 2967 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
|
1 | for (unsigned i = 0; i < m_icons.size(); i++) { |
| 2968 | ✗ | string += m_icons[i].write(); | |
| 2969 | } | ||
| 2970 | 1 | return string; | |
| 2971 | ✗ | } | |
| 2972 | |||
| 2973 | ✗ | int LevelImpl::nr() const { | |
| 2974 | ✗ | return m_nr; | |
| 2975 | } | ||
| 2976 | |||
| 2977 | 15 | void LevelImpl::setNr(const int nr) { | |
| 2978 | 15 | m_nr = nr; | |
| 2979 | 15 | } | |
| 2980 | |||
| 2981 | 51 | double LevelImpl::refht() const { | |
| 2982 | 51 | return openstudio::string_conversions::to<double>(m_refht); | |
| 2983 | } | ||
| 2984 | |||
| 2985 | 6 | bool LevelImpl::setRefht(const double refht) { | |
| 2986 |
1/1✓ Branch 1 taken 6 times.
|
6 | m_refht = openstudio::string_conversions::number(refht); |
| 2987 | 6 | return true; | |
| 2988 | } | ||
| 2989 | |||
| 2990 | 9 | bool LevelImpl::setRefht(const std::string& refht) { | |
| 2991 | 9 | return assign_if_valid<double>(refht, m_refht); | |
| 2992 | } | ||
| 2993 | |||
| 2994 | 2 | double LevelImpl::delht() const { | |
| 2995 | 2 | return openstudio::string_conversions::to<double>(m_delht); | |
| 2996 | } | ||
| 2997 | |||
| 2998 | 3 | bool LevelImpl::setDelht(const double delht) { | |
| 2999 |
1/1✓ Branch 1 taken 3 times.
|
3 | m_delht = openstudio::string_conversions::number(delht); |
| 3000 | 3 | return true; | |
| 3001 | } | ||
| 3002 | |||
| 3003 | 9 | bool LevelImpl::setDelht(const std::string& delht) { | |
| 3004 | 9 | return assign_if_valid<double>(delht, m_delht); | |
| 3005 | } | ||
| 3006 | |||
| 3007 | ✗ | int LevelImpl::u_rfht() const { | |
| 3008 | ✗ | return m_u_rfht; | |
| 3009 | } | ||
| 3010 | |||
| 3011 | 6 | void LevelImpl::setU_rfht(const int u_rfht) { | |
| 3012 | 6 | m_u_rfht = u_rfht; | |
| 3013 | 6 | } | |
| 3014 | |||
| 3015 | ✗ | int LevelImpl::u_dlht() const { | |
| 3016 | ✗ | return m_u_dlht; | |
| 3017 | } | ||
| 3018 | |||
| 3019 | 6 | void LevelImpl::setU_dlht(const int u_dlht) { | |
| 3020 | 6 | m_u_dlht = u_dlht; | |
| 3021 | 6 | } | |
| 3022 | |||
| 3023 | ✗ | std::string LevelImpl::name() const { | |
| 3024 | ✗ | return m_name; | |
| 3025 | } | ||
| 3026 | |||
| 3027 | 12 | void LevelImpl::setName(const std::string& name) { | |
| 3028 | 12 | m_name = name; | |
| 3029 | 12 | } | |
| 3030 | |||
| 3031 | ✗ | std::vector<Icon> LevelImpl::icons() const { | |
| 3032 | ✗ | return m_icons; | |
| 3033 | } | ||
| 3034 | |||
| 3035 | 6 | void LevelImpl::setIcons(const std::vector<Icon>& icons) { | |
| 3036 | 6 | m_icons = icons; | |
| 3037 | 6 | } | |
| 3038 | |||
| 3039 | 126 | void DayScheduleImpl::setDefaults() { | |
| 3040 | 126 | m_nr = 0; | |
| 3041 | 126 | m_shape = 0; | |
| 3042 | 126 | m_utyp = 0; | |
| 3043 | 126 | m_ucnv = 0; | |
| 3044 | 126 | } | |
| 3045 | |||
| 3046 | 126 | DayScheduleImpl::DayScheduleImpl() { | |
| 3047 |
1/1✓ Branch 1 taken 126 times.
|
126 | setDefaults(); |
| 3048 | 126 | } | |
| 3049 | |||
| 3050 | ✗ | DayScheduleImpl::DayScheduleImpl(int nr, int shape, int utyp, int ucnv, std::string name, std::string desc, std::vector<SchedulePoint> points) { | |
| 3051 | ✗ | setDefaults(); | |
| 3052 | ✗ | setNr(nr); | |
| 3053 | ✗ | setShape(shape); | |
| 3054 | ✗ | setUtyp(utyp); | |
| 3055 | ✗ | setUcnv(ucnv); | |
| 3056 | ✗ | setName(name); | |
| 3057 | ✗ | setDesc(desc); | |
| 3058 | ✗ | setPoints(points); | |
| 3059 | ✗ | } | |
| 3060 | |||
| 3061 | 126 | void DayScheduleImpl::read(Reader& input) { | |
| 3062 |
2/2✓ Branch 1 taken 126 times.
✓ Branch 4 taken 126 times.
|
126 | setNr(input.read<int>()); |
| 3063 |
1/1✓ Branch 1 taken 126 times.
|
126 | int npts = input.read<int>(); |
| 3064 |
2/2✓ Branch 1 taken 126 times.
✓ Branch 4 taken 126 times.
|
126 | setShape(input.read<int>()); |
| 3065 |
2/2✓ Branch 1 taken 126 times.
✓ Branch 4 taken 126 times.
|
126 | setUtyp(input.read<int>()); |
| 3066 |
2/2✓ Branch 1 taken 126 times.
✓ Branch 4 taken 126 times.
|
126 | setUcnv(input.read<int>()); |
| 3067 |
2/2✓ Branch 1 taken 126 times.
✓ Branch 4 taken 126 times.
|
126 | setName(input.readString()); |
| 3068 |
2/2✓ Branch 1 taken 126 times.
✓ Branch 4 taken 126 times.
|
126 | setDesc(input.readLine()); |
| 3069 | 126 | std::vector<SchedulePoint> points; | |
| 3070 |
2/2✓ Branch 0 taken 252 times.
✓ Branch 1 taken 126 times.
|
378 | for (int i = 0; i < npts; i++) { |
| 3071 |
1/1✓ Branch 1 taken 252 times.
|
252 | SchedulePoint object; |
| 3072 |
1/1✓ Branch 1 taken 252 times.
|
252 | object.read(input); |
| 3073 |
1/1✓ Branch 1 taken 252 times.
|
252 | points.push_back(object); |
| 3074 | 252 | } | |
| 3075 |
1/1✓ Branch 1 taken 126 times.
|
126 | setPoints(points); |
| 3076 | 126 | } | |
| 3077 | |||
| 3078 | 21 | std::string DayScheduleImpl::write() { | |
| 3079 | 21 | std::string string; | |
| 3080 |
11/11✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
✓ Branch 8 taken 21 times.
✓ Branch 11 taken 21 times.
✓ Branch 14 taken 21 times.
✓ Branch 17 taken 21 times.
✓ Branch 20 taken 21 times.
✓ Branch 23 taken 21 times.
✓ Branch 26 taken 21 times.
✓ Branch 29 taken 21 times.
✓ Branch 32 taken 21 times.
|
42 | string += ANY_TO_STR(m_nr) + ' ' + ANY_TO_STR((int)m_points.size()) + ' ' + ANY_TO_STR(m_shape) + ' ' + ANY_TO_STR(m_utyp) + ' ' |
| 3081 |
6/6✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
✓ Branch 7 taken 21 times.
✓ Branch 10 taken 21 times.
✓ Branch 13 taken 21 times.
✓ Branch 16 taken 21 times.
|
63 | + ANY_TO_STR(m_ucnv) + ' ' + m_name + '\n'; |
| 3082 |
2/2✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
|
21 | string += m_desc + '\n'; |
| 3083 |
2/2✓ Branch 1 taken 42 times.
✓ Branch 2 taken 21 times.
|
63 | for (unsigned i = 0; i < m_points.size(); i++) { |
| 3084 |
2/2✓ Branch 2 taken 42 times.
✓ Branch 5 taken 42 times.
|
42 | string += m_points[i].write(); |
| 3085 | } | ||
| 3086 | 21 | return string; | |
| 3087 | ✗ | } | |
| 3088 | |||
| 3089 | ✗ | int DayScheduleImpl::nr() const { | |
| 3090 | ✗ | return m_nr; | |
| 3091 | } | ||
| 3092 | |||
| 3093 | 126 | void DayScheduleImpl::setNr(const int nr) { | |
| 3094 | 126 | m_nr = nr; | |
| 3095 | 126 | } | |
| 3096 | |||
| 3097 | ✗ | int DayScheduleImpl::shape() const { | |
| 3098 | ✗ | return m_shape; | |
| 3099 | } | ||
| 3100 | |||
| 3101 | 126 | void DayScheduleImpl::setShape(const int shape) { | |
| 3102 | 126 | m_shape = shape; | |
| 3103 | 126 | } | |
| 3104 | |||
| 3105 | ✗ | int DayScheduleImpl::utyp() const { | |
| 3106 | ✗ | return m_utyp; | |
| 3107 | } | ||
| 3108 | |||
| 3109 | 126 | void DayScheduleImpl::setUtyp(const int utyp) { | |
| 3110 | 126 | m_utyp = utyp; | |
| 3111 | 126 | } | |
| 3112 | |||
| 3113 | ✗ | int DayScheduleImpl::ucnv() const { | |
| 3114 | ✗ | return m_ucnv; | |
| 3115 | } | ||
| 3116 | |||
| 3117 | 126 | void DayScheduleImpl::setUcnv(const int ucnv) { | |
| 3118 | 126 | m_ucnv = ucnv; | |
| 3119 | 126 | } | |
| 3120 | |||
| 3121 | ✗ | std::string DayScheduleImpl::name() const { | |
| 3122 | ✗ | return m_name; | |
| 3123 | } | ||
| 3124 | |||
| 3125 | 126 | void DayScheduleImpl::setName(const std::string& name) { | |
| 3126 | 126 | m_name = name; | |
| 3127 | 126 | } | |
| 3128 | |||
| 3129 | ✗ | std::string DayScheduleImpl::desc() const { | |
| 3130 | ✗ | return m_desc; | |
| 3131 | } | ||
| 3132 | |||
| 3133 | 126 | void DayScheduleImpl::setDesc(const std::string& desc) { | |
| 3134 | 126 | m_desc = desc; | |
| 3135 | 126 | } | |
| 3136 | |||
| 3137 | ✗ | std::vector<SchedulePoint> DayScheduleImpl::points() const { | |
| 3138 | ✗ | return m_points; | |
| 3139 | } | ||
| 3140 | |||
| 3141 | 126 | void DayScheduleImpl::setPoints(const std::vector<SchedulePoint>& points) { | |
| 3142 | 126 | m_points = points; | |
| 3143 | 126 | } | |
| 3144 | |||
| 3145 | 126 | void WeekScheduleImpl::setDefaults() { | |
| 3146 | 126 | m_nr = 0; | |
| 3147 | 126 | m_utyp = 0; | |
| 3148 | 126 | m_ucnv = 0; | |
| 3149 | 126 | } | |
| 3150 | |||
| 3151 | 126 | WeekScheduleImpl::WeekScheduleImpl() { | |
| 3152 |
1/1✓ Branch 1 taken 126 times.
|
126 | setDefaults(); |
| 3153 | 126 | } | |
| 3154 | |||
| 3155 | ✗ | WeekScheduleImpl::WeekScheduleImpl(int nr, int utyp, int ucnv, std::string name, std::string desc, std::vector<int> j) { | |
| 3156 | ✗ | setDefaults(); | |
| 3157 | ✗ | setNr(nr); | |
| 3158 | ✗ | setUtyp(utyp); | |
| 3159 | ✗ | setUcnv(ucnv); | |
| 3160 | ✗ | setName(name); | |
| 3161 | ✗ | setDesc(desc); | |
| 3162 | ✗ | setJ(j); | |
| 3163 | ✗ | } | |
| 3164 | |||
| 3165 | 126 | void WeekScheduleImpl::read(Reader& input) { | |
| 3166 |
2/2✓ Branch 1 taken 126 times.
✓ Branch 4 taken 126 times.
|
126 | setNr(input.read<int>()); |
| 3167 |
2/2✓ Branch 1 taken 126 times.
✓ Branch 4 taken 126 times.
|
126 | setUtyp(input.read<int>()); |
| 3168 |
2/2✓ Branch 1 taken 126 times.
✓ Branch 4 taken 126 times.
|
126 | setUcnv(input.read<int>()); |
| 3169 |
2/2✓ Branch 1 taken 126 times.
✓ Branch 4 taken 126 times.
|
126 | setName(input.readString()); |
| 3170 |
2/2✓ Branch 1 taken 126 times.
✓ Branch 4 taken 126 times.
|
126 | setDesc(input.readLine()); |
| 3171 | 126 | std::vector<int> j; | |
| 3172 |
2/2✓ Branch 0 taken 1512 times.
✓ Branch 1 taken 126 times.
|
1638 | for (int i = 0; i < 12; i++) { |
| 3173 |
2/2✓ Branch 1 taken 1512 times.
✓ Branch 4 taken 1512 times.
|
1512 | j.push_back(input.read<int>()); |
| 3174 | } | ||
| 3175 |
1/1✓ Branch 1 taken 126 times.
|
126 | setJ(j); |
| 3176 | 126 | } | |
| 3177 | |||
| 3178 | 21 | std::string WeekScheduleImpl::write() { | |
| 3179 | 21 | std::string string; | |
| 3180 |
11/11✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
✓ Branch 7 taken 21 times.
✓ Branch 10 taken 21 times.
✓ Branch 13 taken 21 times.
✓ Branch 16 taken 21 times.
✓ Branch 19 taken 21 times.
✓ Branch 22 taken 21 times.
✓ Branch 25 taken 21 times.
✓ Branch 28 taken 21 times.
✓ Branch 31 taken 21 times.
|
21 | string += ANY_TO_STR(m_nr) + ' ' + ANY_TO_STR(m_utyp) + ' ' + ANY_TO_STR(m_ucnv) + ' ' + m_name + '\n'; |
| 3181 |
2/2✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
|
21 | string += m_desc + '\n'; |
| 3182 |
2/2✓ Branch 0 taken 252 times.
✓ Branch 1 taken 21 times.
|
273 | for (int i = 0; i < 12; i++) { |
| 3183 |
3/3✓ Branch 2 taken 252 times.
✓ Branch 5 taken 252 times.
✓ Branch 8 taken 252 times.
|
252 | string += ANY_TO_STR(m_j[i]) + ' '; |
| 3184 | } | ||
| 3185 |
1/1✓ Branch 1 taken 21 times.
|
21 | string += '\n'; |
| 3186 | 21 | return string; | |
| 3187 | ✗ | } | |
| 3188 | |||
| 3189 | ✗ | int WeekScheduleImpl::nr() const { | |
| 3190 | ✗ | return m_nr; | |
| 3191 | } | ||
| 3192 | |||
| 3193 | 126 | void WeekScheduleImpl::setNr(const int nr) { | |
| 3194 | 126 | m_nr = nr; | |
| 3195 | 126 | } | |
| 3196 | |||
| 3197 | ✗ | int WeekScheduleImpl::utyp() const { | |
| 3198 | ✗ | return m_utyp; | |
| 3199 | } | ||
| 3200 | |||
| 3201 | 126 | void WeekScheduleImpl::setUtyp(const int utyp) { | |
| 3202 | 126 | m_utyp = utyp; | |
| 3203 | 126 | } | |
| 3204 | |||
| 3205 | ✗ | int WeekScheduleImpl::ucnv() const { | |
| 3206 | ✗ | return m_ucnv; | |
| 3207 | } | ||
| 3208 | |||
| 3209 | 126 | void WeekScheduleImpl::setUcnv(const int ucnv) { | |
| 3210 | 126 | m_ucnv = ucnv; | |
| 3211 | 126 | } | |
| 3212 | |||
| 3213 | ✗ | std::string WeekScheduleImpl::name() const { | |
| 3214 | ✗ | return m_name; | |
| 3215 | } | ||
| 3216 | |||
| 3217 | 126 | void WeekScheduleImpl::setName(const std::string& name) { | |
| 3218 | 126 | m_name = name; | |
| 3219 | 126 | } | |
| 3220 | |||
| 3221 | ✗ | std::string WeekScheduleImpl::desc() const { | |
| 3222 | ✗ | return m_desc; | |
| 3223 | } | ||
| 3224 | |||
| 3225 | 126 | void WeekScheduleImpl::setDesc(const std::string& desc) { | |
| 3226 | 126 | m_desc = desc; | |
| 3227 | 126 | } | |
| 3228 | |||
| 3229 | ✗ | std::vector<int> WeekScheduleImpl::j() const { | |
| 3230 | ✗ | return m_j; | |
| 3231 | } | ||
| 3232 | |||
| 3233 | 126 | void WeekScheduleImpl::setJ(const std::vector<int>& j) { | |
| 3234 | 126 | m_j = j; | |
| 3235 | 126 | } | |
| 3236 | |||
| 3237 | 30 | void WindPressureProfileImpl::setDefaults() { | |
| 3238 | 30 | m_nr = 0; | |
| 3239 | 30 | m_type = 0; | |
| 3240 | 30 | } | |
| 3241 | |||
| 3242 | 30 | WindPressureProfileImpl::WindPressureProfileImpl() { | |
| 3243 |
1/1✓ Branch 1 taken 30 times.
|
30 | setDefaults(); |
| 3244 | 30 | } | |
| 3245 | |||
| 3246 | ✗ | WindPressureProfileImpl::WindPressureProfileImpl(int nr, int type, std::string name, std::string desc, | |
| 3247 | ✗ | std::vector<PressureCoefficientPoint> coeffs) { | |
| 3248 | ✗ | setDefaults(); | |
| 3249 | ✗ | setNr(nr); | |
| 3250 | ✗ | setType(type); | |
| 3251 | ✗ | setName(name); | |
| 3252 | ✗ | setDesc(desc); | |
| 3253 | ✗ | setCoeffs(coeffs); | |
| 3254 | ✗ | } | |
| 3255 | |||
| 3256 | 30 | void WindPressureProfileImpl::read(Reader& input) { | |
| 3257 |
2/2✓ Branch 1 taken 30 times.
✓ Branch 4 taken 30 times.
|
30 | setNr(input.read<int>()); |
| 3258 |
1/1✓ Branch 1 taken 30 times.
|
30 | int npts = input.read<int>(); |
| 3259 |
2/2✓ Branch 1 taken 30 times.
✓ Branch 4 taken 30 times.
|
30 | setType(input.read<int>()); |
| 3260 |
2/2✓ Branch 1 taken 30 times.
✓ Branch 4 taken 30 times.
|
30 | setName(input.readString()); |
| 3261 |
2/2✓ Branch 1 taken 30 times.
✓ Branch 4 taken 30 times.
|
30 | setDesc(input.readLine()); |
| 3262 | 30 | std::vector<PressureCoefficientPoint> coeffs; | |
| 3263 |
2/2✓ Branch 0 taken 330 times.
✓ Branch 1 taken 30 times.
|
360 | for (int i = 0; i < npts; i++) { |
| 3264 |
1/1✓ Branch 1 taken 330 times.
|
330 | PressureCoefficientPoint object; |
| 3265 |
1/1✓ Branch 1 taken 330 times.
|
330 | object.read(input); |
| 3266 |
1/1✓ Branch 1 taken 330 times.
|
330 | coeffs.push_back(object); |
| 3267 | 330 | } | |
| 3268 |
1/1✓ Branch 1 taken 30 times.
|
30 | setCoeffs(coeffs); |
| 3269 | 30 | } | |
| 3270 | |||
| 3271 | 5 | std::string WindPressureProfileImpl::write() { | |
| 3272 | 5 | std::string string; | |
| 3273 |
11/11✓ Branch 1 taken 5 times.
✓ Branch 5 taken 5 times.
✓ Branch 8 taken 5 times.
✓ Branch 11 taken 5 times.
✓ Branch 14 taken 5 times.
✓ Branch 17 taken 5 times.
✓ Branch 20 taken 5 times.
✓ Branch 23 taken 5 times.
✓ Branch 26 taken 5 times.
✓ Branch 29 taken 5 times.
✓ Branch 32 taken 5 times.
|
5 | string += ANY_TO_STR(m_nr) + ' ' + ANY_TO_STR((int)m_coeffs.size()) + ' ' + ANY_TO_STR(m_type) + ' ' + m_name + '\n'; |
| 3274 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | string += m_desc + '\n'; |
| 3275 |
2/2✓ Branch 1 taken 55 times.
✓ Branch 2 taken 5 times.
|
60 | for (unsigned i = 0; i < m_coeffs.size(); i++) { |
| 3276 |
2/2✓ Branch 2 taken 55 times.
✓ Branch 5 taken 55 times.
|
55 | string += m_coeffs[i].write(); |
| 3277 | } | ||
| 3278 | 5 | return string; | |
| 3279 | ✗ | } | |
| 3280 | |||
| 3281 | ✗ | int WindPressureProfileImpl::nr() const { | |
| 3282 | ✗ | return m_nr; | |
| 3283 | } | ||
| 3284 | |||
| 3285 | 30 | void WindPressureProfileImpl::setNr(const int nr) { | |
| 3286 | 30 | m_nr = nr; | |
| 3287 | 30 | } | |
| 3288 | |||
| 3289 | ✗ | int WindPressureProfileImpl::type() const { | |
| 3290 | ✗ | return m_type; | |
| 3291 | } | ||
| 3292 | |||
| 3293 | 30 | void WindPressureProfileImpl::setType(const int type) { | |
| 3294 | 30 | m_type = type; | |
| 3295 | 30 | } | |
| 3296 | |||
| 3297 | ✗ | std::string WindPressureProfileImpl::name() const { | |
| 3298 | ✗ | return m_name; | |
| 3299 | } | ||
| 3300 | |||
| 3301 | 30 | void WindPressureProfileImpl::setName(const std::string& name) { | |
| 3302 | 30 | m_name = name; | |
| 3303 | 30 | } | |
| 3304 | |||
| 3305 | ✗ | std::string WindPressureProfileImpl::desc() const { | |
| 3306 | ✗ | return m_desc; | |
| 3307 | } | ||
| 3308 | |||
| 3309 | 30 | void WindPressureProfileImpl::setDesc(const std::string& desc) { | |
| 3310 | 30 | m_desc = desc; | |
| 3311 | 30 | } | |
| 3312 | |||
| 3313 | ✗ | std::vector<PressureCoefficientPoint> WindPressureProfileImpl::coeffs() const { | |
| 3314 | ✗ | return m_coeffs; | |
| 3315 | } | ||
| 3316 | |||
| 3317 | 30 | void WindPressureProfileImpl::setCoeffs(const std::vector<PressureCoefficientPoint>& coeffs) { | |
| 3318 | 30 | m_coeffs = coeffs; | |
| 3319 | 30 | } | |
| 3320 | |||
| 3321 | ✗ | void CdvDatImpl::setDefaults() { | |
| 3322 | ✗ | m_nr = 0; | |
| 3323 | ✗ | m_seqnr = 0; | |
| 3324 | ✗ | m_flags = 0; | |
| 3325 | ✗ | m_inreq = 0; | |
| 3326 | ✗ | m_n1 = 0; | |
| 3327 | ✗ | m_n2 = 0; | |
| 3328 | ✗ | } | |
| 3329 | |||
| 3330 | ✗ | CdvDatImpl::CdvDatImpl() { | |
| 3331 | ✗ | setDefaults(); | |
| 3332 | ✗ | } | |
| 3333 | |||
| 3334 | ✗ | CdvDatImpl::CdvDatImpl(int nr, int seqnr, unsigned int flags, int inreq, int n1, int n2, std::string name, std::string desc) { | |
| 3335 | ✗ | setDefaults(); | |
| 3336 | ✗ | setNr(nr); | |
| 3337 | ✗ | setSeqnr(seqnr); | |
| 3338 | ✗ | setFlags(flags); | |
| 3339 | ✗ | setInreq(inreq); | |
| 3340 | ✗ | setN1(n1); | |
| 3341 | ✗ | setN2(n2); | |
| 3342 | ✗ | setName(name); | |
| 3343 | ✗ | setDesc(desc); | |
| 3344 | ✗ | } | |
| 3345 | |||
| 3346 | ✗ | CdvDatImpl::CdvDatImpl(int nr, int seqnr, unsigned int flags, int inreq, int n1, int n2, std::string name, std::string desc, | |
| 3347 | ✗ | std::string valuename) { | |
| 3348 | ✗ | setDefaults(); | |
| 3349 | ✗ | setNr(nr); | |
| 3350 | ✗ | setSeqnr(seqnr); | |
| 3351 | ✗ | setFlags(flags); | |
| 3352 | ✗ | setInreq(inreq); | |
| 3353 | ✗ | setN1(n1); | |
| 3354 | ✗ | setN2(n2); | |
| 3355 | ✗ | setName(name); | |
| 3356 | ✗ | setDesc(desc); | |
| 3357 | ✗ | setValuename(valuename); | |
| 3358 | ✗ | } | |
| 3359 | |||
| 3360 | ✗ | void CdvDatImpl::read(Reader& input) { | |
| 3361 | ✗ | setNr(input.read<int>()); | |
| 3362 | ✗ | std::string dataType = input.readString(); // Should really check this | |
| 3363 | ✗ | setSeqnr(input.read<int>()); | |
| 3364 | ✗ | setFlags(input.read<unsigned int>()); | |
| 3365 | ✗ | setInreq(input.read<int>()); | |
| 3366 | ✗ | setN1(input.read<int>()); | |
| 3367 | ✗ | setN2(input.read<int>()); | |
| 3368 | ✗ | setName(input.readString()); | |
| 3369 | ✗ | setDesc(input.readLine()); | |
| 3370 | ✗ | setValuename(input.readLine()); | |
| 3371 | ✗ | } | |
| 3372 | |||
| 3373 | ✗ | std::string CdvDatImpl::write(std::string datatype) { | |
| 3374 | ✗ | std::string string; | |
| 3375 | ✗ | string += ANY_TO_STR(m_nr) + ' ' + datatype + '\n'; | |
| 3376 | ✗ | string += ANY_TO_STR(m_seqnr) + ' ' + ANY_TO_STR(m_flags) + ' ' + ANY_TO_STR(m_inreq) + ' ' + ANY_TO_STR(m_n1) + ' ' + ANY_TO_STR(m_n2) + ' ' | |
| 3377 | ✗ | + m_name + '\n'; | |
| 3378 | ✗ | string += m_desc + '\n'; | |
| 3379 | ✗ | string += m_valuename + '\n'; | |
| 3380 | ✗ | return string; | |
| 3381 | ✗ | } | |
| 3382 | |||
| 3383 | ✗ | void CdvDatImpl::readDetails(Reader& input) { | |
| 3384 | ✗ | setValuename(input.readLine()); | |
| 3385 | ✗ | } | |
| 3386 | |||
| 3387 | ✗ | int CdvDatImpl::nr() const { | |
| 3388 | ✗ | return m_nr; | |
| 3389 | } | ||
| 3390 | |||
| 3391 | ✗ | void CdvDatImpl::setNr(const int nr) { | |
| 3392 | ✗ | m_nr = nr; | |
| 3393 | ✗ | } | |
| 3394 | |||
| 3395 | ✗ | int CdvDatImpl::seqnr() const { | |
| 3396 | ✗ | return m_seqnr; | |
| 3397 | } | ||
| 3398 | |||
| 3399 | ✗ | void CdvDatImpl::setSeqnr(const int seqnr) { | |
| 3400 | ✗ | m_seqnr = seqnr; | |
| 3401 | ✗ | } | |
| 3402 | |||
| 3403 | ✗ | unsigned int CdvDatImpl::flags() const { | |
| 3404 | ✗ | return m_flags; | |
| 3405 | } | ||
| 3406 | |||
| 3407 | ✗ | void CdvDatImpl::setFlags(const unsigned int flags) { | |
| 3408 | ✗ | m_flags = flags; | |
| 3409 | ✗ | } | |
| 3410 | |||
| 3411 | ✗ | int CdvDatImpl::inreq() const { | |
| 3412 | ✗ | return m_inreq; | |
| 3413 | } | ||
| 3414 | |||
| 3415 | ✗ | void CdvDatImpl::setInreq(const int inreq) { | |
| 3416 | ✗ | m_inreq = inreq; | |
| 3417 | ✗ | } | |
| 3418 | |||
| 3419 | ✗ | int CdvDatImpl::n1() const { | |
| 3420 | ✗ | return m_n1; | |
| 3421 | } | ||
| 3422 | |||
| 3423 | ✗ | void CdvDatImpl::setN1(const int n1) { | |
| 3424 | ✗ | m_n1 = n1; | |
| 3425 | ✗ | } | |
| 3426 | |||
| 3427 | ✗ | int CdvDatImpl::n2() const { | |
| 3428 | ✗ | return m_n2; | |
| 3429 | } | ||
| 3430 | |||
| 3431 | ✗ | void CdvDatImpl::setN2(const int n2) { | |
| 3432 | ✗ | m_n2 = n2; | |
| 3433 | ✗ | } | |
| 3434 | |||
| 3435 | ✗ | std::string CdvDatImpl::name() const { | |
| 3436 | ✗ | return m_name; | |
| 3437 | } | ||
| 3438 | |||
| 3439 | ✗ | void CdvDatImpl::setName(const std::string& name) { | |
| 3440 | ✗ | m_name = name; | |
| 3441 | ✗ | } | |
| 3442 | |||
| 3443 | ✗ | std::string CdvDatImpl::desc() const { | |
| 3444 | ✗ | return m_desc; | |
| 3445 | } | ||
| 3446 | |||
| 3447 | ✗ | void CdvDatImpl::setDesc(const std::string& desc) { | |
| 3448 | ✗ | m_desc = desc; | |
| 3449 | ✗ | } | |
| 3450 | |||
| 3451 | ✗ | std::string CdvDatImpl::valuename() const { | |
| 3452 | ✗ | return m_valuename; | |
| 3453 | } | ||
| 3454 | |||
| 3455 | ✗ | void CdvDatImpl::setValuename(const std::string& valuename) { | |
| 3456 | ✗ | m_valuename = valuename; | |
| 3457 | ✗ | } | |
| 3458 | |||
| 3459 | } // namespace detail | ||
| 3460 | } // namespace contam | ||
| 3461 | } // namespace openstudio | ||
| 3462 |