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

Public Member Functions

ComponentBuilderwithId (std::string_view id)
 Sets the ID of the component.
 
ComponentBuilderwithModel (const Model *model)
 Sets the model of the component.
 
ComponentBuilderwithParameterValues (std::map< std::string, Expressions::Visitors::ParameterTypeAndValue > parameter_values)
 Sets the parameter values of the component. The parameters included should be all of the model's parameters.
 
ComponentBuilderwithScenarioGroupId (const std::string &scenario_group_id)
 Sets the ID of the scenario group to which the component belongs.
 
Component build ()
 Builds and returns the Component object.
 

Member Function Documentation

◆ build()

Component Antares::Study::SystemModel::ComponentBuilder::build ( )

Builds and returns the Component object.

Returns
The constructed Component object.

◆ withId()

ComponentBuilder & Antares::Study::SystemModel::ComponentBuilder::withId ( std::string_view id)

Sets the ID of the component.

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

◆ withModel()

ComponentBuilder & Antares::Study::SystemModel::ComponentBuilder::withModel ( const Model * model)

Sets the model of the component.

Parameters
modelThe model to set.
Returns
Reference to the ComponentBuilder object.

◆ withParameterValues()

ComponentBuilder & Antares::Study::SystemModel::ComponentBuilder::withParameterValues ( std::map< std::string, Expressions::Visitors::ParameterTypeAndValue > parameter_values)

Sets the parameter values of the component. The parameters included should be all of the model's parameters.

Parameters
parameter_valuesThe map of parameter values to set.
Returns
Reference to the ComponentBuilder object.

◆ withScenarioGroupId()

ComponentBuilder & Antares::Study::SystemModel::ComponentBuilder::withScenarioGroupId ( const std::string & scenario_group_id)

Sets the ID of the scenario group to which the component belongs.

Parameters
scenario_group_idThe scenario group ID to set.
Returns
Reference to the ComponentBuilder object.

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