Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Study::SystemModel::LibraryBuilder Class Reference

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

LibraryBuilderwithId (const std::string &id)
 Sets the ID of the library.
 
LibraryBuilderwithDescription (const std::string &description)
 Sets the description of the library.
 
LibraryBuilderwithPortTypes (std::vector< PortType > &&portTypes)
 Sets the port types of the library.
 
LibraryBuilderwithModels (std::vector< Model > &&models)
 Sets the models of the library.
 
const Librarybuild () const
 Returns the Library object.
 

Detailed Description

Builder for the Library class Follow builder pattern: builder.Library().withId("id").withDescription("description").withPortTypes(portList).withModels(modelList).build();.

Member Function Documentation

◆ build()

const Library & Antares::Study::SystemModel::LibraryBuilder::build ( ) const

Returns the Library object.

Returns
The constructed Library object.

◆ withDescription()

LibraryBuilder & Antares::Study::SystemModel::LibraryBuilder::withDescription ( const std::string & description)

Sets the description of the library.

Parameters
descriptionThe description to set.
Returns
Reference to the LibraryBuilder object.

◆ withId()

LibraryBuilder & Antares::Study::SystemModel::LibraryBuilder::withId ( const std::string & id)

Sets the ID of the library.

Parameters
idThe ID to set.
Returns
Reference to the LibraryBuilder object.

◆ withModels()

LibraryBuilder & Antares::Study::SystemModel::LibraryBuilder::withModels ( std::vector< Model > && models)

Sets the models of the library.

Parameters
modelsA vector of Model objects to set.
Returns
Reference to the LibraryBuilder object.

inputs it not garanteed to be valid after the call

◆ withPortTypes()

LibraryBuilder & Antares::Study::SystemModel::LibraryBuilder::withPortTypes ( std::vector< PortType > && portTypes)

Sets the port types of the library.

Parameters
portTypesA vector of PortType objects to set.
Returns
Reference to the LibraryBuilder object.

inputs it not garanteed to be valid after the call


The documentation for this class was generated from the following files: