| 295 | } |
| 296 | |
| 297 | int |
| 298 | Mehanny::getResponse(int responseID, Information &info) |
| 299 | { |
| 300 | switch (responseID) { |
| 301 | case -1: |
| 302 | return -1; |
| 303 | |
| 304 | case 1: |
| 305 | return info.setDouble( this->getDamage() ); |
| 306 | |
| 307 | case 2: |
| 308 | return info.setDouble( TrialPlasticDefo ); |
| 309 | |
| 310 | case 3: |
| 311 | if(info.theVector!=0) |
| 312 | { |
| 313 | (*(info.theVector))(0) = TrialPosPHC; |
| 314 | (*(info.theVector))(1) = TrialSumPosFHC; |
| 315 | (*(info.theVector))(2) = TrialNegPHC; |
| 316 | (*(info.theVector))(3) = TrialSumNegFHC; |
| 317 | } |
| 318 | return 0; |
| 319 | |
| 320 | default: |
| 321 | return -1; |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | |
| 326 | int |