leaf-analysis/src/simulation/ScalabilityTesting.java
/**
	 * This method converts the model file sent by the frontend into the ModelSpecPojo in order to be analysed
	 * @param filePath
	 * Path to the file with the frontend model
	 * @return
	 * ModelSpecPojo backend model
	 */
This method converts the model file sent by the frontend into the ModelSpecPojo in order to be analysed
@param filePath
Path to the file with the frontend model
@return
ModelSpecPojo backend model
This method converts the model file sent by the frontend into the ModelSpecPojo in order to be analysed @param filePath Path to the file with the frontend model @return ModelSpecPojo backend model
private static ModelSpec convertModelFromFile(String filePath) {
		GsonBuilder builder = new GsonBuilder();
		builder.registerTypeAdapter(FuncWrapper.class, new FuncWrapperDeserializer());
		try {
			Gson gson = builder.create();
			InputObject frontendObject = gson.fromJson(new FileReader(filePath), InputObject.class);
			ModelSpec modelSpec =  ModelSpecBuilder.buildModelSpec(frontendObject);
			return modelSpec;
		} catch(Exception e) {
			throw new RuntimeException("Error in convertModelFromFile() method: /n" + e.getMessage());
		}
	}
private static ModelSpec convertModelFromFile ( String filePath ) { GsonBuilder builder = new GsonBuilder ( ) ; builder . registerTypeAdapter ( FuncWrapper . class , new FuncWrapperDeserializer ( ) ) ; try { Gson gson = builder . create ( ) ; InputObject frontendObject = gson . fromJson ( new FileReader ( filePath ) , InputObject . class ) ; ModelSpec modelSpec = ModelSpecBuilder . buildModelSpec ( frontendObject ) ; return modelSpec ; } catch ( Exception e ) { throw new RuntimeException ( "Error in convertModelFromFile() method: /n" + e . getMessage ( ) ) ; } }
This method converts the model file sent by the frontend into the ModelSpecPojo in order to be analysed
 @param filePath
 Path to the file with the frontend model
 @return
 ModelSpecPojo backend model
This method converts the model file sent by the frontend into the ModelSpecPojo in order to be analysed @param filePath Path to the file with the frontend model @return ModelSpecPojo backend model