#include <AbstractObservableState.h>
Inherited by keyple::core::seproxy::plugin::WaitForSeInsertion, keyple::core::seproxy::plugin::WaitForSeProcessing, keyple::core::seproxy::plugin::WaitForSeRemoval, and keyple::core::seproxy::plugin::WaitForStartDetect.
◆ AbstractObservableState() [1/2]
Create a new state with a state identifier and a monitor job
- Parameters
-
state | the state identifier |
reader | the current reader |
monitoringJob | the job to be executed in background (may be null if no background job is required) |
executorService | the executor service |
◆ AbstractObservableState() [2/2]
Create a new state with a state identifier
- Parameters
-
reader | : observable reader this currentState is attached to |
state | : name of the currentState |
◆ ~AbstractObservableState()
virtual keyple::core::seproxy::plugin::AbstractObservableState::~AbstractObservableState |
( |
| ) |
|
|
protectedvirtualdefault |
◆ getMonitoringState()
const MonitoringState & keyple::core::seproxy::plugin::AbstractObservableState::getMonitoringState |
( |
| ) |
const |
Get the current state identifier of the state machine
- Returns
- the current state identifier
◆ onActivate()
void keyple::core::seproxy::plugin::AbstractObservableState::onActivate |
( |
| ) |
|
Invoked when activated, a custom behaviour can be added here
◆ onDeactivate()
void keyple::core::seproxy::plugin::AbstractObservableState::onDeactivate |
( |
| ) |
|
◆ onEvent()
virtual void keyple::core::seproxy::plugin::AbstractObservableState::onEvent |
( |
const InternalEvent |
event | ) |
|
|
pure virtual |
◆ switchState()
void keyple::core::seproxy::plugin::AbstractObservableState::switchState |
( |
MonitoringState |
stateId | ) |
|
|
protected |
Switch state in the parent reader
- Parameters
-
◆ mCancellationFlag
std::atomic<bool> keyple::core::seproxy::plugin::AbstractObservableState::mCancellationFlag |
|
protected |
◆ mExecutorService
std::shared_ptr<ExecutorService> keyple::core::seproxy::plugin::AbstractObservableState::mExecutorService |
|
protected |
◆ mMonitoringEvent
std::future<void>* keyple::core::seproxy::plugin::AbstractObservableState::mMonitoringEvent |
|
protected |
Result of the background job if any
◆ mMonitoringJob
std::shared_ptr<AbstractMonitoringJob> keyple::core::seproxy::plugin::AbstractObservableState::mMonitoringJob |
C++ vs. Java: protected in Java, public in C++ to try and workaround threading issues
Background job definition if any
◆ mReader
◆ mState
MonitoringState keyple::core::seproxy::plugin::AbstractObservableState::mState |
|
protected |
Identifier of the currentState
The documentation for this class was generated from the following files: