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>
|
using | SharedPtr = typename std::shared_ptr<ClusterT> |
|
|
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.
|
|
bool | exists (const Data::ClusterName &id) const |
| Get if a cluster exists.
|
|
auto | each_enabled () const |
|
std::vector< std::shared_ptr< ClusterT > > | 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< ClusterT > cluster) |
|
void | sortCompleteList () |
|
|
bool | loadDataSeriesFromFolder (Study &study, const std::filesystem::path &folder) |
|
bool | saveDataSeriesToFolder (const AnyString &folder) const |
|
virtual bool | saveToFolder (const AnyString &folder) const =0 |
|
|
virtual std::string | typeID () const =0 |
|
void | rebuildIndexes () |
|
|
std::vector< std::shared_ptr< ClusterT > > | allClusters_ |
|
template<class ClusterT>
class Antares::Data::ClusterList< ClusterT >
Generic list of clusters
This class implements the base functions for a list of cluster It's used for thermal and renewable clusters.
◆ exists()
template<class ClusterT >
Get if a cluster exists.
- Parameters
-
id | ID of the cluster to find |
- Returns
- True if the cluster exists
◆ findInAll()
template<class ClusterT >
Try to find a cluster from its id (const) in the complete cluster list.
- Parameters
-
id | ID of the cluster to find |
- Returns
- A pointer to a cluster. nullptr if not found
◆ rename()
template<class ClusterT >
Rename a cluster.
- Parameters
-
idToFind | ID of the cluster to rename |
newName | The new name for the cluster |
- Returns
- True if the operation succeeded (the cluster has been renamed) false otherwise (not found or if another cluster has the same name)
The indexes for clusters will be rebuilt.
◆ resizeAllTimeseriesNumbers()
template<class ClusterT >
Resize all matrices dedicated to the sampled timeseries numbers.
- Parameters
-
◆ retrieveTotalCapacityAndUnitCount()
template<class ClusterT >
Retrieve the total capacity and the total unit count.
Pseudo code:
each thermal clusters do
total += clusters{unit count} * clusters{nominal capacity}
unit += clusters{unit count}
The documentation for this class was generated from the following files:
- src/libs/antares/study/include/antares/study/parts/common/cluster_list.h
- src/libs/antares/study/parts/common/cluster_list.cpp