java.lang.Object
es.urjc.etsii.grafo.results.ResultStore<S,I>
- Type Parameters:
S- solution typeI- instance type
In-memory generated-result store.
Solutions are retained strongly until explicitly released after final
serialization. Released solutions remain available on a best-effort basis
through a SoftReference.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindResult(UUID resultId) Find the stored result metadata by id.findSolution(UUID resultId) Find a solution by result id.List<WorkUnitResult<S, I>> getResultsForExperiment(String experimentName) Get an immutable insertion-ordered snapshot for an experiment.voidreleaseSolutionsForExperiment(String experimentName) Release all strong solution references belonging to an experiment.store(WorkUnitResult<S, I> result) Store a work-unit result.
-
Constructor Details
-
ResultStore
public ResultStore()
-
-
Method Details
-
store
Store a work-unit result.- Parameters:
result- work-unit result- Returns:
- stored work-unit result
-
findResult
Find the stored result metadata by id.After release, the returned result no longer directly contains the solution. Use
findSolution(UUID)when the solution is needed. -
findSolution
-
getResultsForExperiment
Get an immutable insertion-ordered snapshot for an experiment. -
releaseSolutionsForExperiment
Release all strong solution references belonging to an experiment. Cached objective values and custom properties remain in the stored result.
-