OSID Logo
OSID Specifications
room package
Version 3.1.0
Interfaceosid.room.Building
Implementsosid.OsidObject
osid.Temporal
Used Byosid.room.Building
osid.room.BuildingAdminSession
osid.room.BuildingList
osid.room.BuildingLookupSession
osid.room.Floor
osid.room.Room
osid.room.construction.Project
osid.room.squatting.Deed
Description

A Building represents a collection of floors.

MethodgetAddressId
Description

Gets the address of this building.

Returnosid.id.Id the building address Id
Compliancemandatory This method must be implemented.
MethodgetAddress
Description

Gets the building address.

Returnosid.contact.Address the building address.
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetOfficialName
Description

Gets the formal name for this building (e.g. Guggenheim Laboratory). The display name may or may not differ from this name but may be based on the code (e.g. Building 35).

Returnosid.locale.DisplayText the name
Compliancemandatory This method must be implemented.
MethodgetNumber
Description

Gets the building number or code (e.g. 35).

Returnstring the building number
Compliancemandatory This method must be implemented.
MethodisSubdivision
Description

Tests if this building is a subdivision of another building.

Returnboolean true if this building is a subdivisiaion, false otherwise
Compliancemandatory This method must be implemented.
MethodgetEnclosingBuildingId
Description

Gets the enclosing building Id if this building is a subdivision.

Returnosid.id.Id the enclosing building Id
ErrorsILLEGAL_STATE isSubdivision() is false
Compliancemandatory This method must be implemented.
MethodgetEnclosingBuilding
Description

Gets the enclosing building if this building is a subdivision.

Returnosid.room.Building the enlcosing building
ErrorsILLEGAL_STATE isSubdivision() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetSubdivisionIds
Description

Gets the subdivision building Ids if this building is subdivided.

Returnosid.id.IdList the subdivision building Ids
Compliancemandatory This method must be implemented.
MethodgetSubdivisions
Description

Gets the subdivision buildings if this building is subdivided.

Returnosid.room.BuildingList the subdivision buildings
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasArea
Description

Tests if an area is available.

Returnboolean true if an area is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetGrossArea
Description

Gets the gross square footage of this building.

Returndecimal the gross area
ErrorsILLEGAL_STATE hasArea() is false
Compliancemandatory This method must be implemented.
MethodgetBuildingRecord
Description

Gets the building record corresponding to the given Building record Type.This method is used to retrieve an object implementing the requested record. The buildingRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(buildingRecordType) is true.

Parametersosid.type.TypebuildingRecordType the type of building record to retrieve
Returnosid.room.records.BuildingRecord the building record
ErrorsNULL_ARGUMENT buildingRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(buildingRecordType) is false
Compliancemandatory This method must be implemented.