OpenStudioCore:model
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Static Public Member Functions | Protected Member Functions | Related Functions | List of all members
openstudio::model::Building Class Reference

#include <Building.hpp>

+ Inheritance diagram for openstudio::model::Building:

Public Member Functions

Constructors and Destructors
virtual ~Building ()
 
Getters
double northAxis () const
 
bool isNorthAxisDefaulted () const
 
boost::optional< double > nominalFloortoFloorHeight () const
 
boost::optional< intstandardsNumberOfStories () const
 
boost::optional< intstandardsNumberOfAboveGroundStories () const
 
boost::optional< intstandardsNumberOfLivingUnits () const
 
boost::optional< double > nominalFloortoCeilingHeight () const
 
boost::optional< std::string > standardsBuildingType () const
 Returns the standards building type. More...
 
std::vector< std::string > suggestedStandardsBuildingTypes () const
 If standardsBuildingType is empty, returns a list of suggestions. More...
 
bool relocatable () const
 
bool isRelocatableDefaulted () const
 
Setters
void setNorthAxis (double northAxis)
 
void resetNorthAxis ()
 
bool setNominalFloortoFloorHeight (double nominalFloortoFloorHeight)
 
void resetNominalFloortoFloorHeight ()
 
bool setStandardsNumberOfStories (int value)
 
void resetStandardsNumberOfStories ()
 
bool setStandardsNumberOfAboveGroundStories (int value)
 
void resetStandardsNumberOfAboveGroundStories ()
 
bool setStandardsNumberOfLivingUnits (int value)
 
void resetStandardsNumberOfLivingUnits ()
 
bool setNominalFloortoCeilingHeight (double nominalFloortoCeilingHeight)
 
void resetNominalFloortoCeilingHeight ()
 
bool setStandardsBuildingType (const std::string &standardsBuildingType)
 Sets the standards building type. More...
 
void resetStandardsBuildingType ()
 
void setRelocatable (bool isRelocatable)
 
void resetRelocatable ()
 
Other
boost::optional< SpaceTypespaceType () const
 Returns the building's space type. More...
 
bool setSpaceType (const SpaceType &spaceType)
 Sets the building's space type. More...
 
void resetSpaceType ()
 Resets the building's space type. More...
 
boost::optional
< DefaultConstructionSet
defaultConstructionSet () const
 Returns the default construction set that this space references directly. More...
 
bool setDefaultConstructionSet (const DefaultConstructionSet &defaultConstructionSet)
 Sets the default construction set for this space directly. More...
 
void resetDefaultConstructionSet ()
 Resets the default construction set for this space. More...
 
boost::optional
< DefaultScheduleSet
defaultScheduleSet () const
 Returns the default schedule set that this space references directly. More...
 
bool setDefaultScheduleSet (const DefaultScheduleSet &defaultScheduleSet)
 Sets the default schedule set for this space directly. More...
 
void resetDefaultScheduleSet ()
 Resets the default schedule set for this space. More...
 
std::vector< Metermeters () const
 Returns all Meter objects at the Building level. More...
 
boost::optional< Facilityfacility () const
 Returns the parent Facility object if it exists. More...
 
std::vector< Spacespaces () const
 Returns all of the Spaces in the Building. More...
 
std::vector< ShadingSurfaceGroupshadingSurfaceGroups () const
 Returns all ShadingSurfaceGroups at the Building level. More...
 
std::vector< ThermalZonethermalZones () const
 Returns all of the ThermalZones in the Building. More...
 
std::vector< SurfaceexteriorWalls () const
 Returns all Surfaces which are exterior walls. More...
 
std::vector< Surfaceroofs () const
 Returns all Surfaces which are roofs. More...
 
double floorArea () const
 Returns the total floor area in square meters. More...
 
boost::optional< double > conditionedFloorArea () const
 Returns the conditioned floor area in square meters. More...
 
double exteriorSurfaceArea () const
 Returns the total exterior surface area (m^2). More...
 
double exteriorWallArea () const
 Returns the total exterior wall area (m^2). More...
 
