Antares Simulator
Power System Simulator
|
List of clusters. More...
#include <cluster_list.h>
Public Member Functions | |
std::string | typeID () const override |
bool | loadFromFolder (Study &s, const std::filesystem::path &folder, Area *area) |
Get the size (bytes) occupied in memory by a ThermalClusterList structure. | |
Constructor & Destructor | |
ThermalClusterList () | |
Default constructor. | |
virtual | ~ThermalClusterList () |
Destructor. | |
Spinning | |
void | calculationOfSpinning () |
Calculation of Spinning for all thermal clusters. | |
void | reverseCalculationOfSpinning () |
Calculation of Spinning for all thermal clusters (reverse) | |
![]() | |
void | clearAll () |
bool | empty () const |
ThermalCluster * | findInAll (std::string_view id) const |
Try to find a cluster from its id (const) in the complete cluster list. | |
bool | exists (const Data::ClusterName &id) const |
Get if a cluster exists. | |
auto | each_enabled () const |
std::vector< std::shared_ptr< ThermalCluster > > | all () const |
bool | rename (Data::ClusterName idToFind, Data::ClusterName newName) |
Rename a cluster. | |
virtual bool | remove (const Data::ClusterName &id) |
Remove properly a cluster. | |
SharedPtr | operator[] (std::size_t idx) |
SharedPtr | operator[] (std::size_t idx) const |
SharedPtr | enabledClusterAt (unsigned int index) const |
void | resizeAllTimeseriesNumbers (uint n) const |
Resize all matrices dedicated to the sampled timeseries numbers. | |
void | storeTimeseriesNumbers (Solver::IResultWriter &writer) const |
bool | forceReload (bool reload=false) const |
Invalidate all clusters. | |
void | markAsModified () const |
Mark the clusters as modified. | |
void | retrieveTotalCapacityAndUnitCount (double &total, uint &unitCount) const |
Retrieve the total capacity and the total unit count. | |
unsigned int | enabledCount () const |
unsigned int | allClustersCount () const |
void | addToCompleteList (std::shared_ptr< ThermalCluster > cluster) |
void | sortCompleteList () |
bool | loadDataSeriesFromFolder (Study &study, const std::filesystem::path &folder) |
bool | saveDataSeriesToFolder (const AnyString &folder) const |
Mustrun | |
void | enableMustrunForEveryone () |
Enable the 'mustrun' mode for every cluster. | |
auto | each_mustrun_and_enabled () const |
auto | each_enabled_and_not_mustrun () const |
void | ensureDataPrepro () |
Ensure data for the prepro are initialized. | |
bool | loadPreproFromFolder (Study &s, const std::filesystem::path &folder) |
Load data related to the preprocessor from a list of thermal clusters from a folder. | |
bool | validatePrepro (const Study &study) |
bool | validateClusters (const Parameters ¶m) const |
bool | loadEconomicCosts (Study &s, const std::filesystem::path &folder) |
bool | savePreproToFolder (const AnyString &folder) const |
bool | saveEconomicCosts (const AnyString &folder) const |
bool | saveToFolder (const AnyString &folder) const override |
unsigned int | enabledAndMustRunCount () const |
unsigned int | enabledAndNotMustRunCount () const |
Additional Inherited Members | |
![]() | |
using | SharedPtr |
![]() | |
void | rebuildIndexes () |
![]() | |
std::vector< std::shared_ptr< ThermalCluster > > | allClusters_ |
List of clusters.
void Antares::Data::ThermalClusterList::enableMustrunForEveryone | ( | ) |
Enable the 'mustrun' mode for every cluster.
This method is especially useful for the adequacy mode, where all clusters must be in mustrun mode
void Antares::Data::ThermalClusterList::ensureDataPrepro | ( | ) |
Ensure data for the prepro are initialized.
l | The list of thermal clusters |
bool Antares::Data::ThermalClusterList::loadFromFolder | ( | Study & | s, |
const std::filesystem::path & | folder, | ||
Area * | area ) |
Get the size (bytes) occupied in memory by a ThermalClusterList
structure.
bool Antares::Data::ThermalClusterList::loadPreproFromFolder | ( | Study & | s, |
const std::filesystem::path & | folder ) |
Load data related to the preprocessor from a list of thermal clusters from a folder.
l | A list of thermal clusters |
folder | The target folder |
|
overridevirtual |
Implements Antares::Data::ClusterList< ThermalCluster >.
|
overridevirtual |
Implements Antares::Data::ClusterList< ThermalCluster >.