java.lang.Object
es.urjc.etsii.grafo.io.serializers.ResultsSerializer<S,I>
es.urjc.etsii.grafo.io.serializers.csv.CSVSerializer<S,I>
public class CSVSerializer<S extends Solution<S,I>,I extends Instance>
extends ResultsSerializer<S,I>
CSV serializer. By changing the separator in the configuration from ',' to '\t', can serialize to other formats such as TSV.
-
Field Summary
Fields inherited from class es.urjc.etsii.grafo.io.serializers.ResultsSerializer
referenceResultProviders
-
Constructor Summary
ConstructorsConstructorDescriptionCSVSerializer
(CSVConfig config, List<ReferenceResultProvider> referenceResultProviders) Create a new CSV serializer with a given configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
_serializeResults
(String experimentName, List<SolutionGeneratedEvent<S, I>> results, Path p) This procedure serialize the list of results to a specific format and generate the resultant file in a given pathMethods inherited from class es.urjc.etsii.grafo.io.serializers.ResultsSerializer
getConfig, serializeResults
-
Constructor Details
-
CSVSerializer
Create a new CSV serializer with a given configuration.- Parameters:
config
- CSV Serializer configuration
-
-
Method Details
-
_serializeResults
public void _serializeResults(String experimentName, List<SolutionGeneratedEvent<S, I>> results, Path p) This procedure serialize the list of results to a specific format and generate the resultant file in a given path- Specified by:
_serializeResults
in classResultsSerializer<S extends Solution<S,
I>, I extends Instance> - Parameters:
results
- list of resultsp
- path
-