double airVolume () const
 Returns the total air volume (m^3) in the building. More...
 
double numberOfPeople () const
 Returns the number of people in the building. More...
 
double peoplePerFloorArea () const
 Returns the number of people per floor area (people/m^2). More...
 
double floorAreaPerPerson () const
 Returns the total floor area per person in this building (m^2/person). More...
 
double lightingPower () const
 Returns the lighting power (W) in this building. More...
 
double lightingPowerPerFloorArea () const
 Returns the lighting power density (W/m^2) of this building. More...
 
double lightingPowerPerPerson () const
 Returns the lighting power per person (W/person) of this building. More...
 
double electricEquipmentPower () const
 Returns the electric equipment power (W) of this building. More...
 
double electricEquipmentPowerPerFloorArea () const
 Returns the electric equipment power density (W/m^2) of this building. More...
 
double electricEquipmentPowerPerPerson () const
 Returns the electric equipment power per person (W/person) of this building. More...
 
double gasEquipmentPower () const
 Returns the gas equipment power (W) of this building. More...
 
double gasEquipmentPowerPerFloorArea () const
 Returns the gas equipment power density (W/m^2) of this building. More...
 
double gasEquipmentPowerPerPerson () const
 Returns the gas equipment power per person (W/person) of this building. More...
 
double infiltrationDesignFlowRate () const
 Returns the infiltration design flow rate (m^3/s) of this building. More...
 
double infiltrationDesignFlowPerSpaceFloorArea () const
 Returns the infiltration design flow per space floor area (m^3/m^2*s) of this building. More...
 
double infiltrationDesignFlowPerExteriorSurfaceArea () const
 Returns the infiltration design flow per exterior surface area (m^3/m^2*s) of this building. More...
 
double infiltrationDesignFlowPerExteriorWallArea () const
 Returns the infiltration design flow per exterior wall area (m^3/m^2*s) of this building. More...
 
double infiltrationDesignAirChangesPerHour () const
 Returns the infiltration design air changes per hour (1/h) of this building. More...
 
Transformation transformation () const
 Returns the Transformation from the Building coordinate system to world coordinates. More...
 
std::vector< std::vector
< Point3d > > 
generateSkylightPattern (double skylightToProjectedFloorRatio, double desiredWidth, double desiredHeight) const
 Returns a suggested pattern for skylights targeting a skylight to floor ratio with desired sizes. More...
 
- Public Member Functions inherited from openstudio::model::ParentObject
std::vector< IddObjectTypeallowableChildTypes () const
 Returns a vector of allowable children types. More...
 
std::vector< ModelObjectchildren () const
 Return direct child objects in the Model. More...
 
virtual ~ParentObject ()
 
- Public Member Functions inherited from openstudio::model::ModelObject
virtual ~ModelObject ()
 
ModelObject clone () const
 Creates a deep copy of this object, placing it in this object's model(). More...
 
ModelObject clone (Model model) const
 Creates a deep copy of this object, placing it in model. More...
 
Component createComponent () const
 Method for creating sharable Model snippets. More...
 
std::vector< std::string > relationshipNames () const
 Return all valid relationship names. More...
 
std::vector< Relationshiprelationships () const
 Return all relationships for this ModelObject. More...
 
boost::optional< RelationshipgetRelationship (const std::string &name) const
 Get the relationship named name, if it exists. More...
 
bool setRelationship (const std::string &name, boost::optional< ModelObject > relatedModelObject)
 Set this ModelObject's relationship name to point to relatedModelObject (or clear the relationship if relatedModelObject == boost::none). More...
 
bool setRelationship (const std::string &name, const Component &component)
 Inserts component into this model and sets this ModelObject's relationship name to point to component.primaryObject(). More...
 
std::vector< std::string > attributeNames () const
 Return all valid attribute names. More...
 
std::vector
< openstudio::Attribute
attributes () const
 Return all Attributes for this ModelObject. More...
 
