Browse Source
			
			
			merge branch 'jani_support' of https://sselab.de/lab9/private/git/storm into jani_support
			
				
		merge branch 'jani_support' of https://sselab.de/lab9/private/git/storm into jani_support
	
		
	
			
				Former-commit-id: f9617835f2
			
			
				main
			
			
		
				 4 changed files with 77 additions and 33 deletions
			
			
		- 
					15src/storage/jani/Model.cpp
 - 
					52src/storage/jani/Model.h
 - 
					28src/storage/jani/ModelType.cpp
 - 
					13src/storage/jani/ModelType.h
 
@ -0,0 +1,15 @@ | 
			
		|||||
 | 
				#include "src/storage/jani/Model.h"
 | 
			
		||||
 | 
				
 | 
			
		||||
 | 
				namespace storm { | 
			
		||||
 | 
				    namespace jani { | 
			
		||||
 | 
				         | 
			
		||||
 | 
				        Model::Model(ModelType const& modelType, uint64_t version) : modelType(modelType), version(version) { | 
			
		||||
 | 
				            // Intentionally left empty.
 | 
			
		||||
 | 
				        } | 
			
		||||
 | 
				         | 
			
		||||
 | 
				        bool Model::isValid(bool logDebug) const { | 
			
		||||
 | 
				            // TODO.
 | 
			
		||||
 | 
				        } | 
			
		||||
 | 
				         | 
			
		||||
 | 
				    } | 
			
		||||
 | 
				} | 
			
		||||
@ -0,0 +1,28 @@ | 
			
		|||||
 | 
				#include "src/storage/jani/ModelType.h"
 | 
			
		||||
 | 
				
 | 
			
		||||
 | 
				namespace storm { | 
			
		||||
 | 
				    namespace jani { | 
			
		||||
 | 
				         | 
			
		||||
 | 
				        std::ostream& operator<<(std::ostream& stream, ModelType const& type) { | 
			
		||||
 | 
				            switch (type) { | 
			
		||||
 | 
				                case ModelType::UNDEFINED: | 
			
		||||
 | 
				                    stream << "undefined"; | 
			
		||||
 | 
				                    break; | 
			
		||||
 | 
				                case ModelType::DTMC: | 
			
		||||
 | 
				                    stream << "dtmc"; | 
			
		||||
 | 
				                    break; | 
			
		||||
 | 
				                case ModelType::CTMC: | 
			
		||||
 | 
				                    stream << "ctmc"; | 
			
		||||
 | 
				                    break; | 
			
		||||
 | 
				                case ModelType::MDP: | 
			
		||||
 | 
				                    stream << "mdp"; | 
			
		||||
 | 
				                    break; | 
			
		||||
 | 
				                case ModelType::MA: | 
			
		||||
 | 
				                    stream << "ma"; | 
			
		||||
 | 
				                    break; | 
			
		||||
 | 
				            } | 
			
		||||
 | 
				            return stream; | 
			
		||||
 | 
				        } | 
			
		||||
 | 
				         | 
			
		||||
 | 
				    } | 
			
		||||
 | 
				} | 
			
		||||
@ -0,0 +1,13 @@ | 
			
		|||||
 | 
				#pragma once | 
			
		||||
 | 
				
 | 
			
		||||
 | 
				#include <ostream> | 
			
		||||
 | 
				
 | 
			
		||||
 | 
				namespace storm { | 
			
		||||
 | 
				    namespace jani { | 
			
		||||
 | 
				         | 
			
		||||
 | 
				        enum class ModelType {UNDEFINED = 0, DTMC = 1, CTMC = 2, MDP = 3, MA = 4}; | 
			
		||||
 | 
				      | 
			
		||||
 | 
				        std::ostream& operator<<(std::ostream& stream, ModelType const& type); | 
			
		||||
 | 
				         | 
			
		||||
 | 
				    } | 
			
		||||
 | 
				} | 
			
		||||
						Write
						Preview
					
					
					Loading…
					
					Cancel
						Save
					
		Reference in new issue