1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef LS_STD_STATE_CONNECTION_HPP
- #define LS_STD_STATE_CONNECTION_HPP
- #include <memory>
- #include "../base/Class.hpp"
- #include "StateMachineTypes.hpp"
- namespace ls_std {
- class StateConnection : public Class {
- public:
- explicit StateConnection(StateConnectionId _connectionId, StateId _stateId);
- StateConnection();
- ~StateConnection() = default;
- StateConnectionId getConnectionId();
- StateId getStateId();
- bool isPassable();
- void updatePassCondition(bool _condition);
- private:
- bool condition {};
- StateConnectionId connectionId {};
- StateId stateId {};
- };
- }
- #endif
|