boost::optional
< openstudio::Attribute
getAttribute (const std::string &name) const
 Get the attribute named name, if it exists. More...
 
bool isSettableAttribute (const std::string &name) const
 Is the named attribute settable. More...
 
bool isOptionalAttribute (const std::string &name) const
 Is the named attribute optional. More...
 
bool setAttribute (const std::string &name, bool value)
 Set the attribute named name, if it exists. More...
 
bool setAttribute (const std::string &name, int value)
 
bool setAttribute (const std::string &name, unsigned value)
 
bool setAttribute (const std::string &name, double value)
 
bool setAttribute (const std::string &name, const Quantity &value)
 
bool setAttribute (const std::string &name, const std::string &value)
 
bool setAttribute (const std::string &name, const char *value)
 
bool resetAttribute (const std::string &name)
 Reset the attribute named name. More...
 
Model model () const
 Returns the Model that contains this object. More...
 
boost::optional< ParentObjectparent () const
 Return this object's parent in the hierarchy, if it has one. More...
 
std::vector< ResourceObjectresources () const
 Get the resources directly used by this ModelObject. More...
 
template<typename T >
std::vector< T > getModelObjectSources () const
 Get all objects of type T that point to this object. More...
 
template<typename T >
std::vector< T > getModelObjectSources (IddObjectType iddObjectType) const
 Get all objects of type T that point to this object. More...
 
template<typename T >
boost::optional< T > getModelObjectTarget (unsigned index) const
 Get the object of type T pointed to by this object from field index. More...
 
template<typename T >
std::vector< T > getModelObjectTargets () const
 Get all objects of type T to which this object points. More...
 
const std::vector< std::string > & outputVariableNames () const
 Get all output variables names that could be associated with this object. More...
 
std::vector< OutputVariableoutputVariables () const
 Get all output variables associated with this object, must run simulation to generate data. More...
 
boost::optional
< openstudio::TimeSeries
getData (const OutputVariable &variable, const std::string &envPeriod) const
 Get data associated with this output variable and this object. More...
 
std::vector< LifeCycleCostlifeCycleCosts () const
 Returns the list of all LifeCycleCosts that refer to this object. More...
 
std::vector< IdfObjectremoveLifeCycleCosts ()
 Removes all LifeCycleCosts that refer to this object. More...
 
IddObjectType iddObjectType () const
 This is a virtual function that will tell you the type of iddObject you are dealing with. More...
 
bool setParent (ParentObject &newParent)
 set the parent, child may have to call non-const methods on the parent More...
 
bool operator< (const ModelObject &right) const
 
bool operator== (const ModelObject &other) const
 equality test More...
 
bool operator!= (const ModelObject &other) const
 inequality test More...
 
std::vector< ScheduleTypeKeygetScheduleTypeKeys (const Schedule &schedule) const
 Return the ScheduleTypeKeys indicating how schedule is used in this object. More...
 
boost::optional< ModelObjectconnectedObject (unsigned port) const
 
boost::optional< unsigned > connectedObjectPort (unsigned port) const
 
- Public Member Functions inherited from openstudio::WorkspaceObject
bool canBeSource () const
 
bool canBeSource (unsigned index, const std::vector< std::string > &refLists=std::vector< std::string >()) const
 
std::vector< std::string > canBeTarget () const
 
std::vector< unsigned > getSourceIndices (const Handle &targetHandle) const
 
std::vector< WorkspaceObjectgetSources (IddObjectType type) const
 
boost::optional< WorkspaceObjectgetTarget (unsigned index) const
 
IdfObject idfObject ()
 
IdfObject idfObject () const
 
bool initialized () const
 
bool isSource () const
 
bool isTarget () const
 
unsigned numSources () const
 
bool objectListFieldsEqual (const WorkspaceObject &other) const
 
bool objectListFieldsNonConflicting (const WorkspaceObject &other) const
 
bool operator< (const WorkspaceObject &right) const
 
std::ostream & operator<< (std::ostream &os, const WorkspaceObject &workspaceObject)
 
std::vector
< openstudio::IdfObject
remove ()
 
