![]() |
Documentation of UrbanFireXDT
Documentation of UrbanFireXDT
|
#include <units.h>

Public Member Functions | |
| ~MeasurementUnit () | |
| const std::string * | get_meterPointName () const |
| Returns the name of the meter point. | |
| unsigned long | get_internal_id () const |
| Returns the (consecutive) internal ID of the measurement unit. | |
| unsigned long | get_meUID () const |
| Returns the ID as given in the system structe database. | |
| unsigned long | get_locationID () const |
| Returns the ID of the location. | |
| bool | load_data () |
| Load the data as given by the member variable data_source_path. Returns false if an error happend during file loading. | |
| bool | has_demand () const |
| bool | has_feedin () const |
| bool | has_pv () const |
| bool | has_pv_residential () const |
| bool | has_pv_open_space () const |
| bool | has_bs () const |
| bool | has_hp () const |
| bool | has_evchst () const |
| bool | has_chp () const |
| bool | has_wind () const |
| int | get_expansion_combination () const |
| double | get_total_demand_kWh () const |
| Returns the total demand of the measurement unit over the complete time span of data. | |
| bool | compute_next_value (unsigned long ts) |
| float | get_current_ts_rsm_value () const |
| float | get_rsm_load_at_ts (unsigned long ts) const |
| float | get_rsm_demand_at_ts (unsigned long ts) const |
| float | get_rsm_feedin_at_ts (unsigned long ts) const |
Static Public Member Functions | |
| static bool | InstantiateNewMeasurementUnit (size_t meUID, size_t public_unitID, std::string *meterPointName, size_t locID, bool has_demand, bool has_feedin, bool has_pv_resid, bool has_pv_opens, bool has_bess, bool has_hp, bool has_wind, bool has_evchst, bool has_chp, const std::string &data_source_path) |
| static void | InitializeStaticVariables (unsigned long n_MUs) |
| static void | VacuumInstancesAndStaticVariables () |
| static size_t | GetNumberOfInstances () |
| static bool | LoadDataForAllInstances () |
| Loads the data for all created instances. | |
| static MeasurementUnit * | GetInstancePublicID (unsigned long meUID) |
| Returns instance with public id meUID (or NULL, if the ID is not available) | |
The measurement unit represents an existing unit, which is measured by an existing smart meter where we have real measured data for. If there exist additional components, like PV, in reality, an instance of this class knows this.
| MeasurementUnit::~MeasurementUnit | ( | ) |
| bool MeasurementUnit::compute_next_value | ( | unsigned long | ts | ) |
|
inline |
|
inline |
|
inline |
Returns the (consecutive) internal ID of the measurement unit.
|
inline |
Returns the ID of the location.
|
inline |
Returns the name of the meter point.
|
inline |
Returns the ID as given in the system structe database.
| float MeasurementUnit::get_rsm_demand_at_ts | ( | unsigned long | ts | ) | const |
Returns the demand at the smart meter at a given time step in kW. In contrast to MeasurementUnit::get_rsm_load_at_ts(), it ignores feed-in. If there is no data available, it returns 0.0. This method does not change the object.
| ts | The time step for which the load should be computed |
| float MeasurementUnit::get_rsm_feedin_at_ts | ( | unsigned long | ts | ) | const |
Returns the feed-in at the smart meter at a given time step in kW. In contrast to MeasurementUnit::get_rsm_load_at_ts(), it ignores the demand. If there is no data available, it returns 0.0. This method does not change the object.
| ts | The time step for which the load should be computed |
| float MeasurementUnit::get_rsm_load_at_ts | ( | unsigned long | ts | ) | const |
Returns the load at the smart meter at a given time step in kW. If there is no data available, it returns 0.0. This method does not change the object. The results equals to get_rsm_demand_at_ts(ts) - get_rsm_feedin_at_ts(ts)
| ts | The time step for which the load should be computed |
| double MeasurementUnit::get_total_demand_kWh | ( | ) | const |
Returns the total demand of the measurement unit over the complete time span of data.
|
static |
Returns instance with public id meUID (or NULL, if the ID is not available)
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
Instantiates a new measurement unit. Returns false, if the meUID is already defined.
| bool MeasurementUnit::load_data | ( | ) |
Load the data as given by the member variable data_source_path. Returns false if an error happend during file loading.
|
static |
Loads the data for all created instances.
|
static |