#include <EndUses.hpp>
Public Member Functions | |
| void | addEndUse (double value, const EndUseFuelType &fuelType, const EndUseCategoryType &category, const std::string &subCategory="General") |
| add an end use | |
| Attribute | attribute () const |
| Returns the attribute. | |
| EndUses () | |
| Constructs a new end uses attribute. | |
| double | getEndUse (const EndUseFuelType &fuelType, const EndUseCategoryType &category) const |
| get end use value across sub categories | |
| double | getEndUse (const EndUseFuelType &fuelType, const EndUseCategoryType &category, const std::string &subCategory) const |
| get end use value | |
| double | getEndUseByCategory (const EndUseCategoryType &category) const |
| get end use value across fuel types and sub categories | |
| double | getEndUseByCategory (const EndUseCategoryType &category, const std::string &subCategory) const |
| get end use value across fuel types | |
| double | getEndUseByFuelType (const EndUseFuelType &fuelType) const |
| get end use value across categories and sub categories | |
| std::vector< std::string > | subCategories () const |
| get list of all sub cateogories | |
Static Public Member Functions | |
| static std::string | attributeName () |
| Returns the expected name for attributes of this type, 'EndUses'. | |
| static std::vector< EndUseCategoryType > | categories () |
| get list of all categories | |
| static boost::optional< EndUses > | fromAttribute (const Attribute &attribute) |
| Creates an EndUses wrapper around attribute if it is correctly formatted. | |
| static std::vector< EndUseFuelType > | fuelTypes () |
| get list of all fuel types | |
| static std::string | getUnitsForFuelType (const EndUseFuelType &fuelType) |
| get units for fuel type | |
| openstudio::EndUses::EndUses | ( | ) |
Constructs a new end uses attribute.
| void openstudio::EndUses::addEndUse | ( | double | value, |
| const EndUseFuelType & | fuelType, | ||
| const EndUseCategoryType & | category, | ||
| const std::string & | subCategory = "General" ) |
add an end use
| Attribute openstudio::EndUses::attribute | ( | ) | const |
Returns the attribute.
|
static |
Returns the expected name for attributes of this type, 'EndUses'.
|
static |
get list of all categories
|
static |
Creates an EndUses wrapper around attribute if it is correctly formatted.
|
static |
get list of all fuel types
| double openstudio::EndUses::getEndUse | ( | const EndUseFuelType & | fuelType, |
| const EndUseCategoryType & | category ) const |
get end use value across sub categories
| double openstudio::EndUses::getEndUse | ( | const EndUseFuelType & | fuelType, |
| const EndUseCategoryType & | category, | ||
| const std::string & | subCategory ) const |
get end use value
| double openstudio::EndUses::getEndUseByCategory | ( | const EndUseCategoryType & | category | ) | const |
get end use value across fuel types and sub categories
| double openstudio::EndUses::getEndUseByCategory | ( | const EndUseCategoryType & | category, |
| const std::string & | subCategory ) const |
get end use value across fuel types
| double openstudio::EndUses::getEndUseByFuelType | ( | const EndUseFuelType & | fuelType | ) | const |
get end use value across categories and sub categories
|
static |
get units for fuel type
| std::vector< std::string > openstudio::EndUses::subCategories | ( | ) | const |
get list of all sub cateogories