You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
902 B

  1. #include "src/models/AbstractModel.h"
  2. #include <iostream>
  3. /*!
  4. * This method will output the name of the model type or "Unknown".
  5. * If something went terribly wrong, i.e. if type does not contain any value
  6. * that is valid for a ModelType or some value of the enum was not
  7. * implemented here, it will output "Invalid ModelType".
  8. *
  9. * @param os Output stream.
  10. * @param type Model type.
  11. * @return Output stream os.
  12. */
  13. std::ostream& storm::models::operator<<(std::ostream& os, storm::models::ModelType const type) {
  14. switch (type) {
  15. case storm::models::Unknown: os << "Unknown"; break;
  16. case storm::models::DTMC: os << "DTMC"; break;
  17. case storm::models::CTMC: os << "CTMC"; break;
  18. case storm::models::MDP: os << "MDP"; break;
  19. case storm::models::CTMDP: os << "CTMDP"; break;
  20. case storm::models::MA: os << "MA"; break;
  21. default: os << "Invalid ModelType"; break;
  22. }
  23. return os;
  24. }