123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2020-09-10
- * Changed: 2020-11-06
- *
- * */
- #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() = default;
- StateConnectionId getConnectionId();
- StateId getStateId();
- bool isPassable() const;
- void setConnectionId(StateConnectionId _connectionId);
- void setStateId(StateId _stateId);
- void updatePassCondition(bool _condition);
- private:
- bool condition {};
- StateConnectionId connectionId {};
- StateId stateId {};
- };
- }
- #endif
|