StateConnection.hpp 819 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-09-10
  6. * Changed: 2020-09-10
  7. *
  8. * */
  9. #ifndef LS_STD_STATE_CONNECTION_HPP
  10. #define LS_STD_STATE_CONNECTION_HPP
  11. #include <memory>
  12. #include "../base/Class.hpp"
  13. #include "StateMachineTypes.hpp"
  14. namespace ls_std {
  15. class StateConnection : public Class {
  16. public:
  17. explicit StateConnection(StateConnectionId _connectionId, StateId _stateId);
  18. ~StateConnection() = default;
  19. StateConnectionId getConnectionId();
  20. StateId getStateId();
  21. bool isPassable();
  22. void updatePassCondition(bool _condition);
  23. private:
  24. bool condition {};
  25. StateConnectionId connectionId {};
  26. StateId stateId {};
  27. };
  28. }
  29. #endif