bool setPointer (unsigned index, const Handle &targetHandle)
 
std::vector< WorkspaceObjectsources () const
 
std::vector< WorkspaceObjecttargets () const
 
Workspace workspace () const
 
virtual ~WorkspaceObject ()
 
- Public Member Functions inherited from openstudio::IdfObject
std::string briefDescription () const
 
cast () const
 
std::vector< T > castVector (const std::vector< U > &objects)
 
std::vector< std::vector
< std::string > > 
clearExtensibleGroups ()
 
IdfObject clone (bool keepHandle=false) const
 
std::string comment () const
 
boost::optional< std::string > createName (bool overwrite=true)
 
std::vector< unsigned > dataFields () const
 
bool dataFieldsEqual (const IdfObject &other) const
 
std::vector< std::string > eraseExtensibleGroup (unsigned groupIndex)
 
std::vector< IdfExtensibleGroupextensibleGroups () const
 
boost::optional< std::string > fieldComment (unsigned index, bool returnDefault=false) const
 
boost::optional< double > getDouble (unsigned index, bool returnDefault=false) const
 
IdfExtensibleGroup getExtensibleGroup (unsigned groupIndex) const
 
std::vector< Handle > getHandles (const std::vector< T > &objects)
 
boost::optional< intgetInt (unsigned index, bool returnDefault=false) const
 
OSOptionalQuantity getQuantity (unsigned index, bool returnDefault=false, bool returnIP=false) const
 
boost::optional< std::string > getString (unsigned index, bool returnDefault=false, bool returnUninitializedEmpty=false) const
 
boost::optional< unsigned > getUnsigned (unsigned index, bool returnDefault=false) const
 
boost::optional< QUrl > getURL (unsigned index, bool returnDefault=false) const
 
Handle handle () const
 
IddObject iddObject () const
 
 IdfObject (IddObjectType type, bool fastName=false)
 
 IdfObject (const IddObject &, bool fastName=false)
 
 IdfObject (const IdfObject &other)
 
IdfExtensibleGroup insertExtensibleGroup (unsigned groupIndex)
 
IdfExtensibleGroup insertExtensibleGroup (unsigned groupIndex, const std::vector< std::string > &values)
 
bool isDataField (unsigned index) const
 
bool isEmpty (unsigned index) const
 
bool isObjectListField (unsigned index) const
 
bool isValid (StrictnessLevel level) const
 
boost::optional< unsigned > maxExtensibleGroups () const
 
boost::optional< unsigned > maxFields () const
 
unsigned minExtensibleGroups () const
 
unsigned minFields () const
 
boost::optional< std::string > name (bool returnDefault=false) const
 
std::string nameString (bool returnDefault=false) const
 
unsigned numExtensibleGroups () const
 
unsigned numFields () const
 
unsigned numNonextensibleFields () const
 
std::vector< unsigned > objectListFields () const
 
bool objectListFieldsEqual (const IdfObject &other) const
 
bool objectListFieldsNonConflicting (const IdfObject &other) const
 
bool operator!= (const IdfObject &other) const
 
std::ostream & operator<< (std::ostream &os, const IdfObject &IdfObject)
 
bool operator== (const IdfObject &other) const
 
boost::optional< T > optionalCast () const
 
std::vector< std::string > popExtensibleGroup ()
 
std::ostream & print (std::ostream &os) const
 
std::ostream & printField (std::ostream &os, unsigned index, bool isLastField=false) const
 
std::ostream & printName (std::ostream &os, bool hasFields=true) const
 
IdfExtensibleGroup pushExtensibleGroup ()
 
IdfExtensibleGroup pushExtensibleGroup (const std::vector< std::string > &values)
 
std::vector< unsigned > requiredFields () const
 
void setComment (const std::string &msg)
 
bool setDouble (unsigned index, double value)
 
bool setFieldComment (unsigned index, const std::string &cmnt)
 
bool setInt (unsigned index, int value)
 
boost::optional< std::string > setName (const std::string &newName)
 
