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.
		
		
		
		
		
			
		
			
				
					
					
						
							18 lines
						
					
					
						
							709 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							18 lines
						
					
					
						
							709 B
						
					
					
				| from . import storage | |
| from .storage import * | |
| 
 | |
| class ModelInstantiator: | |
|     def __init__(self, model): | |
|         if model.model_type == ModelType.MDP: | |
|             self._instantiator = PmdpInstantiator(model) | |
|         elif model.model_type == ModelType.DTMC: | |
|             self._instantiator = PdtmcInstantiator(model) | |
|         elif model.model_type == ModelType.CTMC: | |
|             self._instantiator = PctmcInstantiator(model) | |
|         elif model.model_type == ModelType.MA: | |
|             self._instantiator = PmaInstantiator(model) | |
|         else: | |
|             raise ValueError("Model type {} not supported".format(model.model_type)) | |
| 
 | |
|     def instantiate(self, point): | |
|         return self._instantiator.instantiate(point)
 |