YouBotGripperParameter.cpp
Go to the documentation of this file.
1 /****************************************************************
2  *
3  * Copyright (c) 2011
4  * All rights reserved.
5  *
6  * Hochschule Bonn-Rhein-Sieg
7  * University of Applied Sciences
8  * Computer Science Department
9  *
10  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11  *
12  * Author:
13  * Jan Paulus, Nico Hochgeschwender, Michael Reckhaus, Azamat Shakhimardanov
14  * Supervised by:
15  * Gerhard K. Kraetzschmar
16  *
17  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18  *
19  * This sofware is published under a dual-license: GNU Lesser General Public
20  * License LGPL 2.1 and BSD license. The dual-license implies that users of this
21  * code may choose which terms they prefer.
22  *
23  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24  *
25  * Redistribution and use in source and binary forms, with or without
26  * modification, are permitted provided that the following conditions are met:
27  *
28  * * Redistributions of source code must retain the above copyright
29  * notice, this list of conditions and the following disclaimer.
30  * * Redistributions in binary form must reproduce the above copyright
31  * notice, this list of conditions and the following disclaimer in the
32  * documentation and/or other materials provided with the distribution.
33  * * Neither the name of the Hochschule Bonn-Rhein-Sieg nor the names of its
34  * contributors may be used to endorse or promote products derived from
35  * this software without specific prior written permission.
36  *
37  * This program is free software: you can redistribute it and/or modify
38  * it under the terms of the GNU Lesser General Public License LGPL as
39  * published by the Free Software Foundation, either version 2.1 of the
40  * License, or (at your option) any later version or the BSD license.
41  *
42  * This program is distributed in the hope that it will be useful,
43  * but WITHOUT ANY WARRANTY; without even the implied warranty of
44  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45  * GNU Lesser General Public License LGPL and the BSD license for more details.
46  *
47  * You should have received a copy of the GNU Lesser General Public
48  * License LGPL and BSD license along with this program.
49  *
50  ****************************************************************/
52 namespace youbot {
53 
55  // Bouml preserved body begin 0005F0F1
56  // Bouml preserved body end 0005F0F1
57 }
58 
60  // Bouml preserved body begin 0005F171
61  // Bouml preserved body end 0005F171
62 }
63 
65  // Bouml preserved body begin 000BEAF1
66  this->name = "FirmwareVersion";
68  // Bouml preserved body end 000BEAF1
69 }
70 
72  // Bouml preserved body begin 000BEB71
73  // Bouml preserved body end 000BEB71
74 }
75 
76 void GripperFirmwareVersion::getParameter(int& controllerType, double& firmwareVersion) const {
77  // Bouml preserved body begin 000BEBF1
78  controllerType = this->controllerType;
79  firmwareVersion = this->firmwareVersion;
80  // Bouml preserved body end 000BEBF1
81 }
82 
83 void GripperFirmwareVersion::setParameter(const int controllerType, const double firmwareVersion) {
84  // Bouml preserved body begin 000BEC71
85  this->controllerType = controllerType;
86  this->firmwareVersion = firmwareVersion;
87  // Bouml preserved body end 000BEC71
88 }
89 
90 void GripperFirmwareVersion::toString(std::string& value) const {
91  // Bouml preserved body begin 000BECF1
92  std::stringstream ss;
93  ss << this->name << ": " << this->controllerType << " Version: " << this->firmwareVersion;
94  value = ss.str();
95  // Bouml preserved body end 000BECF1
96 }
97 
99  // Bouml preserved body begin 000BED71
101  message.stctOutput.moduleAddress = GRIPPER;
102  message.stctOutput.typeNumber = 0; //GripperFirmwareVersion
103  message.stctOutput.motorNumber = 0;
104  message.stctOutput.value = 0;
105  // Bouml preserved body end 000BED71
106 }
107 
109  // Bouml preserved body begin 000BEDF1
110  // Bouml preserved body end 000BEDF1
111 }
112 
114  // Bouml preserved body begin 00109D71
115  this->name = "GripperBarName";
117  // Bouml preserved body end 00109D71
118 }
119 
121  // Bouml preserved body begin 00109DF1
122  // Bouml preserved body end 00109DF1
123 }
124 
125 void GripperBarName::getParameter(std::string& parameter) const {
126  // Bouml preserved body begin 00109E71
127  parameter = this->value;
128  // Bouml preserved body end 00109E71
129 }
130 
131 void GripperBarName::setParameter(const std::string parameter) {
132  // Bouml preserved body begin 00109EF1
133  this->value = parameter;
134  // Bouml preserved body end 00109EF1
135 }
136 
137 void GripperBarName::toString(std::string& value) const {
138  // Bouml preserved body begin 00109F71
139  std::stringstream ss;
140  ss << this->name << ": " << this->value;
141  value = ss.str();
142  // Bouml preserved body end 00109F71
143 }
144 
146  // Bouml preserved body begin 00109FF1
147  // Bouml preserved body end 00109FF1
148 }
149 
151  // Bouml preserved body begin 0010A071
152  // Bouml preserved body end 0010A071
153 }
154 
156  // Bouml preserved body begin 0005F3F1
157  this->name = "CalibrateGripper";
159  // Bouml preserved body end 0005F3F1
160 }
161 
163  // Bouml preserved body begin 0005F471
164  // Bouml preserved body end 0005F471
165 }
166 
167 void CalibrateGripper::getParameter(bool& parameter) const {
168  // Bouml preserved body begin 0005F4F1
169  parameter = this->value;
170  // Bouml preserved body end 0005F4F1
171 }
172 
173 void CalibrateGripper::setParameter(const bool parameter) {
174  // Bouml preserved body begin 0005F571
175  this->value = parameter;
176  // Bouml preserved body end 0005F571
177 }
178 
179 void CalibrateGripper::toString(std::string& value) const {
180  // Bouml preserved body begin 0009F171
181  std::stringstream ss;
182  ss << this->name << ": " << this->value;
183  value = ss.str();
184  // Bouml preserved body end 0009F171
185 }
186 
188  // Bouml preserved body begin 000BE6F1
189  // Bouml preserved body end 000BE6F1
190 }
191 
193  // Bouml preserved body begin 000BE8F1
194  // Bouml preserved body end 000BE8F1
195 }
196 
198  // Bouml preserved body begin 0005FC71
199  this->name = "BarSpacingOffset";
201  // Bouml preserved body end 0005FC71
202 }
203 
205  // Bouml preserved body begin 0005FCF1
206  // Bouml preserved body end 0005FCF1
207 }
208 
209 void BarSpacingOffset::getParameter(quantity<si::length>& parameter) const {
210  // Bouml preserved body begin 0005FD71
211  parameter = this->value;
212  // Bouml preserved body end 0005FD71
213 }
214 
215 void BarSpacingOffset::setParameter(const quantity<si::length>& parameter) {
216  // Bouml preserved body begin 0005FDF1
217  if(parameter > 1 *meter || parameter < 0 *meter){
218  throw std::out_of_range("The Bar Spacing Offset is only allowed to be less than 1m and bigger than zero");
219  }
220  this->value = parameter;
221  // Bouml preserved body end 0005FDF1
222 }
223 
224 void BarSpacingOffset::toString(std::string& value) const {
225  // Bouml preserved body begin 0009F1F1
226  std::stringstream ss;
227  ss << this->name << ": " << this->value.value();
228  value = ss.str();
229  // Bouml preserved body end 0009F1F1
230 }
231 
233  // Bouml preserved body begin 000BE871
234  // Bouml preserved body end 000BE871
235 }
236 
238  // Bouml preserved body begin 000BEA71
239  // Bouml preserved body end 000BEA71
240 }
241 
243  // Bouml preserved body begin 00061B71
244  this->name = "MaxEncoderValue";
246  // Bouml preserved body end 00061B71
247 }
248 
250  // Bouml preserved body begin 00061BF1
251  // Bouml preserved body end 00061BF1
252 }
253 
254 void MaxEncoderValue::getParameter(unsigned int& parameter) const {
255  // Bouml preserved body begin 00061C71
256  parameter = this->value;
257  // Bouml preserved body end 00061C71
258 }
259 
260 void MaxEncoderValue::setParameter(const unsigned int parameter) {
261  // Bouml preserved body begin 00061CF1
262  this->value = parameter;
263  // Bouml preserved body end 00061CF1
264 }
265 
266 void MaxEncoderValue::toString(std::string& value) const {
267  // Bouml preserved body begin 0009F0F1
268  std::stringstream ss;
269  ss << this->name << ": " << this->value;
270  value = ss.str();
271  // Bouml preserved body end 0009F0F1
272 }
273 
275  // Bouml preserved body begin 000BE7F1
276  // Bouml preserved body end 000BE7F1
277 }
278 
280  // Bouml preserved body begin 000BE9F1
281  // Bouml preserved body end 000BE9F1
282 }
283 
285  // Bouml preserved body begin 000618F1
286  this->name = "MaxTravelDistance";
288  // Bouml preserved body end 000618F1
289 }
290 
292  // Bouml preserved body begin 00061971
293  // Bouml preserved body end 00061971
294 }
295 
296 void MaxTravelDistance::getParameter(quantity<si::length>& parameter) const {
297  // Bouml preserved body begin 000619F1
298  parameter = this->value;
299  // Bouml preserved body end 000619F1
300 }
301 
302 void MaxTravelDistance::setParameter(const quantity<si::length>& parameter) {
303  // Bouml preserved body begin 00061A71
304  if(parameter > 1 *meter || parameter < 0 *meter){
305  throw std::out_of_range("The Max Travel Distance is only allowed to be less than 1m and bigger than zero");
306  }
307  this->value = parameter;
308  // Bouml preserved body end 00061A71
309 }
310 
311 void MaxTravelDistance::toString(std::string& value) const {
312  // Bouml preserved body begin 0009F071
313  std::stringstream ss;
314  ss << this->name << ": " << this->value.value();
315  value = ss.str();
316  // Bouml preserved body end 0009F071
317 }
318 
320  // Bouml preserved body begin 000BE771
321  // Bouml preserved body end 000BE771
322 }
323 
325  // Bouml preserved body begin 000BE971
326  // Bouml preserved body end 000BE971
327 }
328 
330  // Bouml preserved body begin 000E10F1
331  this->name = "ActualPosition";
332  this->lowerLimit = INT_MIN;
333  this->upperLimit = INT_MAX;
335  // Bouml preserved body end 000E10F1
336 }
337 
339  // Bouml preserved body begin 000E1171
340  // Bouml preserved body end 000E1171
341 }
342 
343 void ActualPosition::getParameter(int& parameter) const {
344  // Bouml preserved body begin 000E11F1
345  parameter = this->value;
346  // Bouml preserved body end 000E11F1
347 }
348 
349 void ActualPosition::setParameter(const int parameter) {
350  // Bouml preserved body begin 000E1271
351  if (this->lowerLimit > parameter) {
352  throw std::out_of_range("The parameter exceeds the lower limit");
353  }
354  if (this->upperLimit < parameter) {
355  throw std::out_of_range("The parameter exceeds the upper limit");
356  }
357 
358  this->value = parameter;
359  // Bouml preserved body end 000E1271
360 }
361 
362 void ActualPosition::toString(std::string& value) const {
363  // Bouml preserved body begin 000E12F1
364  std::stringstream ss;
365  ss << this->name << ": " << this->value;
366  value = ss.str();
367  // Bouml preserved body end 000E12F1
368 }
369 
371  // Bouml preserved body begin 000E1371
372  message.stctOutput.typeNumber = 1; //ActualPosition
373  message.stctOutput.value = (uint32)(value * -1);
374 
375  // Bouml preserved body end 000E1371
376 }
377 
379  // Bouml preserved body begin 000E13F1
380  this->value = (int32)message.stctInput.value;
381  this->value = this->value * -1;
382  // Bouml preserved body end 000E13F1
383 }
384 
386  // Bouml preserved body begin 000E19F1
387  this->name = "PositionSetpoint";
388  this->lowerLimit = INT_MIN;
389  this->upperLimit = INT_MAX;
391  // Bouml preserved body end 000E19F1
392 }
393 
395  // Bouml preserved body begin 000E1A71
396  // Bouml preserved body end 000E1A71
397 }
398 
399 void PositionSetpoint::getParameter(int& parameter) const {
400  // Bouml preserved body begin 000E1AF1
401  parameter = this->value;
402  // Bouml preserved body end 000E1AF1
403 }
404 
405 void PositionSetpoint::setParameter(const int parameter) {
406  // Bouml preserved body begin 000E1B71
407  if (this->lowerLimit > parameter) {
408  throw std::out_of_range("The parameter exceeds the lower limit");
409  }
410  if (this->upperLimit < parameter) {
411  throw std::out_of_range("The parameter exceeds the upper limit");
412  }
413 
414  this->value = parameter;
415  // Bouml preserved body end 000E1B71
416 }
417 
418 void PositionSetpoint::toString(std::string& value) const {
419  // Bouml preserved body begin 000E1BF1
420  std::stringstream ss;
421  ss << this->name << ": " << this->value;
422  value = ss.str();
423  // Bouml preserved body end 000E1BF1
424 }
425 
427  // Bouml preserved body begin 000E1C71
428 
429  message.stctOutput.typeNumber = 0; //PositionSetpoint
430  message.stctOutput.value = (uint32)(value * -1);
431 
432  // Bouml preserved body end 000E1C71
433 }
434 
436  // Bouml preserved body begin 000E1CF1
437  this->value = (int)message.stctInput.value;
438  this->value = this->value * -1;
439 
440  // Bouml preserved body end 000E1CF1
441 }
442 
444  // Bouml preserved body begin 000FFE71
445  this->name = "TargetPositionReached";
447  // Bouml preserved body end 000FFE71
448 }
449 
451  // Bouml preserved body begin 000FFEF1
452  // Bouml preserved body end 000FFEF1
453 }
454 
455 void TargetPositionReached::getParameter(bool& parameter) const {
456  // Bouml preserved body begin 000FFF71
457  parameter = this->value;
458  // Bouml preserved body end 000FFF71
459 }
460 
461 void TargetPositionReached::toString(std::string& value) const {
462  // Bouml preserved body begin 00100071
463  std::stringstream ss;
464  ss << this->name << ": " << this->value;
465  value = ss.str();
466  // Bouml preserved body end 00100071
467 }
468 
470  // Bouml preserved body begin 001000F1
471  message.stctOutput.typeNumber = 8; //TargetPositionReached
472  if(value)
473  message.stctOutput.value = 1;
474  else
475  message.stctOutput.value = 0;
476  // Bouml preserved body end 001000F1
477 }
478 
480  // Bouml preserved body begin 00100171
481  this->value = message.stctInput.value;
482  // Bouml preserved body end 00100171
483 }
484 
486  // Bouml preserved body begin 000E1571
487  this->name = "ActualVelocity";
488  this->lowerLimit = INT_MIN;
489  this->upperLimit = INT_MAX;
491  // Bouml preserved body end 000E1571
492 }
493 
495  // Bouml preserved body begin 000E15F1
496  // Bouml preserved body end 000E15F1
497 }
498 
499 void ActualVelocity::getParameter(int& parameter) const {
500  // Bouml preserved body begin 000E1671
501  parameter = this->value;
502  // Bouml preserved body end 000E1671
503 }
504 
505 void ActualVelocity::setParameter(const int parameter) {
506  // Bouml preserved body begin 000E16F1
507  if (this->lowerLimit > parameter) {
508  throw std::out_of_range("The parameter exceeds the lower limit");
509  }
510  if (this->upperLimit < parameter) {
511  throw std::out_of_range("The parameter exceeds the upper limit");
512  }
513 
514  this->value = parameter;
515  // Bouml preserved body end 000E16F1
516 }
517 
518 void ActualVelocity::toString(std::string& value) const {
519  // Bouml preserved body begin 000E1771
520  std::stringstream ss;
521  ss << this->name << ": " << this->value;
522  value = ss.str();
523  // Bouml preserved body end 000E1771
524 }
525 
527  // Bouml preserved body begin 000E17F1
528 
529  message.stctOutput.typeNumber = 3; //ActualVelocity
530  message.stctOutput.value = (uint32)value;
531 
532  // Bouml preserved body end 000E17F1
533 }
534 
536  // Bouml preserved body begin 000E1871
537  this->value = (int32)message.stctInput.value;
538 
539  // Bouml preserved body end 000E1871
540 }
541 
543  // Bouml preserved body begin 000E1E71
544  this->name = "VelocitySetpoint";
545  this->lowerLimit = INT_MIN;
546  this->upperLimit = INT_MAX;
548  // Bouml preserved body end 000E1E71
549 }
550 
552  // Bouml preserved body begin 000E1EF1
553  // Bouml preserved body end 000E1EF1
554 }
555 
556 void VelocitySetpoint::getParameter(int& parameter) const {
557  // Bouml preserved body begin 000E1F71
558  parameter = this->value;
559  // Bouml preserved body end 000E1F71
560 }
561 
562 void VelocitySetpoint::setParameter(const int parameter) {
563  // Bouml preserved body begin 000E1FF1
564  if (this->lowerLimit > parameter) {
565  throw std::out_of_range("The parameter exceeds the lower limit");
566  }
567  if (this->upperLimit < parameter) {
568  throw std::out_of_range("The parameter exceeds the upper limit");
569  }
570 
571  this->value = parameter;
572  // Bouml preserved body end 000E1FF1
573 }
574 
575 void VelocitySetpoint::toString(std::string& value) const {
576  // Bouml preserved body begin 000E2071
577  std::stringstream ss;
578  ss << this->name << ": " << this->value;
579  value = ss.str();
580  // Bouml preserved body end 000E2071
581 }
582 
584  // Bouml preserved body begin 000E20F1
585  message.stctOutput.typeNumber = 2; //VelocitySetpoint
586  message.stctOutput.value = (uint32)value;
587 
588  // Bouml preserved body end 000E20F1
589 }
590 
592  // Bouml preserved body begin 000E2171
593  this->value = (int32)message.stctInput.value;
594 
595  // Bouml preserved body end 000E2171
596 }
597 
599  // Bouml preserved body begin 000BBDF1
600  this->name = "ActualLoadValue";
601  this->lowerLimit = 0;
602  this->upperLimit = 1023;
604  // Bouml preserved body end 000BBDF1
605 }
606 
608  // Bouml preserved body begin 000BBE71
609  // Bouml preserved body end 000BBE71
610 }
611 
612 void ActualLoadValue::getParameter(unsigned int& parameter) const {
613  // Bouml preserved body begin 000BBEF1
614  parameter = this->value;
615  // Bouml preserved body end 000BBEF1
616 }
617 
618 void ActualLoadValue::setParameter(const unsigned int& parameter) {
619  // Bouml preserved body begin 000BBF71
620  if (this->lowerLimit > parameter) {
621  throw std::out_of_range("The parameter exceeds the lower limit");
622  }
623  if (this->upperLimit < parameter) {
624  throw std::out_of_range("The parameter exceeds the upper limit");
625  }
626 
627  this->value = parameter;
628  // Bouml preserved body end 000BBF71
629 }
630 
631 void ActualLoadValue::toString(std::string& value) const {
632  // Bouml preserved body begin 000BBFF1
633  std::stringstream ss;
634  ss << this->name << ": " << this->value;
635  value = ss.str();
636  // Bouml preserved body end 000BBFF1
637 }
638 
640  // Bouml preserved body begin 000BC071
641 
642  message.stctOutput.typeNumber = 206; //ActualLoadValue
643  message.stctOutput.value = value;
644 
645  // Bouml preserved body end 000BC071
646 }
647 
649  // Bouml preserved body begin 000BC0F1
650  this->value = message.stctInput.value;
651  // Bouml preserved body end 000BC0F1
652 }
653 
655  // Bouml preserved body begin 000B5AF1
656  this->name = "ChopperBlankTime";
657  this->lowerLimit = 0;
658  this->upperLimit = 3;
660  // Bouml preserved body end 000B5AF1
661 }
662 
664  // Bouml preserved body begin 000B5B71
665  // Bouml preserved body end 000B5B71
666 }
667 
668 void ChopperBlankTime::getParameter(unsigned int& parameter) const {
669  // Bouml preserved body begin 000B5BF1
670  parameter = this->value;
671  // Bouml preserved body end 000B5BF1
672 }
673 
674 void ChopperBlankTime::setParameter(const unsigned int& parameter) {
675  // Bouml preserved body begin 000B5C71
676  if (this->lowerLimit > parameter) {
677  throw std::out_of_range("The parameter exceeds the lower limit");
678  }
679  if (this->upperLimit < parameter) {
680  throw std::out_of_range("The parameter exceeds the upper limit");
681  }
682 
683  this->value = parameter;
684  // Bouml preserved body end 000B5C71
685 }
686 
687 void ChopperBlankTime::toString(std::string& value) const {
688  // Bouml preserved body begin 000B5CF1
689  std::stringstream ss;
690  ss << this->name << ": " << this->value;
691  value = ss.str();
692  // Bouml preserved body end 000B5CF1
693 }
694 
696  // Bouml preserved body begin 000B5D71
697 
698  message.stctOutput.typeNumber = 162; //ChopperBlankTime
699  message.stctOutput.value = value;
700 
701  // Bouml preserved body end 000B5D71
702 }
703 
705  // Bouml preserved body begin 000B5DF1
706  this->value = message.stctInput.value;
707  // Bouml preserved body end 000B5DF1
708 }
709 
711  // Bouml preserved body begin 000B63F1
712  this->name = "ChopperHysteresisDecrement";
713  this->lowerLimit = 0;
714  this->upperLimit = 3;
716  // Bouml preserved body end 000B63F1
717 }
718 
720  // Bouml preserved body begin 000B6471
721  // Bouml preserved body end 000B6471
722 }
723 
724 void ChopperHysteresisDecrement::getParameter(unsigned int& parameter) const {
725  // Bouml preserved body begin 000B64F1
726  parameter = this->value;
727  // Bouml preserved body end 000B64F1
728 }
729 
730 void ChopperHysteresisDecrement::setParameter(const unsigned int& parameter) {
731  // Bouml preserved body begin 000B6571
732  if (this->lowerLimit > parameter) {
733  throw std::out_of_range("The parameter exceeds the lower limit");
734  }
735  if (this->upperLimit < parameter) {
736  throw std::out_of_range("The parameter exceeds the upper limit");
737  }
738 
739  this->value = parameter;
740  // Bouml preserved body end 000B6571
741 }
742 
743 void ChopperHysteresisDecrement::toString(std::string& value) const {
744  // Bouml preserved body begin 000B65F1
745  std::stringstream ss;
746  ss << this->name << ": " << this->value;
747  value = ss.str();
748  // Bouml preserved body end 000B65F1
749 }
750 
752  // Bouml preserved body begin 000B6671
753  message.stctOutput.typeNumber = 164; //ChopperHysteresisDecrement
754  message.stctOutput.value = value;
755  // Bouml preserved body end 000B6671
756 }
757 
759  // Bouml preserved body begin 000B66F1
760  this->value = message.stctInput.value;
761  // Bouml preserved body end 000B66F1
762 }
763 
765  // Bouml preserved body begin 000B6871
766  this->name = "ChopperHysteresisEnd";
767  this->lowerLimit = -3;
768  this->upperLimit = 12;
770  // Bouml preserved body end 000B6871
771 }
772 
774  // Bouml preserved body begin 000B68F1
775  // Bouml preserved body end 000B68F1
776 }
777 
778 void ChopperHysteresisEnd::getParameter(int& parameter) const {
779  // Bouml preserved body begin 000B6971
780  parameter = this->value;
781  // Bouml preserved body end 000B6971
782 }
783 
784 void ChopperHysteresisEnd::setParameter(const int parameter) {
785  // Bouml preserved body begin 000B69F1
786  if (this->lowerLimit > parameter) {
787  throw std::out_of_range("The parameter exceeds the lower limit");
788  }
789  if (this->upperLimit < parameter) {
790  throw std::out_of_range("The parameter exceeds the upper limit");
791  }
792 
793  this->value = parameter;
794  // Bouml preserved body end 000B69F1
795 }
796 
797 void ChopperHysteresisEnd::toString(std::string& value) const {
798  // Bouml preserved body begin 000B6A71
799  std::stringstream ss;
800  ss << this->name << ": " << this->value;
801  value = ss.str();
802  // Bouml preserved body end 000B6A71
803 }
804 
806  // Bouml preserved body begin 000B6AF1
807  message.stctOutput.typeNumber = 165; //ChopperHysteresisEnd
808  message.stctOutput.value = value;
809  // Bouml preserved body end 000B6AF1
810 }
811 
813  // Bouml preserved body begin 000B6B71
814  this->value = (int32)message.stctInput.value;
815  // Bouml preserved body end 000B6B71
816 }
817 
819  // Bouml preserved body begin 00107271
820  this->name = "ChopperHysteresisStart";
821  this->lowerLimit = 0;
822  this->upperLimit = 8;
824  // Bouml preserved body end 00107271
825 }
826 
828  // Bouml preserved body begin 001072F1
829  // Bouml preserved body end 001072F1
830 }
831 
832 void ChopperHysteresisStart::getParameter(int& parameter) const {
833  // Bouml preserved body begin 00107371
834  parameter = this->value;
835  // Bouml preserved body end 00107371
836 }
837 
838 void ChopperHysteresisStart::setParameter(const int parameter) {
839  // Bouml preserved body begin 001073F1
840  if (this->lowerLimit > parameter) {
841  throw std::out_of_range("The parameter exceeds the lower limit");
842  }
843  if (this->upperLimit < parameter) {
844  throw std::out_of_range("The parameter exceeds the upper limit");
845  }
846 
847  this->value = parameter;
848  // Bouml preserved body end 001073F1
849 }
850 
851 void ChopperHysteresisStart::toString(std::string& value) const {
852  // Bouml preserved body begin 00107471
853  std::stringstream ss;
854  ss << this->name << ": " << this->value;
855  value = ss.str();
856  // Bouml preserved body end 00107471
857 }
858 
860  // Bouml preserved body begin 001074F1
861  message.stctOutput.typeNumber = 166; //ChopperHysteresisStart
862  message.stctOutput.value = value;
863  // Bouml preserved body end 001074F1
864 }
865 
867  // Bouml preserved body begin 00107571
868  this->value = (int32)message.stctInput.value;
869  // Bouml preserved body end 00107571
870 }
871 
873  // Bouml preserved body begin 000B5F71
874  this->name = "ChopperMode";
876  // Bouml preserved body end 000B5F71
877 }
878 
880  // Bouml preserved body begin 000B5FF1
881  // Bouml preserved body end 000B5FF1
882 }
883 
884 void ChopperMode::getParameter(bool& parameter) const {
885  // Bouml preserved body begin 000B6071
886  parameter = this->value;
887  // Bouml preserved body end 000B6071
888 }
889 
890 void ChopperMode::setParameter(const bool parameter) {
891  // Bouml preserved body begin 000B60F1
892 
893  this->value = parameter;
894  // Bouml preserved body end 000B60F1
895 }
896 
897 void ChopperMode::toString(std::string& value) const {
898  // Bouml preserved body begin 000B6171
899  std::stringstream ss;
900  ss << this->name << ": " << this->value;
901  value = ss.str();
902  // Bouml preserved body end 000B6171
903 }
904 
906  // Bouml preserved body begin 000B61F1
907  message.stctOutput.typeNumber = 163; //ChopperMode
908  message.stctOutput.value = value;
909  // Bouml preserved body end 000B61F1
910 }
911 
913  // Bouml preserved body begin 000B6271
914  this->value = message.stctInput.value;
915  // Bouml preserved body end 000B6271
916 }
917 
919  // Bouml preserved body begin 000B6CF1
920  this->name = "ChopperOffTime";
921  this->lowerLimit = 0;
922  this->upperLimit = 15;
924  // Bouml preserved body end 000B6CF1
925 }
926 
928  // Bouml preserved body begin 000B6D71
929  // Bouml preserved body end 000B6D71
930 }
931 
932 void ChopperOffTime::getParameter(unsigned int& parameter) const {
933  // Bouml preserved body begin 000B6DF1
934  parameter = this->value;
935  // Bouml preserved body end 000B6DF1
936 }
937 
938 void ChopperOffTime::setParameter(const unsigned int& parameter) {
939  // Bouml preserved body begin 000B6E71
940  if (this->lowerLimit > parameter) {
941  throw std::out_of_range("The parameter exceeds the lower limit");
942  }
943  if (parameter == 1) {
944  throw std::out_of_range("One is not allowed for this parameter");
945  }
946  if (this->upperLimit < parameter) {
947  throw std::out_of_range("The parameter exceeds the upper limit");
948  }
949 
950  this->value = parameter;
951  // Bouml preserved body end 000B6E71
952 }
953 
954 void ChopperOffTime::toString(std::string& value) const {
955  // Bouml preserved body begin 000B6EF1
956  std::stringstream ss;
957  ss << this->name << ": " << this->value;
958  value = ss.str();
959  // Bouml preserved body end 000B6EF1
960 }
961 
963  // Bouml preserved body begin 000B6F71
964  message.stctOutput.typeNumber = 167; //ChopperOffTime
965  message.stctOutput.value = value;
966  // Bouml preserved body end 000B6F71
967 }
968 
970  // Bouml preserved body begin 000B6FF1
971  this->value = message.stctInput.value;
972  // Bouml preserved body end 000B6FF1
973 }
974 
976  // Bouml preserved body begin 000B5671
977  this->name = "DoubleStepEnable";
979  // Bouml preserved body end 000B5671
980 }
981 
983  // Bouml preserved body begin 000B56F1
984  // Bouml preserved body end 000B56F1
985 }
986 
987 void DoubleStepEnable::getParameter(bool& parameter) const {
988  // Bouml preserved body begin 000B5771
989  parameter = this->value;
990  // Bouml preserved body end 000B5771
991 }
992 
993 void DoubleStepEnable::setParameter(const bool parameter) {
994  // Bouml preserved body begin 000B57F1
995  this->value = parameter;
996  // Bouml preserved body end 000B57F1
997 }
998 
999 void DoubleStepEnable::toString(std::string& value) const {
1000  // Bouml preserved body begin 000B5871
1001  std::stringstream ss;
1002  ss << this->name << ": " << this->value;
1003  value = ss.str();
1004  // Bouml preserved body end 000B5871
1005 }
1006 
1008  // Bouml preserved body begin 000B58F1
1009  message.stctOutput.typeNumber = 161; //DoubleStepEnable
1010  message.stctOutput.value = value;
1011  // Bouml preserved body end 000B58F1
1012 }
1013 
1015  // Bouml preserved body begin 000B5971
1016  this->value = message.stctInput.value;
1017 
1018  // Bouml preserved body end 000B5971
1019 }
1020 
1022  // Bouml preserved body begin 000BC271
1023  this->name = "ErrorFlags";
1025  // Bouml preserved body end 000BC271
1026 }
1027 
1029  // Bouml preserved body begin 000BC2F1
1030  // Bouml preserved body end 000BC2F1
1031 }
1032 
1033 void ErrorFlags::getParameter(unsigned int& parameter) const {
1034  // Bouml preserved body begin 000BC371
1035  parameter = this->value;
1036  // Bouml preserved body end 000BC371
1037 }
1038 
1039 void ErrorFlags::setParameter(const unsigned int& parameter) {
1040  // Bouml preserved body begin 000BC3F1
1041 
1042  this->value = parameter;
1043  // Bouml preserved body end 000BC3F1
1044 }
1045 
1046 void ErrorFlags::toString(std::string& value) const {
1047  // Bouml preserved body begin 000BC471
1048  std::stringstream ss;
1049  ss << this->name << ": " << this->value;
1050  value = ss.str();
1051  // Bouml preserved body end 000BC471
1052 }
1053 
1055  // Bouml preserved body begin 000BC4F1
1056  message.stctOutput.typeNumber = 208; //ErrorFlags
1057  message.stctOutput.value = value;
1058  // Bouml preserved body end 000BC4F1
1059 }
1060 
1062  // Bouml preserved body begin 000BC571
1063  this->value = message.stctInput.value;
1064 
1065  // Bouml preserved body end 000BC571
1066 }
1067 
1069  // Bouml preserved body begin 000BB971
1070  this->name = "Freewheeling";
1071  this->lowerLimit = 0;
1072  this->upperLimit = 65535;
1074  // Bouml preserved body end 000BB971
1075 }
1076 
1078  // Bouml preserved body begin 000BB9F1
1079  // Bouml preserved body end 000BB9F1
1080 }
1081 
1082 void Freewheeling::getParameter(unsigned int& parameter) const {
1083  // Bouml preserved body begin 000BBA71
1084  parameter = this->value;
1085  // Bouml preserved body end 000BBA71
1086 }
1087 
1088 void Freewheeling::setParameter(const unsigned int& parameter) {
1089  // Bouml preserved body begin 000BBAF1
1090  if (this->lowerLimit > parameter) {
1091  throw std::out_of_range("The parameter exceeds the lower limit");
1092  }
1093  if (this->upperLimit < parameter) {
1094  throw std::out_of_range("The parameter exceeds the upper limit");
1095  }
1096 
1097  this->value = parameter;
1098  // Bouml preserved body end 000BBAF1
1099 }
1100 
1101 void Freewheeling::toString(std::string& value) const {
1102  // Bouml preserved body begin 000BBB71
1103  std::stringstream ss;
1104  ss << this->name << ": " << this->value;
1105  value = ss.str();
1106  // Bouml preserved body end 000BBB71
1107 }
1108 
1110  // Bouml preserved body begin 000BBBF1
1111  message.stctOutput.typeNumber = 204; //Freewheeling
1112  message.stctOutput.value = value;
1113  // Bouml preserved body end 000BBBF1
1114 }
1115 
1117  // Bouml preserved body begin 000BBC71
1118  this->value = message.stctInput.value;
1119 
1120  // Bouml preserved body end 000BBC71
1121 }
1122 
1124  // Bouml preserved body begin 000B3271
1125  this->name = "MaximumAcceleration";
1126  this->lowerLimit = 0;
1127  this->upperLimit = 2047;
1129  // Bouml preserved body end 000B3271
1130 }
1131 
1133  // Bouml preserved body begin 000B32F1
1134  // Bouml preserved body end 000B32F1
1135 }
1136 
1137 void MaximumAcceleration::getParameter(int& parameter) const {
1138  // Bouml preserved body begin 000B3371
1139  parameter = this->value;
1140  // Bouml preserved body end 000B3371
1141 }
1142 
1143 void MaximumAcceleration::setParameter(const int parameter) {
1144  // Bouml preserved body begin 000B33F1
1145  if (this->lowerLimit > parameter) {
1146  throw std::out_of_range("The parameter exceeds the lower limit");
1147  }
1148  if (this->upperLimit < parameter) {
1149  throw std::out_of_range("The parameter exceeds the upper limit");
1150  }
1151 
1152  this->value = parameter;
1153  // Bouml preserved body end 000B33F1
1154 }
1155 
1156 void MaximumAcceleration::toString(std::string& value) const {
1157  // Bouml preserved body begin 000B3471
1158  std::stringstream ss;
1159  ss << this->name << ": " << this->value;
1160  value = ss.str();
1161  // Bouml preserved body end 000B3471
1162 }
1163 
1165  // Bouml preserved body begin 000B34F1
1166  message.stctOutput.typeNumber = 5; //MaximumAcceleration
1167  message.stctOutput.value = value;
1168  // Bouml preserved body end 000B34F1
1169 }
1170 
1172  // Bouml preserved body begin 000B3571
1173  this->value = message.stctInput.value;
1174  // Bouml preserved body end 000B3571
1175 }
1176 
1178  // Bouml preserved body begin 000B36F1
1179  this->name = "MaximumCurrent";
1180  this->lowerLimit = 0;
1181  this->upperLimit = 255;
1183  // Bouml preserved body end 000B36F1
1184 }
1185 
1187  // Bouml preserved body begin 000B3771
1188  // Bouml preserved body end 000B3771
1189 }
1190 
1191 void MaximumCurrent::getParameter(int& parameter) const {
1192  // Bouml preserved body begin 000B37F1
1193  parameter = this->value;
1194  // Bouml preserved body end 000B37F1
1195 }
1196 
1197 void MaximumCurrent::setParameter(const int parameter) {
1198  // Bouml preserved body begin 000B3871
1199  if (this->lowerLimit > parameter) {
1200  throw std::out_of_range("The parameter exceeds the lower limit");
1201  }
1202  if (this->upperLimit < parameter) {
1203  throw std::out_of_range("The parameter exceeds the upper limit");
1204  }
1205 
1206  this->value = parameter;
1207  // Bouml preserved body end 000B3871
1208 }
1209 
1210 void MaximumCurrent::toString(std::string& value) const {
1211  // Bouml preserved body begin 000B38F1
1212  std::stringstream ss;
1213  ss << this->name << ": " << this->value;
1214  value = ss.str();
1215  // Bouml preserved body end 000B38F1
1216 }
1217 
1219  // Bouml preserved body begin 000B3971
1220  message.stctOutput.typeNumber = 6; //MaximumCurrent
1221  message.stctOutput.value = value;
1222  // Bouml preserved body end 000B3971
1223 }
1224 
1226  // Bouml preserved body begin 000B39F1
1227  this->value = message.stctInput.value;
1228  // Bouml preserved body end 000B39F1
1229 }
1230 
1232  // Bouml preserved body begin 000B2DF1
1233  this->name = "MaximumPositioningSpeed";
1234  this->lowerLimit = 0;
1235  this->upperLimit = 2047;
1237  // Bouml preserved body end 000B2DF1
1238 }
1239 
1241  // Bouml preserved body begin 000B2E71
1242  // Bouml preserved body end 000B2E71
1243 }
1244 
1245 void MaximumPositioningSpeed::getParameter(int& parameter) const {
1246  // Bouml preserved body begin 000B2EF1
1247  parameter = this->value;
1248  // Bouml preserved body end 000B2EF1
1249 }
1250 
1251 void MaximumPositioningSpeed::setParameter(const int parameter) {
1252  // Bouml preserved body begin 000B2F71
1253  if (this->lowerLimit > parameter) {
1254  throw std::out_of_range("The parameter exceeds the lower limit");
1255  }
1256  if (this->upperLimit < parameter) {
1257  throw std::out_of_range("The parameter exceeds the upper limit");
1258  }
1259 
1260  this->value = parameter;
1261  // Bouml preserved body end 000B2F71
1262 }
1263 
1264 void MaximumPositioningSpeed::toString(std::string& value) const {
1265  // Bouml preserved body begin 000B2FF1
1266  std::stringstream ss;
1267  ss << this->name << ": " << this->value;
1268  value = ss.str();
1269  // Bouml preserved body end 000B2FF1
1270 }
1271 
1273  // Bouml preserved body begin 000B3071
1274  message.stctOutput.typeNumber = 4; //MaximumPositioningSpeed
1275  message.stctOutput.value = value;
1276  // Bouml preserved body end 000B3071
1277 }
1278 
1280  // Bouml preserved body begin 000B30F1
1281  this->value = message.stctInput.value;
1282  // Bouml preserved body end 000B30F1
1283 }
1284 
1286  // Bouml preserved body begin 000B4471
1287  this->name = "MicrostepResolution";
1288  this->lowerLimit = 0;
1289  this->upperLimit = 8;
1291  // Bouml preserved body end 000B4471
1292 }
1293 
1295  // Bouml preserved body begin 000B44F1
1296  // Bouml preserved body end 000B44F1
1297 }
1298 
1299 void MicrostepResolution::getParameter(unsigned int& parameter) const {
1300  // Bouml preserved body begin 000B4571
1301  parameter = this->value;
1302  // Bouml preserved body end 000B4571
1303 }
1304 
1305 void MicrostepResolution::setParameter(const unsigned int& parameter) {
1306  // Bouml preserved body begin 000B45F1
1307  if (this->lowerLimit > parameter) {
1308  throw std::out_of_range("The parameter exceeds the lower limit");
1309  }
1310  if (this->upperLimit < parameter) {
1311  throw std::out_of_range("The parameter exceeds the upper limit");
1312  }
1313 
1314  this->value = parameter;
1315  // Bouml preserved body end 000B45F1
1316 }
1317 
1318 void MicrostepResolution::toString(std::string& value) const {
1319  // Bouml preserved body begin 000B4671
1320  std::stringstream ss;
1321  ss << this->name << ": " << this->value;
1322  value = ss.str();
1323  // Bouml preserved body end 000B4671
1324 }
1325 
1327  // Bouml preserved body begin 000B46F1
1328  message.stctOutput.typeNumber = 140; //MicrostepResolution
1329  message.stctOutput.value = value;
1330  // Bouml preserved body end 000B46F1
1331 }
1332 
1334  // Bouml preserved body begin 000B4771
1335  this->value = message.stctInput.value;
1336 
1337  // Bouml preserved body end 000B4771
1338 }
1339 
1341  // Bouml preserved body begin 000BC6F1
1342  this->name = "PowerDownDelay";
1343  this->lowerLimit = 1;
1344  this->upperLimit = 65535;
1346  // Bouml preserved body end 000BC6F1
1347 }
1348 
1350  // Bouml preserved body begin 000BC771
1351  // Bouml preserved body end 000BC771
1352 }
1353 
1354 void PowerDownDelay::getParameter(unsigned int& parameter) const {
1355  // Bouml preserved body begin 000BC7F1
1356  parameter = this->value;
1357  // Bouml preserved body end 000BC7F1
1358 }
1359 
1360 void PowerDownDelay::setParameter(const unsigned int& parameter) {
1361  // Bouml preserved body begin 000BC871
1362  if (this->lowerLimit > parameter) {
1363  throw std::out_of_range("The parameter exceeds the lower limit");
1364  }
1365  if (this->upperLimit < parameter) {
1366  throw std::out_of_range("The parameter exceeds the upper limit");
1367  }
1368 
1369  this->value = parameter;
1370  // Bouml preserved body end 000BC871
1371 }
1372 
1373 void PowerDownDelay::toString(std::string& value) const {
1374  // Bouml preserved body begin 000BC8F1
1375  std::stringstream ss;
1376  ss << this->name << ": " << this->value;
1377  value = ss.str();
1378  // Bouml preserved body end 000BC8F1
1379 }
1380 
1382  // Bouml preserved body begin 000BC971
1383  message.stctOutput.typeNumber = 214; //PowerDownDelay
1384  message.stctOutput.value = value;
1385  // Bouml preserved body end 000BC971
1386 }
1387 
1389  // Bouml preserved body begin 000BC9F1
1390  this->value = message.stctInput.value;
1391  // Bouml preserved body end 000BC9F1
1392 }
1393 
1395  // Bouml preserved body begin 000B4D71
1396  this->name = "PulseDivisor";
1397  this->lowerLimit = 0;
1398  this->upperLimit = 13;
1400  // Bouml preserved body end 000B4D71
1401 }
1402 
1404  // Bouml preserved body begin 000B4DF1
1405  // Bouml preserved body end 000B4DF1
1406 }
1407 
1408 void PulseDivisor::getParameter(unsigned int& parameter) const {
1409  // Bouml preserved body begin 000B4E71
1410  parameter = this->value;
1411  // Bouml preserved body end 000B4E71
1412 }
1413 
1414 void PulseDivisor::setParameter(const unsigned int& parameter) {
1415  // Bouml preserved body begin 000B4EF1
1416  if (this->lowerLimit > parameter) {
1417  throw std::out_of_range("The parameter exceeds the lower limit");
1418  }
1419  if (this->upperLimit < parameter) {
1420  throw std::out_of_range("The parameter exceeds the upper limit");
1421  }
1422 
1423  this->value = parameter;
1424  // Bouml preserved body end 000B4EF1
1425 }
1426 
1427 void PulseDivisor::toString(std::string& value) const {
1428  // Bouml preserved body begin 000B4F71
1429  std::stringstream ss;
1430  ss << this->name << ": " << this->value;
1431  value = ss.str();
1432  // Bouml preserved body end 000B4F71
1433 }
1434 
1436  // Bouml preserved body begin 000B4FF1
1437  message.stctOutput.typeNumber = 154; //PulseDivisor
1438  message.stctOutput.value = value;
1439  // Bouml preserved body end 000B4FF1
1440 }
1441 
1443  // Bouml preserved body begin 000B5071
1444  this->value = message.stctInput.value;
1445  // Bouml preserved body end 000B5071
1446 }
1447 
1449  // Bouml preserved body begin 000B48F1
1450  this->name = "RampDivisor";
1451  this->lowerLimit = 0;
1452  this->upperLimit = 13;
1454  // Bouml preserved body end 000B48F1
1455 }
1456 
1458  // Bouml preserved body begin 000B4971
1459  // Bouml preserved body end 000B4971
1460 }
1461 
1462 void RampDivisor::getParameter(unsigned int& parameter) const {
1463  // Bouml preserved body begin 000B49F1
1464  parameter = this->value;
1465  // Bouml preserved body end 000B49F1
1466 }
1467 
1468 void RampDivisor::setParameter(const unsigned int& parameter) {
1469  // Bouml preserved body begin 000B4A71
1470  if (this->lowerLimit > parameter) {
1471  throw std::out_of_range("The parameter exceeds the lower limit");
1472  }
1473  if (this->upperLimit < parameter) {
1474  throw std::out_of_range("The parameter exceeds the upper limit");
1475  }
1476 
1477  this->value = parameter;
1478  // Bouml preserved body end 000B4A71
1479 }
1480 
1481 void RampDivisor::toString(std::string& value) const {
1482  // Bouml preserved body begin 000B4AF1
1483  std::stringstream ss;
1484  ss << this->name << ": " << this->value;
1485  value = ss.str();
1486  // Bouml preserved body end 000B4AF1
1487 }
1488 
1490  // Bouml preserved body begin 000B4B71
1491  message.stctOutput.typeNumber = 153; //RampDivisor
1492  message.stctOutput.value = value;
1493  // Bouml preserved body end 000B4B71
1494 }
1495 
1497  // Bouml preserved body begin 000B4BF1
1498  this->value = message.stctInput.value;
1499  // Bouml preserved body end 000B4BF1
1500 }
1501 
1503  // Bouml preserved body begin 000B3FF1
1504  this->name = "RampMode";
1505  this->lowerLimit = 0;
1506  this->upperLimit = 2;
1508  // Bouml preserved body end 000B3FF1
1509 }
1510 
1512  // Bouml preserved body begin 000B4071
1513  // Bouml preserved body end 000B4071
1514 }
1515 
1516 void RampMode::getParameter(unsigned int& parameter) const {
1517  // Bouml preserved body begin 000B40F1
1518  parameter = this->value;
1519  // Bouml preserved body end 000B40F1
1520 }
1521 
1522 void RampMode::setParameter(const unsigned int& parameter) {
1523  // Bouml preserved body begin 000B4171
1524  if (this->lowerLimit > parameter) {
1525  throw std::out_of_range("The parameter exceeds the lower limit");
1526  }
1527  if (this->upperLimit < parameter) {
1528  throw std::out_of_range("The parameter exceeds the upper limit");
1529  }
1530 
1531  this->value = parameter;
1532  // Bouml preserved body end 000B4171
1533 }
1534 
1535 void RampMode::toString(std::string& value) const {
1536  // Bouml preserved body begin 000B41F1
1537  std::stringstream ss;
1538  ss << this->name << ": " << this->value;
1539  value = ss.str();
1540  // Bouml preserved body end 000B41F1
1541 }
1542 
1544  // Bouml preserved body begin 000B4271
1545  message.stctOutput.typeNumber = 138; //RampMode
1546  message.stctOutput.value = value;
1547  // Bouml preserved body end 000B4271
1548 }
1549 
1551  // Bouml preserved body begin 000B42F1
1552  this->value = message.stctInput.value;
1553  // Bouml preserved body end 000B42F1
1554 }
1555 
1557  // Bouml preserved body begin 000B9E71
1558  this->name = "ShortDetectionTimer";
1559  this->lowerLimit = 0;
1560  this->upperLimit = 3;
1562  // Bouml preserved body end 000B9E71
1563 }
1564 
1566  // Bouml preserved body begin 000B9EF1
1567  // Bouml preserved body end 000B9EF1
1568 }
1569 
1570 void ShortDetectionTimer::getParameter(unsigned int& parameter) const {
1571  // Bouml preserved body begin 000B9F71
1572  parameter = this->value;
1573  // Bouml preserved body end 000B9F71
1574 }
1575 
1576 void ShortDetectionTimer::setParameter(const unsigned int& parameter) {
1577  // Bouml preserved body begin 000B9FF1
1578  if (this->lowerLimit > parameter) {
1579  throw std::out_of_range("The parameter exceeds the lower limit");
1580  }
1581  if (this->upperLimit < parameter) {
1582  throw std::out_of_range("The parameter exceeds the upper limit");
1583  }
1584 
1585  this->value = parameter;
1586  // Bouml preserved body end 000B9FF1
1587 }
1588 
1589 void ShortDetectionTimer::toString(std::string& value) const {
1590  // Bouml preserved body begin 000BA071
1591  std::stringstream ss;
1592  ss << this->name << ": " << this->value;
1593  value = ss.str();
1594  // Bouml preserved body end 000BA071
1595 }
1596 
1598  // Bouml preserved body begin 000BA0F1
1599  message.stctOutput.typeNumber = 178; //ShortDetectionTimer
1600  message.stctOutput.value = value;
1601  // Bouml preserved body end 000BA0F1
1602 }
1603 
1605  // Bouml preserved body begin 000BA171
1606  this->value = message.stctInput.value;
1607  // Bouml preserved body end 000BA171
1608 }
1609 
1611  // Bouml preserved body begin 000B99F1
1612  this->name = "ShortProtectionDisable";
1614  // Bouml preserved body end 000B99F1
1615 }
1616 
1618  // Bouml preserved body begin 000B9A71
1619  // Bouml preserved body end 000B9A71
1620 }
1621 
1622 void ShortProtectionDisable::getParameter(bool& parameter) const {
1623  // Bouml preserved body begin 000B9AF1
1624  parameter = this->value;
1625  // Bouml preserved body end 000B9AF1
1626 }
1627 
1628 void ShortProtectionDisable::setParameter(const bool parameter) {
1629  // Bouml preserved body begin 000B9B71
1630  this->value = parameter;
1631  // Bouml preserved body end 000B9B71
1632 }
1633 
1634 void ShortProtectionDisable::toString(std::string& value) const {
1635  // Bouml preserved body begin 000B9BF1
1636  std::stringstream ss;
1637  ss << this->name << ": " << this->value;
1638  value = ss.str();
1639  // Bouml preserved body end 000B9BF1
1640 }
1641 
1643  // Bouml preserved body begin 000B9C71
1644  message.stctOutput.typeNumber = 177; //ShortProtectionDisable
1645  message.stctOutput.value = value;
1646  // Bouml preserved body end 000B9C71
1647 }
1648 
1650  // Bouml preserved body begin 000B9CF1
1651  this->value = message.stctInput.value;
1652  // Bouml preserved body end 000B9CF1
1653 }
1654 
1656  // Bouml preserved body begin 000B90F1
1657  this->name = "SlopeControlHighSide";
1658  this->lowerLimit = 0;
1659  this->upperLimit = 3;
1661  // Bouml preserved body end 000B90F1
1662 }
1663 
1665  // Bouml preserved body begin 000B9171
1666  // Bouml preserved body end 000B9171
1667 }
1668 
1669 void SlopeControlHighSide::getParameter(unsigned int& parameter) const {
1670  // Bouml preserved body begin 000B91F1
1671  parameter = this->value;
1672  // Bouml preserved body end 000B91F1
1673 }
1674 
1675 void SlopeControlHighSide::setParameter(const unsigned int& parameter) {
1676  // Bouml preserved body begin 000B9271
1677  if (this->lowerLimit > parameter) {
1678  throw std::out_of_range("The parameter exceeds the lower limit");
1679  }
1680  if (this->upperLimit < parameter) {
1681  throw std::out_of_range("The parameter exceeds the upper limit");
1682  }
1683 
1684  this->value = parameter;
1685  // Bouml preserved body end 000B9271
1686 }
1687 
1688 void SlopeControlHighSide::toString(std::string& value) const {
1689  // Bouml preserved body begin 000B92F1
1690  std::stringstream ss;
1691  ss << this->name << ": " << this->value;
1692  value = ss.str();
1693  // Bouml preserved body end 000B92F1
1694 }
1695 
1697  // Bouml preserved body begin 000B9371
1698  message.stctOutput.typeNumber = 175; //SlopeControlHighSide
1699  message.stctOutput.value = value;
1700  // Bouml preserved body end 000B9371
1701 }
1702 
1704  // Bouml preserved body begin 000B93F1
1705  this->value = message.stctInput.value;
1706  // Bouml preserved body end 000B93F1
1707 }
1708 
1710  // Bouml preserved body begin 000B9571
1711  this->name = "SlopeControlLowSide";
1712  this->lowerLimit = 0;
1713  this->upperLimit = 3;
1715  // Bouml preserved body end 000B9571
1716 }
1717 
1719  // Bouml preserved body begin 000B95F1
1720  // Bouml preserved body end 000B95F1
1721 }
1722 
1723 void SlopeControlLowSide::getParameter(unsigned int& parameter) const {
1724  // Bouml preserved body begin 000B9671
1725  parameter = this->value;
1726  // Bouml preserved body end 000B9671
1727 }
1728 
1729 void SlopeControlLowSide::setParameter(const unsigned int& parameter) {
1730  // Bouml preserved body begin 000B96F1
1731  if (this->lowerLimit > parameter) {
1732  throw std::out_of_range("The parameter exceeds the lower limit");
1733  }
1734  if (this->upperLimit < parameter) {
1735  throw std::out_of_range("The parameter exceeds the upper limit");
1736  }
1737 
1738  this->value = parameter;
1739  // Bouml preserved body end 000B96F1
1740 }
1741 
1742 void SlopeControlLowSide::toString(std::string& value) const {
1743  // Bouml preserved body begin 000B9771
1744  std::stringstream ss;
1745  ss << this->name << ": " << this->value;
1746  value = ss.str();
1747  // Bouml preserved body end 000B9771
1748 }
1749 
1751  // Bouml preserved body begin 000B97F1
1752  message.stctOutput.typeNumber = 176; //SlopeControlLowSide
1753  message.stctOutput.value = value;
1754  // Bouml preserved body end 000B97F1
1755 }
1756 
1758  // Bouml preserved body begin 000B9871
1759  this->value = message.stctInput.value;
1760  // Bouml preserved body end 000B9871
1761 }
1762 
1764  // Bouml preserved body begin 000BA771
1765  this->name = "SmartEnergyActualCurrent";
1766  this->lowerLimit = 0;
1767  this->upperLimit = 31;
1769  // Bouml preserved body end 000BA771
1770 }
1771 
1773  // Bouml preserved body begin 000BA7F1
1774  // Bouml preserved body end 000BA7F1
1775 }
1776 
1777 void SmartEnergyActualCurrent::getParameter(unsigned int& parameter) const {
1778  // Bouml preserved body begin 000BA871
1779  parameter = this->value;
1780  // Bouml preserved body end 000BA871
1781 }
1782 
1783 void SmartEnergyActualCurrent::setParameter(const unsigned int& parameter) {
1784  // Bouml preserved body begin 000BA8F1
1785  if (this->lowerLimit > parameter) {
1786  throw std::out_of_range("The parameter exceeds the lower limit");
1787  }
1788  if (this->upperLimit < parameter) {
1789  throw std::out_of_range("The parameter exceeds the upper limit");
1790  }
1791 
1792  this->value = parameter;
1793  // Bouml preserved body end 000BA8F1
1794 }
1795 
1796 void SmartEnergyActualCurrent::toString(std::string& value) const {
1797  // Bouml preserved body begin 000BA971
1798  std::stringstream ss;
1799  ss << this->name << ": " << this->value;
1800  value = ss.str();
1801  // Bouml preserved body end 000BA971
1802 }
1803 
1805  // Bouml preserved body begin 000BA9F1
1806  message.stctOutput.typeNumber = 180; //SmartEnergyActualCurrent
1807  message.stctOutput.value = value;
1808  // Bouml preserved body end 000BA9F1
1809 }
1810 
1812  // Bouml preserved body begin 000BAA71
1813  this->value = message.stctInput.value;
1814  // Bouml preserved body end 000BAA71
1815 }
1816 
1818  // Bouml preserved body begin 000B75F1
1819  this->name = "SmartEnergyCurrentDownStep";
1820  this->lowerLimit = 0;
1821  this->upperLimit = 3;
1823  // Bouml preserved body end 000B75F1
1824 }
1825 
1827  // Bouml preserved body begin 000B7671
1828  // Bouml preserved body end 000B7671
1829 }
1830 
1831 void SmartEnergyCurrentDownStep::getParameter(unsigned int& parameter) const {
1832  // Bouml preserved body begin 000B76F1
1833  parameter = this->value;
1834  // Bouml preserved body end 000B76F1
1835 }
1836 
1837 void SmartEnergyCurrentDownStep::setParameter(const unsigned int& parameter) {
1838  // Bouml preserved body begin 000B7771
1839  if (this->lowerLimit > parameter) {
1840  throw std::out_of_range("The parameter exceeds the lower limit");
1841  }
1842  if (this->upperLimit < parameter) {
1843  throw std::out_of_range("The parameter exceeds the upper limit");
1844  }
1845 
1846  this->value = parameter;
1847  // Bouml preserved body end 000B7771
1848 }
1849 
1850 void SmartEnergyCurrentDownStep::toString(std::string& value) const {
1851  // Bouml preserved body begin 000B77F1
1852  std::stringstream ss;
1853  ss << this->name << ": " << this->value;
1854  value = ss.str();
1855  // Bouml preserved body end 000B77F1
1856 }
1857 
1859  // Bouml preserved body begin 000B7871
1860  message.stctOutput.typeNumber = 169; //SmartEnergyCurrentDownStep
1861  message.stctOutput.value = value;
1862  // Bouml preserved body end 000B7871
1863 }
1864 
1866  // Bouml preserved body begin 000B78F1
1867  this->value = message.stctInput.value;
1868  // Bouml preserved body end 000B78F1
1869 }
1870 
1872  // Bouml preserved body begin 000B7171
1873  this->name = "SmartEnergyCurrentMinimum";
1874  this->lowerLimit = 0;
1875  this->upperLimit = 1;
1877  // Bouml preserved body end 000B7171
1878 }
1879 
1881  // Bouml preserved body begin 000B71F1
1882  // Bouml preserved body end 000B71F1
1883 }
1884 
1885 void SmartEnergyCurrentMinimum::getParameter(unsigned int& parameter) const {
1886  // Bouml preserved body begin 000B7271
1887  parameter = this->value;
1888  // Bouml preserved body end 000B7271
1889 }
1890 
1891 void SmartEnergyCurrentMinimum::setParameter(const unsigned int& parameter) {
1892  // Bouml preserved body begin 000B72F1
1893  if (this->lowerLimit > parameter) {
1894  throw std::out_of_range("The parameter exceeds the lower limit");
1895  }
1896  if (this->upperLimit < parameter) {
1897  throw std::out_of_range("The parameter exceeds the upper limit");
1898  }
1899 
1900  this->value = parameter;
1901  // Bouml preserved body end 000B72F1
1902 }
1903 
1904 void SmartEnergyCurrentMinimum::toString(std::string& value) const {
1905  // Bouml preserved body begin 000B7371
1906  std::stringstream ss;
1907  ss << this->name << ": " << this->value;
1908  value = ss.str();
1909  // Bouml preserved body end 000B7371
1910 }
1911 
1913  // Bouml preserved body begin 000B73F1
1914  message.stctOutput.typeNumber = 168; //SmartEnergyCurrentMinimum
1915  message.stctOutput.value = value;
1916  // Bouml preserved body end 000B73F1
1917 }
1918 
1920  // Bouml preserved body begin 000B7471
1921  this->value = message.stctInput.value;
1922  // Bouml preserved body end 000B7471
1923 }
1924 
1926  // Bouml preserved body begin 000B7EF1
1927  this->name = "SmartEnergyCurrentUpStep";
1928  this->lowerLimit = 1;
1929  this->upperLimit = 3;
1931  // Bouml preserved body end 000B7EF1
1932 }
1933 
1935  // Bouml preserved body begin 000B7F71
1936  // Bouml preserved body end 000B7F71
1937 }
1938 
1939 void SmartEnergyCurrentUpStep::getParameter(unsigned int& parameter) const {
1940  // Bouml preserved body begin 000B7FF1
1941  parameter = this->value;
1942  // Bouml preserved body end 000B7FF1
1943 }
1944 
1945 void SmartEnergyCurrentUpStep::setParameter(const unsigned int& parameter) {
1946  // Bouml preserved body begin 000B8071
1947  if (this->lowerLimit > parameter) {
1948  throw std::out_of_range("The parameter exceeds the lower limit");
1949  }
1950  if (this->upperLimit < parameter) {
1951  throw std::out_of_range("The parameter exceeds the upper limit");
1952  }
1953 
1954  this->value = parameter;
1955  // Bouml preserved body end 000B8071
1956 }
1957 
1958 void SmartEnergyCurrentUpStep::toString(std::string& value) const {
1959  // Bouml preserved body begin 000B80F1
1960  std::stringstream ss;
1961  ss << this->name << ": " << this->value;
1962  value = ss.str();
1963  // Bouml preserved body end 000B80F1
1964 }
1965 
1967  // Bouml preserved body begin 000B8171
1968  message.stctOutput.typeNumber = 171; //SmartEnergyCurrentUpStep
1969  message.stctOutput.value = value;
1970  // Bouml preserved body end 000B8171
1971 }
1972 
1974  // Bouml preserved body begin 000B81F1
1975  this->value = message.stctInput.value;
1976  // Bouml preserved body end 000B81F1
1977 }
1978 
1980  // Bouml preserved body begin 000B7A71
1981  this->name = "SmartEnergyHysteresis";
1982  this->lowerLimit = 0;
1983  this->upperLimit = 15;
1985  // Bouml preserved body end 000B7A71
1986 }
1987 
1989  // Bouml preserved body begin 000B7AF1
1990  // Bouml preserved body end 000B7AF1
1991 }
1992 
1993 void SmartEnergyHysteresis::getParameter(unsigned int& parameter) const {
1994  // Bouml preserved body begin 000B7B71
1995  parameter = this->value;
1996  // Bouml preserved body end 000B7B71
1997 }
1998 
1999 void SmartEnergyHysteresis::setParameter(const unsigned int& parameter) {
2000  // Bouml preserved body begin 000B7BF1
2001  if (this->lowerLimit > parameter) {
2002  throw std::out_of_range("The parameter exceeds the lower limit");
2003  }
2004  if (this->upperLimit < parameter) {
2005  throw std::out_of_range("The parameter exceeds the upper limit");
2006  }
2007 
2008  this->value = parameter;
2009  // Bouml preserved body end 000B7BF1
2010 }
2011 
2012 void SmartEnergyHysteresis::toString(std::string& value) const {
2013  // Bouml preserved body begin 000B7C71
2014  std::stringstream ss;
2015  ss << this->name << ": " << this->value;
2016  value = ss.str();
2017  // Bouml preserved body end 000B7C71
2018 }
2019 
2021  // Bouml preserved body begin 000B7CF1
2022  message.stctOutput.typeNumber = 170; //SmartEnergyHysteresis
2023  message.stctOutput.value = value;
2024  // Bouml preserved body end 000B7CF1
2025 }
2026 
2028  // Bouml preserved body begin 000B7D71
2029  this->value = message.stctInput.value;
2030  // Bouml preserved body end 000B7D71
2031 }
2032 
2034  // Bouml preserved body begin 000B8371
2035  this->name = "SmartEnergyHysteresisStart";
2036  this->lowerLimit = 0;
2037  this->upperLimit = 15;
2039  // Bouml preserved body end 000B8371
2040 }
2041 
2043  // Bouml preserved body begin 000B83F1
2044  // Bouml preserved body end 000B83F1
2045 }
2046 
2047 void SmartEnergyHysteresisStart::getParameter(unsigned int& parameter) const {
2048  // Bouml preserved body begin 000B8471
2049  parameter = this->value;
2050  // Bouml preserved body end 000B8471
2051 }
2052 
2053 void SmartEnergyHysteresisStart::setParameter(const unsigned int& parameter) {
2054  // Bouml preserved body begin 000B84F1
2055  if (this->lowerLimit > parameter) {
2056  throw std::out_of_range("The parameter exceeds the lower limit");
2057  }
2058  if (this->upperLimit < parameter) {
2059  throw std::out_of_range("The parameter exceeds the upper limit");
2060  }
2061 
2062  this->value = parameter;
2063  // Bouml preserved body end 000B84F1
2064 }
2065 
2066 void SmartEnergyHysteresisStart::toString(std::string& value) const {
2067  // Bouml preserved body begin 000B8571
2068  std::stringstream ss;
2069  ss << this->name << ": " << this->value;
2070  value = ss.str();
2071  // Bouml preserved body end 000B8571
2072 }
2073 
2075  // Bouml preserved body begin 000B85F1
2076  message.stctOutput.typeNumber = 172; //SmartEnergyHysteresisStart
2077  message.stctOutput.value = value;
2078  // Bouml preserved body end 000B85F1
2079 }
2080 
2082  // Bouml preserved body begin 000B8671
2083  this->value = message.stctInput.value;
2084  // Bouml preserved body end 000B8671
2085 }
2086 
2088  // Bouml preserved body begin 000BB4F1
2089  this->name = "SmartEnergySlowRunCurrent";
2090  this->lowerLimit = 0;
2091  this->upperLimit = 255;
2093  // Bouml preserved body end 000BB4F1
2094 }
2095 
2097  // Bouml preserved body begin 000BB571
2098  // Bouml preserved body end 000BB571
2099 }
2100 
2101 void SmartEnergySlowRunCurrent::getParameter(unsigned int& parameter) const {
2102  // Bouml preserved body begin 000BB5F1
2103  parameter = this->value;
2104  // Bouml preserved body end 000BB5F1
2105 }
2106 
2107 void SmartEnergySlowRunCurrent::setParameter(const unsigned int& parameter) {
2108  // Bouml preserved body begin 000BB671
2109  if (this->lowerLimit > parameter) {
2110  throw std::out_of_range("The parameter exceeds the lower limit");
2111  }
2112  if (this->upperLimit < parameter) {
2113  throw std::out_of_range("The parameter exceeds the upper limit");
2114  }
2115 
2116  this->value = parameter;
2117  // Bouml preserved body end 000BB671
2118 }
2119 
2120 void SmartEnergySlowRunCurrent::toString(std::string& value) const {
2121  // Bouml preserved body begin 000BB6F1
2122  std::stringstream ss;
2123  ss << this->name << ": " << this->value;
2124  value = ss.str();
2125  // Bouml preserved body end 000BB6F1
2126 }
2127 
2129  // Bouml preserved body begin 000BB771
2130  message.stctOutput.typeNumber = 183; //SmartEnergySlowRunCurrent
2131  message.stctOutput.value = value;
2132  // Bouml preserved body end 000BB771
2133 }
2134 
2136  // Bouml preserved body begin 000BB7F1
2137  this->value = message.stctInput.value;
2138  // Bouml preserved body end 000BB7F1
2139 }
2140 
2142  // Bouml preserved body begin 000BB071
2143  this->name = "SmartEnergyThresholdSpeed";
2144  this->lowerLimit = 0;
2145  this->upperLimit = 2047;
2147  // Bouml preserved body end 000BB071
2148 }
2149 
2151  // Bouml preserved body begin 000BB0F1
2152  // Bouml preserved body end 000BB0F1
2153 }
2154 
2155 void SmartEnergyThresholdSpeed::getParameter(unsigned int& parameter) const {
2156  // Bouml preserved body begin 000BB171
2157  parameter = this->value;
2158  // Bouml preserved body end 000BB171
2159 }
2160 
2161 void SmartEnergyThresholdSpeed::setParameter(const unsigned int& parameter) {
2162  // Bouml preserved body begin 000BB1F1
2163  if (this->lowerLimit > parameter) {
2164  throw std::out_of_range("The parameter exceeds the lower limit");
2165  }
2166  if (this->upperLimit < parameter) {
2167  throw std::out_of_range("The parameter exceeds the upper limit");
2168  }
2169 
2170  this->value = parameter;
2171  // Bouml preserved body end 000BB1F1
2172 }
2173 
2174 void SmartEnergyThresholdSpeed::toString(std::string& value) const {
2175  // Bouml preserved body begin 000BB271
2176  std::stringstream ss;
2177  ss << this->name << ": " << this->value;
2178  value = ss.str();
2179  // Bouml preserved body end 000BB271
2180 }
2181 
2183  // Bouml preserved body begin 000BB2F1
2184  message.stctOutput.typeNumber = 182; //SmartEnergyThresholdSpeed
2185  message.stctOutput.value = value;
2186  // Bouml preserved body end 000BB2F1
2187 }
2188 
2190  // Bouml preserved body begin 000BB371
2191  this->value = message.stctInput.value;
2192  // Bouml preserved body end 000BB371
2193 }
2194 
2196  // Bouml preserved body begin 000B87F1
2197  this->name = "StallGuard2FilterEnable";
2199  // Bouml preserved body end 000B87F1
2200 }
2201 
2203  // Bouml preserved body begin 000B8871
2204  // Bouml preserved body end 000B8871
2205 }
2206 
2207 void StallGuard2FilterEnable::getParameter(bool& parameter) const {
2208  // Bouml preserved body begin 000B88F1
2209  parameter = this->value;
2210  // Bouml preserved body end 000B88F1
2211 }
2212 
2213 void StallGuard2FilterEnable::setParameter(const bool parameter) {
2214  // Bouml preserved body begin 000B8971
2215  this->value = parameter;
2216  // Bouml preserved body end 000B8971
2217 }
2218 
2219 void StallGuard2FilterEnable::toString(std::string& value) const {
2220  // Bouml preserved body begin 000B89F1
2221  std::stringstream ss;
2222  ss << this->name << ": " << this->value;
2223  value = ss.str();
2224  // Bouml preserved body end 000B89F1
2225 }
2226 
2228  // Bouml preserved body begin 000B8A71
2229  message.stctOutput.typeNumber = 173; //StallGuard2FilterEnable
2230  message.stctOutput.value = value;
2231  // Bouml preserved body end 000B8A71
2232 }
2233 
2235  // Bouml preserved body begin 000B8AF1
2236  this->value = message.stctInput.value;
2237  // Bouml preserved body end 000B8AF1
2238 }
2239 
2241  // Bouml preserved body begin 000B8C71
2242  this->name = "StallGuard2Threshold";
2243  this->lowerLimit = -64;
2244  this->upperLimit = 63;
2246  // Bouml preserved body end 000B8C71
2247 }
2248 
2250  // Bouml preserved body begin 000B8CF1
2251  // Bouml preserved body end 000B8CF1
2252 }
2253 
2254 void StallGuard2Threshold::getParameter(int& parameter) const {
2255  // Bouml preserved body begin 000B8D71
2256  parameter = this->value;
2257  // Bouml preserved body end 000B8D71
2258 }
2259 
2260 void StallGuard2Threshold::setParameter(const int parameter) {
2261  // Bouml preserved body begin 000B8DF1
2262  if (this->lowerLimit > parameter) {
2263  throw std::out_of_range("The parameter exceeds the lower limit");
2264  }
2265  if (this->upperLimit < parameter) {
2266  throw std::out_of_range("The parameter exceeds the upper limit");
2267  }
2268 
2269  this->value = parameter;
2270  // Bouml preserved body end 000B8DF1
2271 }
2272 
2273 void StallGuard2Threshold::toString(std::string& value) const {
2274  // Bouml preserved body begin 000B8E71
2275  std::stringstream ss;
2276  ss << this->name << ": " << this->value;
2277  value = ss.str();
2278  // Bouml preserved body end 000B8E71
2279 }
2280 
2282  // Bouml preserved body begin 000B8EF1
2283  message.stctOutput.typeNumber = 174; //StallGuard2Threshold
2284  message.stctOutput.value = value;
2285  // Bouml preserved body end 000B8EF1
2286 }
2287 
2289  // Bouml preserved body begin 000B8F71
2290  this->value = (int32)message.stctInput.value;
2291  // Bouml preserved body end 000B8F71
2292 }
2293 
2295  // Bouml preserved body begin 000B3B71
2296  this->name = "StandbyCurrent";
2297  this->lowerLimit = 0;
2298  this->upperLimit = 255;
2300  // Bouml preserved body end 000B3B71
2301 }
2302 
2304  // Bouml preserved body begin 000B3BF1
2305  // Bouml preserved body end 000B3BF1
2306 }
2307 
2308 void StandbyCurrent::getParameter(int& parameter) const {
2309  // Bouml preserved body begin 000B3C71
2310  parameter = this->value;
2311  // Bouml preserved body end 000B3C71
2312 }
2313 
2314 void StandbyCurrent::setParameter(const int parameter) {
2315  // Bouml preserved body begin 000B3CF1
2316  if (this->lowerLimit > parameter) {
2317  throw std::out_of_range("The parameter exceeds the lower limit");
2318  }
2319  if (this->upperLimit < parameter) {
2320  throw std::out_of_range("The parameter exceeds the upper limit");
2321  }
2322 
2323  this->value = parameter;
2324  // Bouml preserved body end 000B3CF1
2325 }
2326 
2327 void StandbyCurrent::toString(std::string& value) const {
2328  // Bouml preserved body begin 000B3D71
2329  std::stringstream ss;
2330  ss << this->name << ": " << this->value;
2331  value = ss.str();
2332  // Bouml preserved body end 000B3D71
2333 }
2334 
2336  // Bouml preserved body begin 000B3DF1
2337  message.stctOutput.typeNumber = 7; //StandbyCurrent
2338  message.stctOutput.value = value;
2339  // Bouml preserved body end 000B3DF1
2340 }
2341 
2343  // Bouml preserved body begin 000B3E71
2344  this->value = message.stctInput.value;
2345  // Bouml preserved body end 000B3E71
2346 }
2347 
2349  // Bouml preserved body begin 000B51F1
2350  this->name = "StepInterpolationEnable";
2352  // Bouml preserved body end 000B51F1
2353 }
2354 
2356  // Bouml preserved body begin 000B5271
2357  // Bouml preserved body end 000B5271
2358 }
2359 
2360 void StepInterpolationEnable::getParameter(bool& parameter) const {
2361  // Bouml preserved body begin 000B52F1
2362  parameter = this->value;
2363  // Bouml preserved body end 000B52F1
2364 }
2365 
2366 void StepInterpolationEnable::setParameter(const bool parameter) {
2367  // Bouml preserved body begin 000B5371
2368  this->value = parameter;
2369  // Bouml preserved body end 000B5371
2370 }
2371 
2372 void StepInterpolationEnable::toString(std::string& value) const {
2373  // Bouml preserved body begin 000B53F1
2374  std::stringstream ss;
2375  ss << this->name << ": " << this->value;
2376  value = ss.str();
2377  // Bouml preserved body end 000B53F1
2378 }
2379 
2381  // Bouml preserved body begin 000B5471
2382  message.stctOutput.typeNumber = 160; //StepInterpolationEnable
2383  message.stctOutput.value = value;
2384  // Bouml preserved body end 000B5471
2385 }
2386 
2388  // Bouml preserved body begin 000B54F1
2389  this->value = message.stctInput.value;
2390  // Bouml preserved body end 000B54F1
2391 }
2392 
2394  // Bouml preserved body begin 000BABF1
2395  this->name = "StopOnStall";
2397  // Bouml preserved body end 000BABF1
2398 }
2399 
2401  // Bouml preserved body begin 000BAC71
2402  // Bouml preserved body end 000BAC71
2403 }
2404 
2405 void StopOnStall::getParameter(bool& parameter) const {
2406  // Bouml preserved body begin 000BACF1
2407  parameter = this->value;
2408  // Bouml preserved body end 000BACF1
2409 }
2410 
2411 void StopOnStall::setParameter(const bool parameter) {
2412  // Bouml preserved body begin 000BAD71
2413  this->value = parameter;
2414  // Bouml preserved body end 000BAD71
2415 }
2416 
2417 void StopOnStall::toString(std::string& value) const {
2418  // Bouml preserved body begin 000BADF1
2419  std::stringstream ss;
2420  ss << this->name << ": " << this->value;
2421  value = ss.str();
2422  // Bouml preserved body end 000BADF1
2423 }
2424 
2426  // Bouml preserved body begin 000BAE71
2427  message.stctOutput.typeNumber = 181; //StopOnStall
2428  if(value)
2429  message.stctOutput.value = 1;
2430  else
2431  message.stctOutput.value = 0;
2432 
2433  // Bouml preserved body end 000BAE71
2434 }
2435 
2437  // Bouml preserved body begin 000BAEF1
2438  this->value = message.stctInput.value;
2439  // Bouml preserved body end 000BAEF1
2440 }
2441 
2443  // Bouml preserved body begin 000BA2F1
2444  this->name = "Vsense";
2445  this->lowerLimit = 0;
2446  this->upperLimit = 1;
2448  // Bouml preserved body end 000BA2F1
2449 }
2450 
2452  // Bouml preserved body begin 000BA371
2453  // Bouml preserved body end 000BA371
2454 }
2455 
2456 void Vsense::getParameter(unsigned int& parameter) const {
2457  // Bouml preserved body begin 000BA3F1
2458  parameter = this->value;
2459  // Bouml preserved body end 000BA3F1
2460 }
2461 
2462 void Vsense::setParameter(const unsigned int& parameter) {
2463  // Bouml preserved body begin 000BA471
2464  if (this->lowerLimit > parameter) {
2465  throw std::out_of_range("The parameter exceeds the lower limit");
2466  }
2467  if (this->upperLimit < parameter) {
2468  throw std::out_of_range("The parameter exceeds the upper limit");
2469  }
2470 
2471  this->value = parameter;
2472  // Bouml preserved body end 000BA471
2473 }
2474 
2475 void Vsense::toString(std::string& value) const {
2476  // Bouml preserved body begin 000BA4F1
2477  std::stringstream ss;
2478  ss << this->name << ": " << this->value;
2479  value = ss.str();
2480  // Bouml preserved body end 000BA4F1
2481 }
2482 
2484  // Bouml preserved body begin 000BA571
2485  message.stctOutput.typeNumber = 179; //Vsense
2486  message.stctOutput.value = value;
2487  // Bouml preserved body end 000BA571
2488 }
2489 
2491  // Bouml preserved body begin 000BA5F1
2492  this->value = message.stctInput.value;
2493  // Bouml preserved body end 000BA5F1
2494 }
2495 
2497  // Bouml preserved body begin 0010BBF1
2498  this->name = "ActualAcceleration";
2499  this->lowerLimit = 0;
2500  this->upperLimit = 2047;
2502  // Bouml preserved body end 0010BBF1
2503 }
2504 
2506  // Bouml preserved body begin 0010BC71
2507  // Bouml preserved body end 0010BC71
2508 }
2509 
2510 void ActualAcceleration::getParameter(int& parameter) const {
2511  // Bouml preserved body begin 0010BCF1
2512  parameter = this->value;
2513  // Bouml preserved body end 0010BCF1
2514 }
2515 
2516 void ActualAcceleration::toString(std::string& value) const {
2517  // Bouml preserved body begin 0010BD71
2518  std::stringstream ss;
2519  ss << this->name << ": " << this->value;
2520  value = ss.str();
2521  // Bouml preserved body end 0010BD71
2522 }
2523 
2525  // Bouml preserved body begin 0010BDF1
2526  message.stctOutput.typeNumber = 135; //ActualAcceleration
2527  message.stctOutput.value = value;
2528  // Bouml preserved body end 0010BDF1
2529 }
2530 
2532  // Bouml preserved body begin 0010BE71
2533  this->value = message.stctInput.value;
2534  // Bouml preserved body end 0010BE71
2535 }
2536 
2538  // Bouml preserved body begin 00107B71
2539  this->name = "MinimumSpeed";
2540  this->lowerLimit = 0;
2541  this->upperLimit = 2047;
2543  // Bouml preserved body end 00107B71
2544 }
2545 
2547  // Bouml preserved body begin 00107BF1
2548  // Bouml preserved body end 00107BF1
2549 }
2550 
2551 void MinimumSpeed::getParameter(int& parameter) const {
2552  // Bouml preserved body begin 00107C71
2553  parameter = this->value;
2554  // Bouml preserved body end 00107C71
2555 }
2556 
2557 void MinimumSpeed::setParameter(const int parameter) {
2558  // Bouml preserved body begin 00107CF1
2559  if (this->lowerLimit > parameter) {
2560  throw std::out_of_range("The parameter exceeds the lower limit");
2561  }
2562  if (this->upperLimit < parameter) {
2563  throw std::out_of_range("The parameter exceeds the upper limit");
2564  }
2565 
2566  this->value = parameter;
2567  // Bouml preserved body end 00107CF1
2568 }
2569 
2570 void MinimumSpeed::toString(std::string& value) const {
2571  // Bouml preserved body begin 00107D71
2572  std::stringstream ss;
2573  ss << this->name << ": " << this->value;
2574  value = ss.str();
2575  // Bouml preserved body end 00107D71
2576 }
2577 
2579  // Bouml preserved body begin 00107DF1
2580  message.stctOutput.typeNumber = 130; //MinimumSpeed
2581  message.stctOutput.value = (uint32)value;
2582 
2583  // Bouml preserved body end 00107DF1
2584 }
2585 
2587  // Bouml preserved body begin 00107E71
2588  this->value = (int32)message.stctInput.value;
2589  // Bouml preserved body end 00107E71
2590 }
2591 
2592 
2593 } // namespace youbot
void setParameter(const quantity< si::length > &parameter)
void toString(std::string &value) const
void getParameter(quantity< si::length > &parameter) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const int parameter)
void setParameter(const quantity< si::length > &parameter)
void setParameter(const int parameter)
void toString(std::string &value) const
void toString(std::string &value) const
void getParameter(int &parameter) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void toString(std::string &value) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getParameter(unsigned int &parameter) const
void setParameter(const unsigned int &parameter)
void setParameter(const int parameter)
void getParameter(unsigned int &parameter) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void toString(std::string &value) const
void toString(std::string &value) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getParameter(unsigned int &parameter) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void toString(std::string &value) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const unsigned int &parameter)
void getParameter(int &parameter) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void toString(std::string &value) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
virtual void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
virtual void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void toString(std::string &value) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setParameter(const unsigned int &parameter)
void getParameter(std::string &parameter) const
void getParameter(int &parameter) const
void getParameter(int &parameter) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getParameter(bool &parameter) const
void setParameter(const int parameter)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setParameter(const unsigned int &parameter)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void toString(std::string &value) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void toString(std::string &value) const
void getParameter(bool &parameter) const
void getParameter(unsigned int &parameter) const
void setParameter(const bool parameter)
void getParameter(bool &parameter) const
void setParameter(const unsigned int &parameter)
void toString(std::string &value) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getParameter(bool &parameter) const
void getParameter(int &parameter) const
void setParameter(const int controllerType, const double firmwareVersion)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setParameter(const unsigned int &parameter)
void toString(std::string &value) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setParameter(const bool parameter)
void setParameter(const unsigned int &parameter)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setParameter(const int parameter)
void getParameter(unsigned int &parameter) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getParameter(unsigned int &parameter) const
void toString(std::string &value) const
virtual void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
virtual void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const unsigned int &parameter)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void toString(std::string &value) const
void getParameter(unsigned int &parameter) const
void getParameter(int &parameter) const
void getParameter(int &parameter) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const unsigned int &parameter)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const std::string parameter)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void toString(std::string &value) const
void getParameter(unsigned int &parameter) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getParameter(unsigned int &parameter) const
void getParameter(unsigned int &parameter) const
void setParameter(const unsigned int &parameter)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void toString(std::string &value) const
virtual void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getParameter(unsigned int &parameter) const
void setParameter(const unsigned int &parameter)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
virtual void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getParameter(unsigned int &parameter) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getParameter(unsigned int &parameter) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const int parameter)
void toString(std::string &value) const
void toString(std::string &value) const
void toString(std::string &value) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getParameter(unsigned int &parameter) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const unsigned int &parameter)
void toString(std::string &value) const
void getParameter(unsigned int &parameter) const
void getParameter(int &parameter) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void toString(std::string &value) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const bool parameter)
void toString(std::string &value) const
void toString(std::string &value) const
void toString(std::string &value) const
void setParameter(const unsigned int &parameter)
void getParameter(unsigned int &parameter) const
void getParameter(unsigned int &parameter) const
void setParameter(const bool parameter)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
int32_t int32
Definition: osal.h:32
void getParameter(unsigned int &parameter) const
void getParameter(unsigned int &parameter) const
EtherCAT mailbox message of the youBot slaves.
void toString(std::string &value) const
void getParameter(unsigned int &parameter) const
void getParameter(bool &parameter) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void toString(std::string &value) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void toString(std::string &value) const
void toString(std::string &value) const
void toString(std::string &value) const
void setParameter(const unsigned int &parameter)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void toString(std::string &value) const
void getParameter(int &parameter) const
void getParameter(unsigned int &parameter) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void toString(std::string &value) const
void setParameter(const unsigned int &parameter)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getParameter(bool &parameter) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const unsigned int &parameter)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const unsigned int &parameter)
virtual void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void toString(std::string &value) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const int parameter)
void setParameter(const bool parameter)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getParameter(bool &parameter) const
void getParameter(int &parameter) const
void toString(std::string &value) const
void setParameter(const unsigned int &parameter)
void setParameter(const unsigned int &parameter)
void toString(std::string &value) const
void setParameter(const bool parameter)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
virtual void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
uint32_t uint32
Definition: osal.h:35
void setParameter(const int parameter)
void getParameter(unsigned int &parameter) const
void getParameter(int &parameter) const
void setParameter(const bool parameter)
void toString(std::string &value) const
void toString(std::string &value) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void getParameter(int &controllerType, double &firmwareVersion) const
void toString(std::string &value) const
void toString(std::string &value) const
void setParameter(const unsigned int &parameter)
void setParameter(const int parameter)
void toString(std::string &value) const
void setParameter(const unsigned int &parameter)
void getParameter(unsigned int &parameter) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setParameter(const unsigned int parameter)
void getParameter(quantity< si::length > &parameter) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void toString(std::string &value) const
void toString(std::string &value) const
void toString(std::string &value) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getParameter(int &parameter) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void setParameter(const unsigned int &parameter)
void toString(std::string &value) const
void toString(std::string &value) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void toString(std::string &value) const
void toString(std::string &value) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setParameter(const unsigned int &parameter)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getParameter(int &parameter) const
void getYouBotMailboxMsg(YouBotSlaveMailboxMsg &message) const
void toString(std::string &value) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void getParameter(unsigned int &parameter) const
void getParameter(bool &parameter) const
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void toString(std::string &value) const
void setParameter(const int parameter)
void setParameter(const int parameter)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)
void setYouBotMailboxMsg(const YouBotSlaveMailboxMsg &message)


youbot_driver
Author(s): Jan Paulus
autogenerated on Mon Jun 10 2019 15:46:25