Line data Source code
1 : //
2 : // ex: set ro:
3 : // DO NOT EDIT.
4 : // generated by smc (http://smc.sourceforge.net/)
5 : // from file : Commandable.sm
6 : //
7 :
8 : #include "artdaq/Application/detail/Commandable_sm.h"
9 : #include "artdaq/Application/Commandable.hh"
10 :
11 : using namespace statemap;
12 :
13 : #pragma GCC diagnostic push
14 : #pragma GCC diagnostic ignored "-Wunused-parameter"
15 :
16 : namespace artdaq {
17 : // Static class declarations.
18 : Main_Booted Main::Booted("Main::Booted", 0);
19 : Main_Initialized Main::Initialized("Main::Initialized", 1);
20 : InitializedMap_Ready InitializedMap::Ready("InitializedMap::Ready", 2);
21 : InitializedMap_InRun InitializedMap::InRun("InitializedMap::InRun", 3);
22 : InRunMap_Running InRunMap::Running("InRunMap::Running", 4);
23 : InRunMap_Paused InRunMap::Paused("InRunMap::Paused", 5);
24 : InRunMap_InRunError InRunMap::InRunError("InRunMap::InRunError", 6);
25 :
26 0 : void CommandableState::in_run_failure(CommandableContext& context)
27 : {
28 0 : Default(context);
29 0 : }
30 :
31 0 : void CommandableState::init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
32 : {
33 0 : Default(context);
34 0 : }
35 :
36 0 : void CommandableState::pause(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
37 : {
38 0 : Default(context);
39 0 : }
40 :
41 0 : void CommandableState::reinit(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
42 : {
43 0 : Default(context);
44 0 : }
45 :
46 0 : void CommandableState::resume(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
47 : {
48 0 : Default(context);
49 0 : }
50 :
51 0 : void CommandableState::shutdown(CommandableContext& context, uint64_t timeout)
52 : {
53 0 : Default(context);
54 0 : }
55 :
56 0 : void CommandableState::soft_init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
57 : {
58 0 : Default(context);
59 0 : }
60 :
61 0 : void CommandableState::start(CommandableContext& context, art::RunID id, uint64_t timeout, uint64_t timestamp)
62 : {
63 0 : Default(context);
64 0 : }
65 :
66 0 : void CommandableState::stop(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
67 : {
68 0 : Default(context);
69 0 : }
70 :
71 0 : void CommandableState::Default(CommandableContext& context)
72 : {
73 : throw(
74 : TransitionUndefinedException(
75 0 : context.getState().getName(),
76 0 : context.getTransition()));
77 : }
78 :
79 0 : void Main_Default::init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
80 : {
81 0 : Commandable& ctxt = context.getOwner();
82 :
83 0 : CommandableState& endState = context.getState();
84 :
85 0 : context.clearState();
86 : try
87 : {
88 0 : ctxt.badTransition(__func__);
89 0 : context.setState(endState);
90 : }
91 0 : catch (...)
92 : {
93 0 : context.setState(endState);
94 0 : throw;
95 0 : }
96 0 : }
97 :
98 0 : void Main_Default::start(CommandableContext& context, art::RunID id, uint64_t timeout, uint64_t timestamp)
99 : {
100 0 : Commandable& ctxt = context.getOwner();
101 :
102 0 : CommandableState& endState = context.getState();
103 :
104 0 : context.clearState();
105 : try
106 : {
107 0 : ctxt.badTransition(__func__);
108 0 : context.setState(endState);
109 : }
110 0 : catch (...)
111 : {
112 0 : context.setState(endState);
113 0 : throw;
114 0 : }
115 0 : }
116 :
117 0 : void Main_Default::stop(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
118 : {
119 0 : Commandable& ctxt = context.getOwner();
120 :
121 0 : CommandableState& endState = context.getState();
122 :
123 0 : context.clearState();
124 : try
125 : {
126 0 : ctxt.badTransition(__func__);
127 0 : context.setState(endState);
128 : }
129 0 : catch (...)
130 : {
131 0 : context.setState(endState);
132 0 : throw;
133 0 : }
134 0 : }
135 :
136 0 : void Main_Default::pause(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
137 : {
138 0 : Commandable& ctxt = context.getOwner();
139 :
140 0 : CommandableState& endState = context.getState();
141 :
142 0 : context.clearState();
143 : try
144 : {
145 0 : ctxt.badTransition(__func__);
146 0 : context.setState(endState);
147 : }
148 0 : catch (...)
149 : {
150 0 : context.setState(endState);
151 0 : throw;
152 0 : }
153 0 : }
154 :
155 0 : void Main_Default::resume(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
156 : {
157 0 : Commandable& ctxt = context.getOwner();
158 :
159 0 : CommandableState& endState = context.getState();
160 :
161 0 : context.clearState();
162 : try
163 : {
164 0 : ctxt.badTransition(__func__);
165 0 : context.setState(endState);
166 : }
167 0 : catch (...)
168 : {
169 0 : context.setState(endState);
170 0 : throw;
171 0 : }
172 0 : }
173 :
174 0 : void Main_Default::shutdown(CommandableContext& context, uint64_t timeout)
175 : {
176 0 : Commandable& ctxt = context.getOwner();
177 :
178 0 : CommandableState& endState = context.getState();
179 :
180 0 : context.clearState();
181 : try
182 : {
183 0 : ctxt.badTransition(__func__);
184 0 : context.setState(endState);
185 : }
186 0 : catch (...)
187 : {
188 0 : context.setState(endState);
189 0 : throw;
190 0 : }
191 0 : }
192 :
193 0 : void Main_Default::soft_init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
194 : {
195 0 : Commandable& ctxt = context.getOwner();
196 :
197 0 : CommandableState& endState = context.getState();
198 :
199 0 : context.clearState();
200 : try
201 : {
202 0 : ctxt.badTransition(__func__);
203 0 : context.setState(endState);
204 : }
205 0 : catch (...)
206 : {
207 0 : context.setState(endState);
208 0 : throw;
209 0 : }
210 0 : }
211 :
212 0 : void Main_Default::reinit(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
213 : {
214 0 : Commandable& ctxt = context.getOwner();
215 :
216 0 : CommandableState& endState = context.getState();
217 :
218 0 : context.clearState();
219 : try
220 : {
221 0 : ctxt.badTransition(__func__);
222 0 : context.setState(endState);
223 : }
224 0 : catch (...)
225 : {
226 0 : context.setState(endState);
227 0 : throw;
228 0 : }
229 0 : }
230 :
231 1 : void Main_Booted::Entry(CommandableContext& context)
232 :
233 : {
234 1 : Commandable& ctxt = context.getOwner();
235 :
236 1 : ctxt.BootedEnter();
237 1 : }
238 :
239 1 : void Main_Booted::init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
240 : {
241 1 : Commandable& ctxt = context.getOwner();
242 :
243 1 : if (ctxt.do_initialize(pset, timeout, timestamp))
244 : {
245 1 : context.getState().Exit(context);
246 : // No actions.
247 1 : context.setState(Main::Initialized);
248 :
249 1 : context.getState().Entry(context);
250 1 : context.pushState(InitializedMap::Ready);
251 1 : context.getState().Entry(context);
252 : }
253 : else
254 : {
255 : }
256 1 : }
257 :
258 0 : void Main_Booted::reinit(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
259 : {
260 0 : Commandable& ctxt = context.getOwner();
261 :
262 0 : if (ctxt.do_initialize(pset, timeout, timestamp))
263 : {
264 0 : context.getState().Exit(context);
265 : // No actions.
266 0 : context.setState(Main::Initialized);
267 :
268 0 : context.getState().Entry(context);
269 0 : context.pushState(InitializedMap::Ready);
270 0 : context.getState().Entry(context);
271 : }
272 : else
273 : {
274 : }
275 0 : }
276 :
277 0 : void Main_Booted::shutdown(CommandableContext& context, uint64_t timeout)
278 : {
279 0 : context.getState().Exit(context);
280 0 : context.setState(Main::Booted);
281 0 : context.getState().Entry(context);
282 0 : }
283 :
284 0 : void Main_Initialized::init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
285 : {
286 0 : Commandable& ctxt = context.getOwner();
287 :
288 0 : if (ctxt.do_initialize(pset, timeout, timestamp))
289 : {
290 0 : context.getState().Exit(context);
291 : // No actions.
292 0 : context.setState(Main::Initialized);
293 :
294 0 : context.getState().Entry(context);
295 0 : context.pushState(InitializedMap::Ready);
296 0 : context.getState().Entry(context);
297 : }
298 : else
299 : {
300 0 : context.getState().Exit(context);
301 0 : context.setState(Main::Booted);
302 0 : context.getState().Entry(context);
303 : }
304 0 : }
305 :
306 0 : void Main_Initialized::reinit(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
307 : {
308 0 : Commandable& ctxt = context.getOwner();
309 :
310 0 : if (ctxt.do_initialize(pset, timeout, timestamp))
311 : {
312 0 : context.getState().Exit(context);
313 : // No actions.
314 0 : context.setState(Main::Initialized);
315 :
316 0 : context.getState().Entry(context);
317 0 : context.pushState(InitializedMap::Ready);
318 0 : context.getState().Entry(context);
319 : }
320 : else
321 : {
322 0 : context.getState().Exit(context);
323 0 : context.setState(Main::Booted);
324 0 : context.getState().Entry(context);
325 : }
326 0 : }
327 :
328 1 : void Main_Initialized::shutdown(CommandableContext& context, uint64_t timeout)
329 : {
330 1 : Commandable& ctxt = context.getOwner();
331 :
332 1 : if (ctxt.do_shutdown(timeout))
333 : {
334 1 : context.getState().Exit(context);
335 : // No actions.
336 1 : context.setState(Main::Booted);
337 1 : context.getState().Entry(context);
338 : }
339 : else
340 : {
341 0 : Main_Default::shutdown(context, timeout);
342 : }
343 1 : }
344 :
345 0 : void InitializedMap_Default::init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
346 : {
347 0 : Commandable& ctxt = context.getOwner();
348 :
349 0 : CommandableState& endState = context.getState();
350 :
351 0 : context.clearState();
352 : try
353 : {
354 0 : ctxt.badTransition(__func__);
355 0 : context.setState(endState);
356 : }
357 0 : catch (...)
358 : {
359 0 : context.setState(endState);
360 0 : throw;
361 0 : }
362 0 : }
363 :
364 0 : void InitializedMap_Default::start(CommandableContext& context, art::RunID id, uint64_t timeout, uint64_t timestamp)
365 : {
366 0 : Commandable& ctxt = context.getOwner();
367 :
368 0 : CommandableState& endState = context.getState();
369 :
370 0 : context.clearState();
371 : try
372 : {
373 0 : ctxt.badTransition(__func__);
374 0 : context.setState(endState);
375 : }
376 0 : catch (...)
377 : {
378 0 : context.setState(endState);
379 0 : throw;
380 0 : }
381 0 : }
382 :
383 0 : void InitializedMap_Default::stop(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
384 : {
385 0 : Commandable& ctxt = context.getOwner();
386 :
387 0 : CommandableState& endState = context.getState();
388 :
389 0 : context.clearState();
390 : try
391 : {
392 0 : ctxt.badTransition(__func__);
393 0 : context.setState(endState);
394 : }
395 0 : catch (...)
396 : {
397 0 : context.setState(endState);
398 0 : throw;
399 0 : }
400 0 : }
401 :
402 0 : void InitializedMap_Default::pause(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
403 : {
404 0 : Commandable& ctxt = context.getOwner();
405 :
406 0 : CommandableState& endState = context.getState();
407 :
408 0 : context.clearState();
409 : try
410 : {
411 0 : ctxt.badTransition(__func__);
412 0 : context.setState(endState);
413 : }
414 0 : catch (...)
415 : {
416 0 : context.setState(endState);
417 0 : throw;
418 0 : }
419 0 : }
420 :
421 0 : void InitializedMap_Default::resume(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
422 : {
423 0 : Commandable& ctxt = context.getOwner();
424 :
425 0 : CommandableState& endState = context.getState();
426 :
427 0 : context.clearState();
428 : try
429 : {
430 0 : ctxt.badTransition(__func__);
431 0 : context.setState(endState);
432 : }
433 0 : catch (...)
434 : {
435 0 : context.setState(endState);
436 0 : throw;
437 0 : }
438 0 : }
439 :
440 0 : void InitializedMap_Default::shutdown(CommandableContext& context, uint64_t timeout)
441 : {
442 0 : Commandable& ctxt = context.getOwner();
443 :
444 0 : CommandableState& endState = context.getState();
445 :
446 0 : context.clearState();
447 : try
448 : {
449 0 : ctxt.badTransition(__func__);
450 0 : context.setState(endState);
451 : }
452 0 : catch (...)
453 : {
454 0 : context.setState(endState);
455 0 : throw;
456 0 : }
457 0 : }
458 :
459 0 : void InitializedMap_Default::soft_init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
460 : {
461 0 : Commandable& ctxt = context.getOwner();
462 :
463 0 : CommandableState& endState = context.getState();
464 :
465 0 : context.clearState();
466 : try
467 : {
468 0 : ctxt.badTransition(__func__);
469 0 : context.setState(endState);
470 : }
471 0 : catch (...)
472 : {
473 0 : context.setState(endState);
474 0 : throw;
475 0 : }
476 0 : }
477 :
478 0 : void InitializedMap_Default::reinit(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
479 : {
480 0 : Commandable& ctxt = context.getOwner();
481 :
482 0 : CommandableState& endState = context.getState();
483 :
484 0 : context.clearState();
485 : try
486 : {
487 0 : ctxt.badTransition(__func__);
488 0 : context.setState(endState);
489 : }
490 0 : catch (...)
491 : {
492 0 : context.setState(endState);
493 0 : throw;
494 0 : }
495 0 : }
496 :
497 0 : void InitializedMap_Ready::init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
498 : {
499 0 : context.getState().Exit(context);
500 0 : context.popState();
501 0 : context.init(pset, timeout, timestamp);
502 0 : }
503 :
504 1 : void InitializedMap_Ready::reinit(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
505 : {
506 1 : Commandable& ctxt = context.getOwner();
507 :
508 1 : CommandableState& endState = context.getState();
509 :
510 1 : context.clearState();
511 : try
512 : {
513 1 : ctxt.do_reinitialize(pset, timeout, timestamp);
514 1 : context.setState(endState);
515 : }
516 0 : catch (...)
517 : {
518 0 : context.setState(endState);
519 0 : throw;
520 0 : }
521 1 : }
522 :
523 1 : void InitializedMap_Ready::shutdown(CommandableContext& context, uint64_t timeout)
524 : {
525 1 : context.getState().Exit(context);
526 1 : context.popState();
527 1 : context.shutdown(timeout);
528 1 : }
529 :
530 1 : void InitializedMap_Ready::soft_init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
531 : {
532 1 : Commandable& ctxt = context.getOwner();
533 :
534 1 : CommandableState& endState = context.getState();
535 :
536 1 : context.clearState();
537 : try
538 : {
539 1 : ctxt.do_soft_initialize(pset, timeout, timestamp);
540 1 : context.setState(endState);
541 : }
542 0 : catch (...)
543 : {
544 0 : context.setState(endState);
545 0 : throw;
546 0 : }
547 1 : }
548 :
549 1 : void InitializedMap_Ready::start(CommandableContext& context, art::RunID id, uint64_t timeout, uint64_t timestamp)
550 : {
551 1 : Commandable& ctxt = context.getOwner();
552 :
553 1 : if (ctxt.do_start(id, timeout, timestamp))
554 : {
555 1 : context.getState().Exit(context);
556 : // No actions.
557 1 : context.setState(InitializedMap::InRun);
558 :
559 1 : context.getState().Entry(context);
560 1 : context.pushState(InRunMap::Running);
561 1 : context.getState().Entry(context);
562 : }
563 : else
564 : {
565 : }
566 1 : }
567 :
568 1 : void InitializedMap_InRun::Exit(CommandableContext& context)
569 :
570 : {
571 1 : Commandable& ctxt = context.getOwner();
572 :
573 1 : ctxt.InRunExit();
574 1 : }
575 :
576 1 : void InitializedMap_InRun::stop(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
577 : {
578 1 : Commandable& ctxt = context.getOwner();
579 :
580 1 : if (ctxt.do_stop(timeout, timestamp))
581 : {
582 1 : context.getState().Exit(context);
583 : // No actions.
584 1 : context.setState(InitializedMap::Ready);
585 1 : context.getState().Entry(context);
586 : }
587 : else
588 : {
589 0 : InitializedMap_Default::stop(context, timeout, timestamp);
590 : }
591 1 : }
592 :
593 0 : void InRunMap_Default::init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
594 : {
595 0 : Commandable& ctxt = context.getOwner();
596 :
597 0 : CommandableState& endState = context.getState();
598 :
599 0 : context.clearState();
600 : try
601 : {
602 0 : ctxt.badTransition(__func__);
603 0 : context.setState(endState);
604 : }
605 0 : catch (...)
606 : {
607 0 : context.setState(endState);
608 0 : throw;
609 0 : }
610 0 : }
611 :
612 0 : void InRunMap_Default::start(CommandableContext& context, art::RunID id, uint64_t timeout, uint64_t timestamp)
613 : {
614 0 : Commandable& ctxt = context.getOwner();
615 :
616 0 : CommandableState& endState = context.getState();
617 :
618 0 : context.clearState();
619 : try
620 : {
621 0 : ctxt.badTransition(__func__);
622 0 : context.setState(endState);
623 : }
624 0 : catch (...)
625 : {
626 0 : context.setState(endState);
627 0 : throw;
628 0 : }
629 0 : }
630 :
631 0 : void InRunMap_Default::stop(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
632 : {
633 0 : Commandable& ctxt = context.getOwner();
634 :
635 0 : CommandableState& endState = context.getState();
636 :
637 0 : context.clearState();
638 : try
639 : {
640 0 : ctxt.badTransition(__func__);
641 0 : context.setState(endState);
642 : }
643 0 : catch (...)
644 : {
645 0 : context.setState(endState);
646 0 : throw;
647 0 : }
648 0 : }
649 :
650 0 : void InRunMap_Default::pause(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
651 : {
652 0 : Commandable& ctxt = context.getOwner();
653 :
654 0 : CommandableState& endState = context.getState();
655 :
656 0 : context.clearState();
657 : try
658 : {
659 0 : ctxt.badTransition(__func__);
660 0 : context.setState(endState);
661 : }
662 0 : catch (...)
663 : {
664 0 : context.setState(endState);
665 0 : throw;
666 0 : }
667 0 : }
668 :
669 0 : void InRunMap_Default::resume(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
670 : {
671 0 : Commandable& ctxt = context.getOwner();
672 :
673 0 : CommandableState& endState = context.getState();
674 :
675 0 : context.clearState();
676 : try
677 : {
678 0 : ctxt.badTransition(__func__);
679 0 : context.setState(endState);
680 : }
681 0 : catch (...)
682 : {
683 0 : context.setState(endState);
684 0 : throw;
685 0 : }
686 0 : }
687 :
688 0 : void InRunMap_Default::shutdown(CommandableContext& context, uint64_t timeout)
689 : {
690 0 : Commandable& ctxt = context.getOwner();
691 :
692 0 : CommandableState& endState = context.getState();
693 :
694 0 : context.clearState();
695 : try
696 : {
697 0 : ctxt.badTransition(__func__);
698 0 : context.setState(endState);
699 : }
700 0 : catch (...)
701 : {
702 0 : context.setState(endState);
703 0 : throw;
704 0 : }
705 0 : }
706 :
707 0 : void InRunMap_Default::soft_init(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
708 : {
709 0 : Commandable& ctxt = context.getOwner();
710 :
711 0 : CommandableState& endState = context.getState();
712 :
713 0 : context.clearState();
714 : try
715 : {
716 0 : ctxt.badTransition(__func__);
717 0 : context.setState(endState);
718 : }
719 0 : catch (...)
720 : {
721 0 : context.setState(endState);
722 0 : throw;
723 0 : }
724 0 : }
725 :
726 0 : void InRunMap_Default::reinit(CommandableContext& context, fhicl::ParameterSet const& pset, uint64_t timeout, uint64_t timestamp)
727 : {
728 0 : Commandable& ctxt = context.getOwner();
729 :
730 0 : CommandableState& endState = context.getState();
731 :
732 0 : context.clearState();
733 : try
734 : {
735 0 : ctxt.badTransition(__func__);
736 0 : context.setState(endState);
737 : }
738 0 : catch (...)
739 : {
740 0 : context.setState(endState);
741 0 : throw;
742 0 : }
743 0 : }
744 :
745 0 : void InRunMap_Running::in_run_failure(CommandableContext& context)
746 : {
747 0 : context.getState().Exit(context);
748 0 : context.setState(InRunMap::InRunError);
749 0 : context.getState().Entry(context);
750 0 : }
751 :
752 1 : void InRunMap_Running::pause(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
753 : {
754 1 : Commandable& ctxt = context.getOwner();
755 :
756 1 : if (ctxt.do_pause(timeout, timestamp))
757 : {
758 1 : context.getState().Exit(context);
759 : // No actions.
760 1 : context.setState(InRunMap::Paused);
761 1 : context.getState().Entry(context);
762 : }
763 : else
764 : {
765 : }
766 1 : }
767 :
768 1 : void InRunMap_Running::stop(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
769 : {
770 1 : context.getState().Exit(context);
771 1 : context.popState();
772 1 : context.stop(timeout, timestamp);
773 1 : }
774 :
775 1 : void InRunMap_Paused::resume(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
776 : {
777 1 : Commandable& ctxt = context.getOwner();
778 :
779 1 : if (ctxt.do_resume(timeout, timestamp))
780 : {
781 1 : context.getState().Exit(context);
782 : // No actions.
783 1 : context.setState(InRunMap::Running);
784 1 : context.getState().Entry(context);
785 : }
786 : else
787 : {
788 : }
789 1 : }
790 :
791 0 : void InRunMap_Paused::stop(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
792 : {
793 0 : context.getState().Exit(context);
794 0 : context.popState();
795 0 : context.stop(timeout, timestamp);
796 0 : }
797 :
798 0 : void InRunMap_InRunError::pause(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
799 : {
800 0 : Commandable& ctxt = context.getOwner();
801 :
802 0 : if (ctxt.do_pause(timeout, timestamp))
803 : {
804 0 : context.getState().Exit(context);
805 : // No actions.
806 0 : context.setState(InRunMap::Paused);
807 0 : context.getState().Entry(context);
808 : }
809 : else
810 : {
811 : }
812 0 : }
813 :
814 0 : void InRunMap_InRunError::stop(CommandableContext& context, uint64_t timeout, uint64_t timestamp)
815 : {
816 0 : context.getState().Exit(context);
817 0 : context.popState();
818 0 : context.stop(timeout, timestamp);
819 0 : }
820 : } // namespace artdaq
821 :
822 : #pragma GCC diagnostic pop
823 : //
824 : // Local variables:
825 : // buffer-read-only: t
826 : // End:
827 : //
|