@Service
public class Persistence
extends java.lang.Object
Constructor and Description |
---|
Persistence(ObjectiveService objectiveService,
InfoService infoService,
ExperimentService experimentService,
DistanceEuclideanService distanceEuclideanService,
ExecutionService executionService,
ExperimentConfigurationService experimentConfigurationService,
MapObjectiveNameService mapObjectiveNameService,
org.springframework.context.ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
SolutionSet |
queryNonDominatedSolutionsByExperiment(java.lang.String experimentID)
Get solution set by experiment
|
Execution |
save(Execution execution)
Save execution
|
ExperimentConfiguration |
save(ExperimentConfs conf)
Save experiment configs
|
java.util.List<Info> |
save(java.util.List<Info> infoResults)
Save all info results
|
void |
save(java.util.Map<java.lang.String,java.util.List<ObjectiveFunctionDomain>> objectiveFunctions)
Save objective functions
|
Experiment |
save(java.lang.String plaName,
java.lang.String algorithm,
java.lang.String description,
java.lang.String hash)
Save experiment
|
java.util.List<DistanceEuclidean> |
saveEuclideanDistance(java.util.HashMap<java.lang.String,java.lang.Double> results,
java.lang.String experimentId)
Save Euclidean Distance
|
MapObjectiveName |
saveObjectivesNames(java.util.List<java.lang.String> objectiveFunctions,
java.lang.String experimentId)
Save objective functions names
|
public Persistence(ObjectiveService objectiveService, InfoService infoService, ExperimentService experimentService, DistanceEuclideanService distanceEuclideanService, ExecutionService executionService, ExperimentConfigurationService experimentConfigurationService, MapObjectiveNameService mapObjectiveNameService, org.springframework.context.ApplicationContext applicationContext)
public java.util.List<Info> save(java.util.List<Info> infoResults)
infoResults
- info resultspublic Experiment save(java.lang.String plaName, java.lang.String algorithm, java.lang.String description, java.lang.String hash)
plaName
- pla namealgorithm
- optimization algorithmdescription
- experiment descriptionhash
- OPLA Thread Scope hashpublic void save(java.util.Map<java.lang.String,java.util.List<ObjectiveFunctionDomain>> objectiveFunctions)
objectiveFunctions
- objective functionspublic MapObjectiveName saveObjectivesNames(java.util.List<java.lang.String> objectiveFunctions, java.lang.String experimentId)
objectiveFunctions
- objective functionsexperimentId
- experiment Idpublic ExperimentConfiguration save(ExperimentConfs conf)
conf
- configspublic java.util.List<DistanceEuclidean> saveEuclideanDistance(java.util.HashMap<java.lang.String,java.lang.Double> results, java.lang.String experimentId)
results
- resultsexperimentId
- experiment idpublic Execution save(Execution execution)
execution
- executionpublic SolutionSet queryNonDominatedSolutionsByExperiment(java.lang.String experimentID)
experimentID
- experiment id