|
Antares Simulator
Power System Simulator
|
Generic list of clustersThis class implements the base functions for a list of cluster It's used for thermal and renewable clusters. More...
#include <cluster_list.h>
Public Types | |
| using | SharedPtr = typename std::shared_ptr< ClusterT > |
Public Member Functions | |
| void | clearAll () |
| bool | empty () const |
| ClusterT * | findInAll (std::string_view id) const |
| Try to find a cluster from its id (const) in the complete cluster list. More... | |
| bool | exists (const std::string &id) const |
| Get if a cluster exists. More... | |
| auto | each_enabled () const |
| std::vector< std::shared_ptr< ClusterT > > | all () const |
| bool | rename (std::string idToFind, std::string newName) |
| Rename a cluster. More... | |
| virtual bool | remove (const std::string &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. More... | |
| 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. More... | |
| unsigned int | enabledCount () const |
| unsigned int | allClustersCount () const |
| void | addToCompleteList (std::shared_ptr< ClusterT > cluster) |
| void | sortCompleteList () |
IO functions | |
| bool | loadDataSeriesFromFolder (Study &study, const std::filesystem::path &folder) |
| bool | saveDataSeriesToFolder (const AnyString &folder) const |
Protected Member Functions | |
| virtual std::string | typeID () const =0 |
| void | rebuildIndexes () |
Protected Attributes | |
| std::vector< std::shared_ptr< ClusterT > > | allClusters_ |
Generic list of clusters
This class implements the base functions for a list of cluster It's used for thermal and renewable clusters.
| bool Antares::Data::ClusterList< ClusterT >::exists | ( | const std::string & | id | ) | const |
Get if a cluster exists.
| id | ID of the cluster to find |
| ClusterT * Antares::Data::ClusterList< ClusterT >::findInAll | ( | std::string_view | id | ) | const |
Try to find a cluster from its id (const) in the complete cluster list.
| id | ID of the cluster to find |
| bool Antares::Data::ClusterList< ClusterT >::rename | ( | std::string | idToFind, |
| std::string | newName | ||
| ) |
Rename a cluster.
| idToFind | ID of the cluster to rename |
| newName | The new name for the cluster |
The indexes for clusters will be rebuilt.
| void Antares::Data::ClusterList< ClusterT >::resizeAllTimeseriesNumbers | ( | uint | n | ) | const |
Resize all matrices dedicated to the sampled timeseries numbers.
| n | A number of years |
| void Antares::Data::ClusterList< ClusterT >::retrieveTotalCapacityAndUnitCount | ( | double & | total, |
| uint & | unitCount | ||
| ) | const |
Retrieve the total capacity and the total unit count.
Pseudo code: