예제 #1
0
 def get_result(self):
     """ 
     Write result to file, load result data and create an AssimuloSimResult 
     object.
     
     Returns::
     
         The AssimuloSimResult object.
     """
     if not self.simulator.continuous_output:
         write_data(self.simulator, self.write_scaled_result, self.result_file_name)
     # load result file
     res = ResultDymolaTextual(self.result_file_name)
     # create and return result object
     return FMIResult(self.model, self.result_file_name, self.simulator, res, self.options)
예제 #2
0
 def get_result(self):
     """ 
     Write result to file, load result data and create an AssimuloSimResult 
     object.
     
     Returns::
     
         The AssimuloSimResult object.
     """
     if not self.simulator.continuous_output:
         write_data(self.simulator,self.write_scaled_result, self.result_file_name)
     # load result file
     res = ResultDymolaTextual(self.result_file_name)
     # create and return result object
     return AssimuloSimResult(self.model, self.result_file_name, self.simulator, 
         res, self.options)