OSID Logo
OSID Specifications
room package
Version 3.0.0
Release Candidate Preview
Interfaceosid.room.Building
Implementsosid.OsidObject
osid.Temporal
Description

A Building represents a collection of floors.

MethodgetAddressId
Description

Gets the address of this building.

Returnosid.id.Idthe building address Id
CompliancemandatoryThis method must be implemented.
MethodgetAddress
Description

Gets the building address.

Returnosid.contact.Addressthe building address.
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis 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.DisplayTextthe name
CompliancemandatoryThis method must be implemented.
MethodgetNumber
Description

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

Returnstringthe building number
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetEnclosingBuildingId
Description

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

Returnosid.id.Idthe enclosing building Id
ErrorsILLEGAL_STATE isSubdivision() is false
CompliancemandatoryThis method must be implemented.
MethodgetEnclosingBuilding
Description

Gets the enclosing building if this building is a subdivision.

Returnosid.room.Buildingthe enlcosing building
ErrorsILLEGAL_STATE isSubdivision() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetSubdivisionIds
Description

Gets the subdivision building Ids if this building is subdivided.

Returnosid.id.IdListthe subdivision building Ids
CompliancemandatoryThis method must be implemented.
MethodgetSubdivisions
Description

Gets the subdivision buildings if this building is subdivided.

Returnosid.room.BuildingListthe subdivision buildings
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasArea
Description

Tests if an area is available.

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

Gets the gross square footage of this building.

Returndecimalthe gross area
ErrorsILLEGAL_STATE hasArea() is false
CompliancemandatoryThis 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.TypebuildingRecordTypethe type of building record to retrieve
Returnosid.room.records.BuildingRecordthe building record
ErrorsNULL_ARGUMENT buildingRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(buildingRecordType) is false
CompliancemandatoryThis method must be implemented.