#include <ObservableReaderStateService.h>
Manages the internal state of an AbstractObservableLocalReader Process InternalEvent against the current state
◆ ObservableReaderStateService()
◆ ~ObservableReaderStateService()
keyple::core::seproxy::plugin::ObservableReaderStateService::~ObservableReaderStateService |
( |
| ) |
|
|
default |
◆ getCurrentMonitoringState()
const MonitoringState & keyple::core::seproxy::plugin::ObservableReaderStateService::getCurrentMonitoringState |
( |
| ) |
const |
Get the reader current monitoring state
- Returns
- current monitoring state
◆ getCurrentState()
const std::shared_ptr< AbstractObservableState > keyple::core::seproxy::plugin::ObservableReaderStateService::getCurrentState |
( |
| ) |
const |
|
protected |
Get reader current state
- Returns
- reader current state
◆ getStates()
C++ vs. Java: added this function to stop all potential threads
◆ onEvent()
void keyple::core::seproxy::plugin::ObservableReaderStateService::onEvent |
( |
const InternalEvent |
event | ) |
|
Thread safe method to communicate an internal event to this reader Use this method to inform the reader of external event like a tag discovered or a Se inserted
- Parameters
-
◆ switchState()
void keyple::core::seproxy::plugin::ObservableReaderStateService::switchState |
( |
const MonitoringState |
stateId | ) |
|
Thread safe method to switch the state of this reader should only be invoked by this reader or its state
- Parameters
-
stateId | : next state to onActivate |
The documentation for this class was generated from the following files: