14#include "keyple/core/service/WaitForStartDetectStateAdapter.hpp"
22WaitForStartDetectStateAdapter::WaitForStartDetectStateAdapter(
23 ObservableLocalReaderAdapter* reader,
24 std::shared_ptr<AbstractMonitoringJobAdapter> monitoringJob,
25 std::shared_ptr<ExecutorService> executorService)
26: AbstractObservableStateAdapter(
27 MonitoringState::WAIT_FOR_START_DETECTION,
34WaitForStartDetectStateAdapter::WaitForStartDetectStateAdapter(
35 ObservableLocalReaderAdapter* reader)
36: WaitForStartDetectStateAdapter(reader, nullptr, nullptr)
41WaitForStartDetectStateAdapter::onEvent(
const InternalEvent event)
44 "[fsmState=%, reader=%] Processing internal event [type=%]\n",
46 getReader()->getName(),
51 case InternalEvent::START_DETECT:
52 switchState(MonitoringState::WAIT_FOR_CARD_INSERTION);
57 "[fsmState=%, reader=%] Internal event ignored\n",
59 getReader()->getName());
64 "[fsmState=%, reader=%] Internal event processed [type=%]\n",
66 getReader()->getName(),
ObservableLocalReaderAdapter::InternalEvent InternalEvent