2019-03-06 11:55:10 +01:00
|
|
|
package org.gcube.portlets.user.performfishanalytics.client;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import org.gcube.portlets.user.performfishanalytics.shared.OutputFile;
|
|
|
|
import org.gcube.portlets.user.performfishanalytics.shared.PopulationType;
|
|
|
|
import org.gcube.portlets.user.performfishanalytics.shared.csv.CSVFile;
|
|
|
|
import org.gcube.portlets.user.performfishanalytics.shared.dataminer.DataMinerResponse;
|
|
|
|
import org.gcube.portlets.user.performfishanalytics.shared.performfishservice.PerformFishInitParameter;
|
|
|
|
import org.gcube.portlets.user.performfishanalytics.shared.performfishservice.PerformFishResponse;
|
|
|
|
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The client side stub for the RPC service.
|
|
|
|
*/
|
|
|
|
@RemoteServiceRelativePath("performfish")
|
|
|
|
public interface PerformFishAnalyticsService extends RemoteService {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param populationName
|
|
|
|
* @return
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
|
|
|
List<PopulationType> getListPopulationType(String populationName)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param populationTypeId
|
|
|
|
* @return
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
|
|
|
PopulationType getPopulationTypeWithListKPI(String populationTypeId)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param initParams
|
|
|
|
* @return
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
2019-03-11 17:21:32 +01:00
|
|
|
PerformFishInitParameter validParameters(
|
2019-03-06 11:55:10 +01:00
|
|
|
PerformFishInitParameter initParams)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param mapParameters
|
|
|
|
* @return
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
|
|
|
PerformFishResponse submitRequestToPerformFishService(Map<String, List<String>> mapParameters) throws Exception;
|
|
|
|
|
2019-05-08 16:53:36 +02:00
|
|
|
DataMinerResponse callingDataMinerPerformFishCorrelationAnalysis(PerformFishResponse result,
|
|
|
|
Map<String, List<String>> mapParameters) throws Exception;
|
2019-03-06 11:55:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param file
|
|
|
|
* @return
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
|
|
|
String getImageFile(OutputFile file)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param file
|
|
|
|
* @return
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
|
|
|
CSVFile readCSVFile(String URL)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param file
|
|
|
|
* @return
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
|
|
|
CSVFile getCSVFile(OutputFile file, boolean deleteAfter)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param mapParameters
|
|
|
|
* @return
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
|
|
|
DataMinerResponse callingDataMinerPerformFishAnalysis(
|
|
|
|
Map<String, List<String>> mapParameters)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param farmID
|
|
|
|
* @return
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
|
|
|
boolean checkGrantToAccessFarmID(String farmID)
|
|
|
|
throws Exception;
|
2019-05-08 16:53:36 +02:00
|
|
|
|
|
|
|
DataMinerResponse callingDataMinerPerformFishAnnualAnalysis(Map<String, List<String>> algorithmMapParameters)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
DataMinerResponse callingDataMinerPerformFishAnnualCorrelationAnalysis(PerformFishResponse peformFishReponse,
|
|
|
|
Map<String, List<String>> mapParameters) throws Exception;
|
2019-03-06 11:55:10 +01:00
|
|
|
}
|