StateConnection.hpp 844 B

1234567891011121314151617181920212223242526272829303132333435363738
  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();
  19. ~StateConnection() = default;
  20. StateConnectionId getConnectionId();
  21. StateId getStateId();
  22. bool isPassable();
  23. void updatePassCondition(bool _condition);
  24. private:
  25. bool condition {};
  26. StateConnectionId connectionId {};
  27. StateId stateId {};
  28. };
  29. }
  30. #endif