leaf-analysis/src/simulation/Main.java
/**
	 * This method converts the model file sent by the front-end into the ModelSpec
	 * @param filePath
	 * Path to the file with the front-end model
	 * @return
	 * ModelSpec back-end model
	 */
This method converts the model file sent by the front-end into the ModelSpec
@param filePath
Path to the file with the front-end model
@return
ModelSpec back-end model
This method converts the model file sent by the front - end into the ModelSpec @param filePath Path to the file with the front - end model @return ModelSpec back - end model
private static ModelSpec convertBackboneModelFromFile(String filePath) {
		GsonBuilder builder = new GsonBuilder();
		try {
			Gson gson = builder.create();
			IMain frontendObject = gson.fromJson(new FileReader(filePath), IMain.class);
			ModelSpec modelSpec =  BIModelSpecBuilder.buildModelSpec(frontendObject);
			return modelSpec;
		} catch(Exception e) {
			throw new RuntimeException("Error in convertModelFromFile() method: \n " + e.getMessage());
		}
	}
private static ModelSpec convertBackboneModelFromFile ( String filePath ) { GsonBuilder builder = new GsonBuilder ( ) ; try { Gson gson = builder . create ( ) ; IMain frontendObject = gson . fromJson ( new FileReader ( filePath ) , IMain . class ) ; ModelSpec modelSpec = BIModelSpecBuilder . 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 front-end into the ModelSpec
 @param filePath
 Path to the file with the front-end model
 @return
 ModelSpec back-end model
This method converts the model file sent by the front - end into the ModelSpec @param filePath Path to the file with the front - end model @return ModelSpec back - end model
//builder.registerTypeAdapter(FuncWrapper.class, new FuncWrapperDeserializer());