|
Antares Simulator
Power System Simulator
|
Builder for the Library class Follow builder pattern: builder.Library().withId("id").withDescription("description").withPortTypes(portList).withModels(modelList).build();. More...
#include <library.h>
Public Member Functions | |
| LibraryBuilder & | withId (const std::string &id) |
| Sets the ID of the library. More... | |
| LibraryBuilder & | withDescription (const std::string &description) |
| Sets the description of the library. More... | |
| LibraryBuilder & | withPortTypes (std::vector< PortType > &&portTypes) |
| Sets the port types of the library. More... | |
| LibraryBuilder & | withModels (std::vector< Model > &&models) |
| Sets the models of the library. More... | |
| const Library & | build () const |
| Returns the Library object. More... | |
Builder for the Library class Follow builder pattern: builder.Library().withId("id").withDescription("description").withPortTypes(portList).withModels(modelList).build();.
| const Library & Antares::ModelerStudy::SystemModel::LibraryBuilder::build | ( | ) | const |
| LibraryBuilder & Antares::ModelerStudy::SystemModel::LibraryBuilder::withDescription | ( | const std::string & | description | ) |
Sets the description of the library.
| description | The description to set. |
| LibraryBuilder & Antares::ModelerStudy::SystemModel::LibraryBuilder::withId | ( | const std::string & | id | ) |
Sets the ID of the library.
| id | The ID to set. |
| LibraryBuilder & Antares::ModelerStudy::SystemModel::LibraryBuilder::withModels | ( | std::vector< Model > && | models | ) |
Sets the models of the library.
| models | A vector of Model objects to set. |
inputs it not garanteed to be valid after the call
| LibraryBuilder & Antares::ModelerStudy::SystemModel::LibraryBuilder::withPortTypes | ( | std::vector< PortType > && | portTypes | ) |
Sets the port types of the library.
| portTypes | A vector of PortType objects to set. |
inputs it not garanteed to be valid after the call