4 #include "FairMQDevice.h"
20 #ifdef HAVE_FAIRMQSTATEMACHINE
22 device->ChangeState(FairMQStateMachine::Event::ERROR_FOUND);
24 device->ChangeState(FairMQStateMachine::Event::END);
26 device->ChangeState(FairMQStateMachine::Event::internal_READY);
28 device->ChangeState(FairMQStateMachine::Event::internal_DEVICE_READY);
30 device->ChangeState(FairMQStateMachine::Event::internal_IDLE);
32 LOG(fatal) <<
"State Change not yet implemented";
33 device->ChangeState(FairMQStateMachine::Event::ERROR_FOUND);
37 device->ChangeState(fair::mq::Transition::ErrorFound);
39 device->ChangeState(fair::mq::Transition::End);
41 device->ChangeState(fair::mq::Transition::ResetTask);
43 device->ChangeState(fair::mq::Transition::ResetDevice);
45 device->ChangeState(fair::mq::Transition::Stop);
47 LOG(fatal) <<
"State Change not yet implemented";
48 device->ChangeState(fair::mq::Transition::ErrorFound);
54 #ifdef HAVE_FAIRMQSTATEMACHINE
56 LOG(info) <<
"Current State: " << device->GetCurrentStateName();
58 LOG(info) <<
"Current State: " << device->GetCurrentStateName();
63 #ifdef HAVE_FAIRMQSTATEMACHINE
65 return device->CheckCurrentState(FairMQStateMachine::State::RUNNING);
67 LOG(fatal) <<
"State not yet implemented";
68 device->ChangeState(FairMQStateMachine::Event::ERROR_FOUND);
73 return !(device->NewStatePending());
75 LOG(fatal) <<
"State not yet implemented";
76 device->ChangeState(fair::mq::Transition::ErrorFound);