bool setQuantity (unsigned index, const Quantity &q)
 
bool setString (unsigned index, const std::string &value)
 
bool setUnsigned (unsigned index, unsigned value)
 
std::vector< T > subsetCastVector (const std::vector< U > &original)
 
ValidityReport validityReport (StrictnessLevel level, bool checkNames=true) const
 
virtual ~IdfObject ()
 

Static Public Member Functions

static IddObjectType iddObjectType ()
 
- Static Public Member Functions inherited from openstudio::IdfObject
static boost::optional< IdfObjectload (const std::string &text)
 
static boost::optional< IdfObjectload (const std::string &text, const IddObject &iddObject)
 
static int printedFieldSpace ()
 

Protected Member Functions

 Building (Model &model)
 
- Protected Member Functions inherited from openstudio::model::ParentObject
 ParentObject (IddObjectType type, const Model &model)
 Constructs a new ParentObject object in the model. More...
 
- Protected Member Functions inherited from openstudio::model::ModelObject
 ModelObject (IddObjectType type, const Model &model, bool fastName=false)
 
 ModelObject (std::shared_ptr< detail::ModelObject_Impl > impl)
 
- Protected Member Functions inherited from openstudio::WorkspaceObject
 WorkspaceObject (std::shared_ptr< detail::WorkspaceObject_Impl > impl)
 
- Protected Member Functions inherited from openstudio::IdfObject
 IdfObject (std::shared_ptr< detail::IdfObject_Impl > impl)
 

Related Functions

(Note that these are not member functions.)

typedef std::vector< BuildingBuildingVector
 
typedef boost::optional< BuildingOptionalBuilding
 

Additional Inherited Members

- Public Types inherited from openstudio::WorkspaceObject
typedef boost::optional
< WorkspaceObject
OptionalWorkspaceObject
 
typedef std::vector
< WorkspaceObject
WorkspaceObjectVector
 
- Public Types inherited from openstudio::IdfObject
typedef std::pair< IdfObject,
IdfObject
IdfObjectPair
 
typedef std::vector< IdfObjectIdfObjectVector
 
typedef boost::optional
< IdfObject
OptionalIdfObject
 
- Protected Types inherited from openstudio::model::ModelObject
typedef detail::ModelObject_Impl ImplType
 
- Protected Types inherited from openstudio::WorkspaceObject
typedef
detail::WorkspaceObject_Impl 
ImplType
 
- Protected Types inherited from openstudio::IdfObject
typedef detail::IdfObject_Impl ImplType
 

Detailed Description

Building derives from ParentObject and is an interface to the OpenStudio IDD object named "Building".

Building is a unique object which parents all Spaces in the model. Conceptually, the Building object represents the envelope shell and everything inside (lighting, equipment, etc). The Building is a child of the Facility object which includes the Building as well as exterior equipment, parking lot lighting, water systems for grounds, etc.

Constructor & Destructor Documentation

virtual openstudio::model::Building::~Building ( )
inlinevirtual
openstudio::model::Building::Building ( Model model)
explicitprotected

Member Function Documentation

double openstudio::model::Building::airVolume ( ) const

Returns the total air volume (m^3) in the building.

Includes space multipliers in the calculation.

boost::optional<double> openstudio::model::Building::conditionedFloorArea ( ) const

Returns the conditioned floor area in square meters.

Currently requires EnergyPlus simulation output to calculate. Attribute name: conditionedFloorArea

boost::optional<DefaultConstructionSet> openstudio::model::Building::defaultConstructionSet ( ) const

Returns the default construction set that this space references directly.

boost::optional<DefaultScheduleSet> openstudio::model::Building::defaultScheduleSet ( ) const

Returns the default schedule set that this space references directly.

double openstudio::model::Building::electricEquipmentPower ( ) const

Returns the electric equipment power (W) of this building.

double openstudio::model::Building::electricEquipmentPowerPerFloorArea ( ) const

Returns the electric equipment power density (W/m^2) of this building.

