1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2020-09-10
- * Changed: 2022-05-12
- *
- * */
- #ifndef LS_STD_STATE_CONNECTION_HPP
- #define LS_STD_STATE_CONNECTION_HPP
- #include <memory>
- #include <ls_std/core/Class.hpp>
- #include <ls_std/core/types/StateMachineTypes.hpp>
- namespace ls
- {
- namespace std
- {
- namespace logic
- {
- class StateConnection : public ls::std::core::Class
- {
- public:
- explicit StateConnection(const ls::std::core::type::state_connection_id &_connectionId, const ls::std::core::type::state_id &_stateId);
- ~StateConnection() override = default;
- ls::std::core::type::state_connection_id getConnectionId();
- ls::std::core::type::state_id getStateId();
- bool isPassable() const;
- void setConnectionId(const ls::std::core::type::state_connection_id &_connectionId);
- void setStateId(const ls::std::core::type::state_id &_stateId);
- void updatePassCondition(bool _condition);
- private:
- bool condition{};
- ls::std::core::type::state_connection_id connectionId{};
- ls::std::core::type::state_id stateId{};
- void _assignConnectionId(const ls::std::core::type::state_connection_id &_connectionId);
- void _assignStateId(const ls::std::core::type::state_id &_stateId);
- };
- }
- }
- }
- #endif
|