Closed flomnes closed 1 month ago
The problem is that Simulation::ITimeSeriesNumbersWriter
is not as generic as it seems.
It's write
function looks like this
class ITimeSeriesNumbersWriter {
public:
virtual ~ITimeSeriesNumbersWriter() = default;
virtual void write(const Data::BindingConstraintsList& list) = 0;
};
If we wanted to write other types of TS numbers, we'd need some kind of genericity on the contrary.
ANT-2170
See src/solver/simulation/timeseries-numbers.cpp
Also, don't pass
time_series_writer
to functionStoreTimeSeriesNumbersIntoOuput
if possible (@JasonMarechal25 mentions dependency injection)