-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathXTDC4StateMachine.cpp
812 lines (668 loc) · 30 KB
/
XTDC4StateMachine.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
/*----- PROTECTED REGION ID(XTDC4StateMachine.cpp) ENABLED START -----*/
static const char *RcsId = "$Id: $";
//=============================================================================
//
// file : XTDC4StateMachine.cpp
//
// description : State machine file for the XTDC4 class
//
// project : xTDC4_DevServer
//
// This file is part of Tango device class.
//
// Tango is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Tango is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Tango. If not, see <http://www.gnu.org/licenses/>.
//
// $Author: $
//
// $Revision: $
// $Date: $
//
// $HeadURL: $
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#include <XTDC4.h>
/*----- PROTECTED REGION END -----*/ // XTDC4::XTDC4StateMachine.cpp
//================================================================
// States | Description
//================================================================
// ON |
// RUNNING |
// OFF |
// FAULT |
// STANDBY |
namespace XTDC4_ns
{
//=================================================
// Attributes Allowed Methods
//=================================================
//--------------------------------------------------------
/**
* Method : XTDC4::is_error_code_allowed()
* Description : Execution allowed for error_code attribute
*/
//--------------------------------------------------------
bool XTDC4::is_error_code_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for error_code attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::error_codeStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::error_codeStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_error_message_allowed()
* Description : Execution allowed for error_message attribute
*/
//--------------------------------------------------------
bool XTDC4::is_error_message_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for error_message attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::error_messageStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::error_messageStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_device_type_allowed()
* Description : Execution allowed for device_type attribute
*/
//--------------------------------------------------------
bool XTDC4::is_device_type_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for device_type attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::device_typeStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::device_typeStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_START_RISING_allowed()
* Description : Execution allowed for START_RISING attribute
*/
//--------------------------------------------------------
bool XTDC4::is_START_RISING_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for START_RISING attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::START_RISINGStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::START_RISINGStateAllowed_WRITE
// Not any excluded states for START_RISING attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::START_RISINGStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::START_RISINGStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_START_DC_OFFSET_allowed()
* Description : Execution allowed for START_DC_OFFSET attribute
*/
//--------------------------------------------------------
bool XTDC4::is_START_DC_OFFSET_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for START_DC_OFFSET attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::START_DC_OFFSETStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::START_DC_OFFSETStateAllowed_WRITE
// Not any excluded states for START_DC_OFFSET attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::START_DC_OFFSETStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::START_DC_OFFSETStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH0_ENABLED_allowed()
* Description : Execution allowed for CH0_ENABLED attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH0_ENABLED_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH0_ENABLED attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH0_ENABLEDStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH0_ENABLEDStateAllowed_WRITE
// Not any excluded states for CH0_ENABLED attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH0_ENABLEDStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH0_ENABLEDStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH0_RISING_allowed()
* Description : Execution allowed for CH0_RISING attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH0_RISING_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH0_RISING attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH0_RISINGStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH0_RISINGStateAllowed_WRITE
// Not any excluded states for CH0_RISING attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH0_RISINGStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH0_RISINGStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH0_DC_OFFSET_allowed()
* Description : Execution allowed for CH0_DC_OFFSET attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH0_DC_OFFSET_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH0_DC_OFFSET attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH0_DC_OFFSETStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH0_DC_OFFSETStateAllowed_WRITE
// Not any excluded states for CH0_DC_OFFSET attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH0_DC_OFFSETStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH0_DC_OFFSETStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH1_ENABLED_allowed()
* Description : Execution allowed for CH1_ENABLED attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH1_ENABLED_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH1_ENABLED attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH1_ENABLEDStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH1_ENABLEDStateAllowed_WRITE
// Not any excluded states for CH1_ENABLED attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH1_ENABLEDStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH1_ENABLEDStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH1_RISING_allowed()
* Description : Execution allowed for CH1_RISING attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH1_RISING_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH1_RISING attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH1_RISINGStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH1_RISINGStateAllowed_WRITE
// Not any excluded states for CH1_RISING attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH1_RISINGStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH1_RISINGStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH1_DC_OFFSET_allowed()
* Description : Execution allowed for CH1_DC_OFFSET attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH1_DC_OFFSET_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH1_DC_OFFSET attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH1_DC_OFFSETStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH1_DC_OFFSETStateAllowed_WRITE
// Not any excluded states for CH1_DC_OFFSET attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH1_DC_OFFSETStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH1_DC_OFFSETStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH2_ENABLED_allowed()
* Description : Execution allowed for CH2_ENABLED attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH2_ENABLED_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH2_ENABLED attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH2_ENABLEDStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH2_ENABLEDStateAllowed_WRITE
// Not any excluded states for CH2_ENABLED attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH2_ENABLEDStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH2_ENABLEDStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH2_RISING_allowed()
* Description : Execution allowed for CH2_RISING attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH2_RISING_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH2_RISING attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH2_RISINGStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH2_RISINGStateAllowed_WRITE
// Not any excluded states for CH2_RISING attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH2_RISINGStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH2_RISINGStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH2_DC_OFFSET_allowed()
* Description : Execution allowed for CH2_DC_OFFSET attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH2_DC_OFFSET_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH2_DC_OFFSET attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH2_DC_OFFSETStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH2_DC_OFFSETStateAllowed_WRITE
// Not any excluded states for CH2_DC_OFFSET attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH2_DC_OFFSETStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH2_DC_OFFSETStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH3_ENABLED_allowed()
* Description : Execution allowed for CH3_ENABLED attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH3_ENABLED_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH3_ENABLED attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH3_ENABLEDStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH3_ENABLEDStateAllowed_WRITE
// Not any excluded states for CH3_ENABLED attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH3_ENABLEDStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH3_ENABLEDStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH3_RISING_allowed()
* Description : Execution allowed for CH3_RISING attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH3_RISING_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH3_RISING attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH3_RISINGStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH3_RISINGStateAllowed_WRITE
// Not any excluded states for CH3_RISING attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH3_RISINGStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH3_RISINGStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH3_DC_OFFSET_allowed()
* Description : Execution allowed for CH3_DC_OFFSET attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH3_DC_OFFSET_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH3_DC_OFFSET attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::CH3_DC_OFFSETStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH3_DC_OFFSETStateAllowed_WRITE
// Not any excluded states for CH3_DC_OFFSET attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH3_DC_OFFSETStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH3_DC_OFFSETStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_TW_START_allowed()
* Description : Execution allowed for TW_START attribute
*/
//--------------------------------------------------------
bool XTDC4::is_TW_START_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for TW_START attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::TW_STARTStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::TW_STARTStateAllowed_WRITE
// Not any excluded states for TW_START attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::TW_STARTStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::TW_STARTStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_TW_END_allowed()
* Description : Execution allowed for TW_END attribute
*/
//--------------------------------------------------------
bool XTDC4::is_TW_END_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for TW_END attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::TW_ENDStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::TW_ENDStateAllowed_WRITE
// Not any excluded states for TW_END attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::TW_ENDStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::TW_ENDStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_config_changed_allowed()
* Description : Execution allowed for config_changed attribute
*/
//--------------------------------------------------------
bool XTDC4::is_config_changed_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for config_changed attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::config_changedStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::config_changedStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_start_trigger_generator_allowed()
* Description : Execution allowed for start_trigger_generator attribute
*/
//--------------------------------------------------------
bool XTDC4::is_start_trigger_generator_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for start_trigger_generator attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::start_trigger_generatorStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::start_trigger_generatorStateAllowed_WRITE
// Not any excluded states for start_trigger_generator attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::start_trigger_generatorStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::start_trigger_generatorStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_last_run_valid_starts_allowed()
* Description : Execution allowed for last_run_valid_starts attribute
*/
//--------------------------------------------------------
bool XTDC4::is_last_run_valid_starts_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for last_run_valid_starts attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::last_run_valid_startsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::last_run_valid_startsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_last_run_empty_starts_allowed()
* Description : Execution allowed for last_run_empty_starts attribute
*/
//--------------------------------------------------------
bool XTDC4::is_last_run_empty_starts_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for last_run_empty_starts attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::last_run_empty_startsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::last_run_empty_startsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_last_run_hits_allowed()
* Description : Execution allowed for last_run_hits attribute
*/
//--------------------------------------------------------
bool XTDC4::is_last_run_hits_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for last_run_hits attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::last_run_hitsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::last_run_hitsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_last_run_start_errors_allowed()
* Description : Execution allowed for last_run_start_errors attribute
*/
//--------------------------------------------------------
bool XTDC4::is_last_run_start_errors_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for last_run_start_errors attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::last_run_start_errorsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::last_run_start_errorsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_start_trigger_generator_frequency_allowed()
* Description : Execution allowed for start_trigger_generator_frequency attribute
*/
//--------------------------------------------------------
bool XTDC4::is_start_trigger_generator_frequency_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for start_trigger_generator_frequency attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::start_trigger_generator_frequencyStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::start_trigger_generator_frequencyStateAllowed_WRITE
// Not any excluded states for start_trigger_generator_frequency attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::start_trigger_generator_frequencyStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::start_trigger_generator_frequencyStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_run_timeout_allowed()
* Description : Execution allowed for run_timeout attribute
*/
//--------------------------------------------------------
bool XTDC4::is_run_timeout_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for run_timeout attribute in Write access.
/*----- PROTECTED REGION ID(XTDC4::run_timeoutStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::run_timeoutStateAllowed_WRITE
// Not any excluded states for run_timeout attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::run_timeoutStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::run_timeoutStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_firmware_revision_allowed()
* Description : Execution allowed for firmware_revision attribute
*/
//--------------------------------------------------------
bool XTDC4::is_firmware_revision_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for firmware_revision attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::firmware_revisionStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::firmware_revisionStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_driver_version_allowed()
* Description : Execution allowed for driver_version attribute
*/
//--------------------------------------------------------
bool XTDC4::is_driver_version_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for driver_version attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::driver_versionStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::driver_versionStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_board_serial_allowed()
* Description : Execution allowed for board_serial attribute
*/
//--------------------------------------------------------
bool XTDC4::is_board_serial_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for board_serial attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::board_serialStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::board_serialStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_bin_size_allowed()
* Description : Execution allowed for bin_size attribute
*/
//--------------------------------------------------------
bool XTDC4::is_bin_size_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for bin_size attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::bin_sizeStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::bin_sizeStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_trigger_number_allowed()
* Description : Execution allowed for trigger_number attribute
*/
//--------------------------------------------------------
bool XTDC4::is_trigger_number_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for trigger_number attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::trigger_numberStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::trigger_numberStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH0_Timestamps_allowed()
* Description : Execution allowed for CH0_Timestamps attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH0_Timestamps_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH0_Timestamps attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH0_TimestampsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH0_TimestampsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH1_Timestamps_allowed()
* Description : Execution allowed for CH1_Timestamps attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH1_Timestamps_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH1_Timestamps attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH1_TimestampsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH1_TimestampsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH2_Timestamps_allowed()
* Description : Execution allowed for CH2_Timestamps attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH2_Timestamps_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH2_Timestamps attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH2_TimestampsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH2_TimestampsStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_CH3_Timestamps_allowed()
* Description : Execution allowed for CH3_Timestamps attribute
*/
//--------------------------------------------------------
bool XTDC4::is_CH3_Timestamps_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for CH3_Timestamps attribute in read access.
/*----- PROTECTED REGION ID(XTDC4::CH3_TimestampsStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // XTDC4::CH3_TimestampsStateAllowed_READ
return true;
}
//=================================================
// Commands Allowed Methods
//=================================================
//--------------------------------------------------------
/**
* Method : XTDC4::is_Start_allowed()
* Description : Execution allowed for Start attribute
*/
//--------------------------------------------------------
bool XTDC4::is_Start_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Start command.
/*----- PROTECTED REGION ID(XTDC4::StartStateAllowed) ENABLED START -----*/
if (get_state() == Tango::ON)
return true;
else
return false;
/*----- PROTECTED REGION END -----*/ // XTDC4::StartStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_Stop_allowed()
* Description : Execution allowed for Stop attribute
*/
//--------------------------------------------------------
bool XTDC4::is_Stop_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Stop command.
/*----- PROTECTED REGION ID(XTDC4::StopStateAllowed) ENABLED START -----*/
if (get_state() == Tango::RUNNING)
return true;
else
return false;
/*----- PROTECTED REGION END -----*/ // XTDC4::StopStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_Off_allowed()
* Description : Execution allowed for Off attribute
*/
//--------------------------------------------------------
bool XTDC4::is_Off_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Off command.
/*----- PROTECTED REGION ID(XTDC4::OffStateAllowed) ENABLED START -----*/
if (get_state() == Tango::ON)
return true;
else
return false;
/*----- PROTECTED REGION END -----*/ // XTDC4::OffStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_apply_config_allowed()
* Description : Execution allowed for apply_config attribute
*/
//--------------------------------------------------------
bool XTDC4::is_apply_config_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for apply_config command.
/*----- PROTECTED REGION ID(XTDC4::apply_configStateAllowed) ENABLED START -----*/
if (get_state() == Tango::ON)
return true;
else
return false;
/*----- PROTECTED REGION END -----*/ // XTDC4::apply_configStateAllowed
return true;
}
//--------------------------------------------------------
/**
* Method : XTDC4::is_Clear_allowed()
* Description : Execution allowed for Clear attribute
*/
//--------------------------------------------------------
bool XTDC4::is_Clear_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Not any excluded states for Clear command.
/*----- PROTECTED REGION ID(XTDC4::ClearStateAllowed) ENABLED START -----*/
if (get_state() == Tango::ON)
return true;
else
return false;
/*----- PROTECTED REGION END -----*/ // XTDC4::ClearStateAllowed
return true;
}
/*----- PROTECTED REGION ID(XTDC4::XTDC4StateAllowed.AdditionalMethods) ENABLED START -----*/
// Additional Methods
/*----- PROTECTED REGION END -----*/ // XTDC4::XTDC4StateAllowed.AdditionalMethods
} // End of namespace