double openstudio::model::Building::electricEquipmentPowerPerPerson ( ) const

Returns the electric equipment power per person (W/person) of this building.

double openstudio::model::Building::exteriorSurfaceArea ( ) const

Returns the total exterior surface area (m^2).

Includes space multipliers in calculation.

double openstudio::model::Building::exteriorWallArea ( ) const

Returns the total exterior wall area (m^2).

Includes space multipliers in the calculation.

std::vector<Surface> openstudio::model::Building::exteriorWalls ( ) const

Returns all Surfaces which are exterior walls.

boost::optional<Facility> openstudio::model::Building::facility ( ) const

Returns the parent Facility object if it exists.

double openstudio::model::Building::floorArea ( ) const

Returns the total floor area in square meters.

Includes only spaces marked as included in floor area. Includes space multipliers in calculation. Attribute name: floorArea

double openstudio::model::Building::floorAreaPerPerson ( ) const

Returns the total floor area per person in this building (m^2/person).

double openstudio::model::Building::gasEquipmentPower ( ) const

Returns the gas equipment power (W) of this building.

double openstudio::model::Building::gasEquipmentPowerPerFloorArea ( ) const

Returns the gas equipment power density (W/m^2) of this building.

double openstudio::model::Building::gasEquipmentPowerPerPerson ( ) const

Returns the gas equipment power per person (W/person) of this building.

std::vector<std::vector<Point3d> > openstudio::model::Building::generateSkylightPattern ( double  skylightToProjectedFloorRatio,
double  desiredWidth,
double  desiredHeight 
) const

Returns a suggested pattern for skylights targeting a skylight to floor ratio with desired sizes.

Pattern will be in Building coordinates, on the z = 0 plane, with normal in positive z direction.

static IddObjectType openstudio::model::Building::iddObjectType ( )
static
double openstudio::model::Building::infiltrationDesignAirChangesPerHour ( ) const

Returns the infiltration design air changes per hour (1/h) of this building.

Ignores SpaceInfiltrationEffectiveLeakageArea objects.

double openstudio::model::Building::infiltrationDesignFlowPerExteriorSurfaceArea ( ) const

Returns the infiltration design flow per exterior surface area (m^3/m^2*s) of this building.

Ignores SpaceInfiltrationEffectiveLeakageArea objects.

double openstudio::model::Building::infiltrationDesignFlowPerExteriorWallArea ( ) const

Returns the infiltration design flow per exterior wall area (m^3/m^2*s) of this building.

Ignores SpaceInfiltrationEffectiveLeakageArea objects.

double openstudio::model::Building::infiltrationDesignFlowPerSpaceFloorArea ( ) const

Returns the infiltration design flow per space floor area (m^3/m^2*s) of this building.

Ignores SpaceInfiltrationEffectiveLeakageArea objects.

double openstudio::model::Building::infiltrationDesignFlowRate ( ) const

Returns the infiltration design flow rate (m^3/s) of this building.

Ignores SpaceInfiltrationEffectiveLeakageArea objects.

bool openstudio::model::Building::isNorthAxisDefaulted ( ) const
bool openstudio::model::Building::isRelocatableDefaulted ( ) const
double openstudio::model::Building::lightingPower ( ) const

Returns the lighting power (W) in this building.

double openstudio::model::Building::lightingPowerPerFloorArea ( ) const

Returns the lighting power density (W/m^2) of this building.

double openstudio::model::Building::lightingPowerPerPerson ( ) const

Returns the lighting power per person (W/person) of this building.

std::vector<Meter> openstudio::model::Building::meters ( ) const

Returns all Meter objects at the Building level.

boost::optional<double> openstudio::model::Building::nominalFloortoCeilingHeight ( ) const
boost::optional<double> openstudio::model::Building::nominalFloortoFloorHeight ( ) const
double openstudio::model::Building::northAxis ( ) const
double openstudio::model::Building::numberOfPeople ( ) const

Returns the number of people in the building.

double openstudio::model::Building::peoplePerFloorArea ( ) const

