-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose API [ANT-1158] #1993
Expose API [ANT-1158] #1993
Conversation
src/libs/antares/study-loader/include/antares/study-loader/IStudyLoader.h
Outdated
Show resolved
Hide resolved
079f4bf
to
cab2675
Compare
src/libs/antares/study-loader/include/antares/study-loader/IStudyLoader.h
Outdated
Show resolved
Hide resolved
src/solver/simulation/include/antares/solver/simulation/solver.h
Outdated
Show resolved
Hide resolved
* | ||
* This class is responsible for translating a weekly problem to a linear programming problem. | ||
*/ | ||
class HebdoProblemToLpsTranslator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would make more sense to have plain functions here than a class:
there is no undrlying state to maintain, we don't need an object here, it's only functions with an input and an output.
Nice ref about free functions :) : https://www.youtube.com/watch?v=WLDT1lDOsb4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand however I tend to prefer to stick to OOP paradigme in case I must stub behavior. I can do the change if required though because atm there is no stubing required
(didn't watch the video yet)
fe91194
to
ce7675c
Compare
- Simplify the code by not renaming the process. - Rename "IO::parentPath" to "IO::parent_path" to match std signature.
# Conflicts: # .github/workflows/ubuntu.yml # src/CMakeLists.txt # src/solver/simulation/include/antares/solver/simulation/solver.hxx
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Expose Antares Solver in a library. the library and target are called AntaresAPI. This API expose one entry point to run a simulation on a study. The return value of this is a data structure with the path to the simulation and the weekly problems.