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

A Room.

MethodgetBuildingId
Description

Gets the Id of the building.

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

Gets the building.

Returnosid.room.Buildingthe building
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetFloorId
Description

Gets the floor Id.

Returnosid.id.Idthe floor Id
CompliancemandatoryThis method must be implemented.
MethodgetFloor
Description

Gets the floor.

Returnosid.room.Floorthe floor
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodisSubdivision
Description

Tests if this room is a subdivision of another room.

Returnboolean true if this room is a subdivisiaion, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetEnclosingRoomId
Description

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

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

Gets the enclosing room if this room is a subdivision.

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

Gets the subdivision room Ids if this room is subdivided.

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

Gets the subdivision rooms if this room is subdivided.

Returnosid.room.RoomListthe subdivision rooms
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetDesignatedName
Description

Gets the designated or formal name of the room (e.g. Twenty Chimneys). The display name may be mapped to this designated name, room number, or some other room label.

Returnosid.locale.DisplayTextthe room number
CompliancemandatoryThis method must be implemented.
MethodgetRoomNumber
Description

Gets the complete room number including the building and floor (e.g. W20-306).

Returnstringthe room number
CompliancemandatoryThis method must be implemented.
MethodgetCode
Description

Gets the room number within a floor (e.g. 06).

Returnstringthe room code
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.
MethodgetArea
Description

Gets the area of this room in square feet.

Returndecimalthe area in square feet
ErrorsILLEGAL_STATE hasArea() is false
CompliancemandatoryThis method must be implemented.
MethodgetOccupancyLimit
Description

Gets the limit on occupancy of this room.

Returncardinalthe occupancy limit
CompliancemandatoryThis method must be implemented.
MethodgetResourceIds
Description

Gets the Ids of any resources in this room such as projectors, white boards, or other classes of equiptment.

Returnosid.id.IdListthe resource Ids
CompliancemandatoryThis method must be implemented.
MethodgetResources
Description

Gets a list of resources in this room such as projectors, white boards, or other classes of equiptment. These classes of equipment are expressed as resources although they may be managed at the individual item level in the Inventory OSID. These resources are to facilitate searches among equipped rooms.

Returnosid.resource.ResourceLista list of resources
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetRoomRecord
Description

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

Parametersosid.type.TyperoomRecordTypethe type of room record to retrieve
Returnosid.room.records.RoomRecordthe room record
ErrorsNULL_ARGUMENT roomRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(roomRecordType) is false
CompliancemandatoryThis method must be implemented.