Browse Source
			
			
			jani property stub
			
				
		jani property stub
	
		
	
			
				Former-commit-id:main37f8f63d43[formerly54bc32bfd0] Former-commit-id:e934d063fd
				 7 changed files with 122 additions and 25 deletions
			
			
		- 
					28src/parser/JaniParser.cpp
- 
					38src/parser/JaniParser.h
- 
					23src/storage/jani/Property.cpp
- 
					38src/storage/jani/Property.h
- 
					10src/utility/storm.cpp
- 
					3src/utility/storm.h
- 
					7test/functional/parser/JaniParserTest.cpp
| @ -0,0 +1,23 @@ | |||||
|  | #include "Property.h"
 | ||||
|  | namespace storm { | ||||
|  |     namespace jani { | ||||
|  |         Property::Property(std::string const& name, std::shared_ptr<const storm::logic::Formula> const& formula, std::string const& comment) | ||||
|  |         : name(name), formula(formula), comment(comment) | ||||
|  |         { | ||||
|  | 
 | ||||
|  |         } | ||||
|  | 
 | ||||
|  |         std::string const& Property::getName() const { | ||||
|  |             return this->name; | ||||
|  |         } | ||||
|  | 
 | ||||
|  |         std::string const& Property::getComment() const { | ||||
|  |             return this->comment; | ||||
|  |         } | ||||
|  | 
 | ||||
|  |         std::shared_ptr<storm::logic::Formula const> Property::getFormula() const { | ||||
|  |             return this->formula; | ||||
|  |         } | ||||
|  | 
 | ||||
|  |     } | ||||
|  | } | ||||
| @ -0,0 +1,38 @@ | |||||
|  | #pragma once | ||||
|  | 
 | ||||
|  | #include "src/logic/formulas.h" | ||||
|  | 
 | ||||
|  | namespace storm { | ||||
|  |     namespace jani { | ||||
|  |         class Property { | ||||
|  |             /** | ||||
|  |              * Constructs the property | ||||
|  |              * @param name the name | ||||
|  |              * @param formula the formula representation | ||||
|  |              * @param comment An optional comment | ||||
|  |              */ | ||||
|  |             Property(std::string const& name, std::shared_ptr<storm::logic::Formula const> const& formula, std::string const& comment = ""); | ||||
|  |             /** | ||||
|  |              * Get the provided name | ||||
|  |              * @return the name | ||||
|  |              */ | ||||
|  |             std::string const& getName() const; | ||||
|  |             /** | ||||
|  |              * Get the provided comment, if any | ||||
|  |              * @return the comment | ||||
|  |              */ | ||||
|  |             std::string const& getComment() const; | ||||
|  |             /** | ||||
|  |              * Get the formula | ||||
|  |              * @return the formula | ||||
|  |              */ | ||||
|  |             std::shared_ptr<storm::logic::Formula const> const& getFormula() const; | ||||
|  | 
 | ||||
|  |         private: | ||||
|  |             std::string name; | ||||
|  |             std::shared_ptr<storm::logic::Formula const> formula; | ||||
|  |             std::string comment; | ||||
|  |         }; | ||||
|  |     } | ||||
|  | } | ||||
|  | 
 | ||||
						Write
						Preview
					
					
					Loading…
					
					Cancel
						Save
					
		Reference in new issue