StateConnection.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-09-10
  6. * Changed: 2021-04-23
  7. *
  8. * */
  9. #include <ls_std/logic/StateConnection.hpp>
  10. ls_std::StateConnection::StateConnection(ls_std::StateConnectionId _connectionId, ls_std::StateId _stateId)
  11. : ls_std::Class("StateConnection"),
  12. connectionId(std::move(_connectionId)),
  13. stateId(std::move(_stateId))
  14. {}
  15. ls_std::StateConnectionId ls_std::StateConnection::getConnectionId()
  16. {
  17. return this->connectionId;
  18. }
  19. ls_std::StateId ls_std::StateConnection::getStateId()
  20. {
  21. return this->stateId;
  22. }
  23. bool ls_std::StateConnection::isPassable() const
  24. {
  25. return this->condition;
  26. }
  27. void ls_std::StateConnection::setConnectionId(ls_std::StateConnectionId _connectionId)
  28. {
  29. this->connectionId = std::move(_connectionId);
  30. }
  31. void ls_std::StateConnection::setStateId(ls_std::StateId _stateId)
  32. {
  33. this->stateId = std::move(_stateId);
  34. }
  35. void ls_std::StateConnection::updatePassCondition(bool _condition)
  36. {
  37. this->condition = _condition;
  38. }