Returns the number of people per floor area (people/m^2).

bool openstudio::model::Building::relocatable ( ) const
void openstudio::model::Building::resetDefaultConstructionSet ( )

Resets the default construction set for this space.

void openstudio::model::Building::resetDefaultScheduleSet ( )

Resets the default schedule set for this space.

void openstudio::model::Building::resetNominalFloortoCeilingHeight ( )
void openstudio::model::Building::resetNominalFloortoFloorHeight ( )
void openstudio::model::Building::resetNorthAxis ( )
void openstudio::model::Building::resetRelocatable ( )
void openstudio::model::Building::resetSpaceType ( )

Resets the building's space type.

void openstudio::model::Building::resetStandardsBuildingType ( )
void openstudio::model::Building::resetStandardsNumberOfAboveGroundStories ( )
void openstudio::model::Building::resetStandardsNumberOfLivingUnits ( )
void openstudio::model::Building::resetStandardsNumberOfStories ( )
std::vector<Surface> openstudio::model::Building::roofs ( ) const

Returns all Surfaces which are roofs.

bool openstudio::model::Building::setDefaultConstructionSet ( const DefaultConstructionSet defaultConstructionSet)

Sets the default construction set for this space directly.

bool openstudio::model::Building::setDefaultScheduleSet ( const DefaultScheduleSet defaultScheduleSet)

Sets the default schedule set for this space directly.

bool openstudio::model::Building::setNominalFloortoCeilingHeight ( double  nominalFloortoCeilingHeight)
bool openstudio::model::Building::setNominalFloortoFloorHeight ( double  nominalFloortoFloorHeight)
void openstudio::model::Building::setNorthAxis ( double  northAxis)
void openstudio::model::Building::setRelocatable ( bool  isRelocatable)
bool openstudio::model::Building::setSpaceType ( const SpaceType spaceType)

Sets the building's space type.

bool openstudio::model::Building::setStandardsBuildingType ( const std::string &  standardsBuildingType)

Sets the standards building type.

This is a freeform field used to identify the building type for standards. Standards applied to this model will use this field to determine correct levels for lighting, occupancy, etc. More information can be found at https://github.com/NREL/openstudio-standards.

bool openstudio::model::Building::setStandardsNumberOfAboveGroundStories ( int  value)
bool openstudio::model::Building::setStandardsNumberOfLivingUnits ( int  value)
bool openstudio::model::Building::setStandardsNumberOfStories ( int  value)
std::vector<ShadingSurfaceGroup> openstudio::model::Building::shadingSurfaceGroups ( ) const

Returns all ShadingSurfaceGroups at the Building level.

std::vector<Space> openstudio::model::Building::spaces ( ) const

Returns all of the Spaces in the Building.

boost::optional<SpaceType> openstudio::model::Building::spaceType ( ) const

Returns the building's space type.

boost::optional<std::string> openstudio::model::Building::standardsBuildingType ( ) const

Returns the standards building type.

This is a freeform field used to identify the building type for standards. Standards applied to this model will use this field to determine correct levels for lighting, occupancy, etc. More information can be found at https://github.com/NREL/openstudio-standards.

boost::optional<int> openstudio::model::Building::standardsNumberOfAboveGroundStories ( ) const
boost::optional<int> openstudio::model::Building::standardsNumberOfLivingUnits ( ) const
boost::optional<int> openstudio::model::Building::standardsNumberOfStories ( ) const
std::vector<std::string> openstudio::model::Building::suggestedStandardsBuildingTypes ( ) const

If standardsBuildingType is empty, returns a list of suggestions.

If standardsBuildingType is not empty, returns standardsBuildingType.

std::vector<ThermalZone> openstudio::model::Building::thermalZones ( ) const

Returns all of the ThermalZones in the Building.

Transformation openstudio::model::Building::transformation ( ) const

Returns the Transformation from the Building coordinate system to world coordinates.

Friends And Related Function Documentation

typedef std::vector<Building> BuildingVector
related
typedef boost::optional<Building> OptionalBuilding
related