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. | |
LibraryBuilder & | withDescription (const std::string &description) |
Sets the description of the library. | |
LibraryBuilder & | withPortTypes (std::vector< PortType > &&portTypes) |
Sets the port types of the library. | |
LibraryBuilder & | withModels (std::vector< Model > &&models) |
Sets the models of the library. | |
const Library & | build () const |
Returns the Library object. | |
Builder for the Library class Follow builder pattern: builder.Library().withId("id").withDescription("description").withPortTypes(portList).withModels(modelList).build();.
const Library & Antares::Study::SystemModel::LibraryBuilder::build | ( | ) | const |
LibraryBuilder & Antares::Study::SystemModel::LibraryBuilder::withDescription | ( | const std::string & | description | ) |
Sets the description of the library.
description | The description to set. |
LibraryBuilder & Antares::Study::SystemModel::LibraryBuilder::withId | ( | const std::string & | id | ) |
Sets the ID of the library.
id | The ID to set. |
LibraryBuilder & Antares::Study::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::Study::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