OSID Logo
OSID Specifications
room package
Version 3.1.0
Interfaceosid.room.Room
Implementsosid.OsidObject
osid.Temporal
osid.Subjugateable
Used Byosid.room.Room
osid.room.RoomAdminSession
osid.room.RoomList
osid.room.RoomLookupSession
osid.room.squatting.Lease
Description

A Room.

MethodgetBuildingId
Description

Gets the Id of the building.

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

Gets the building.

Returnosid.room.Building the building
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetFloorId
Description

Gets the floor Id.

Returnosid.id.Id the floor Id
Compliancemandatory This method must be implemented.
MethodgetFloor
Description

Gets the floor.

Returnosid.room.Floor the floor
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetEnclosingRoomId
Description

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

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

Gets the enclosing room if this room is a subdivision.

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

Gets the subdivision room Ids if this room is subdivided.

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

Gets the subdivision rooms if this room is subdivided.

Returnosid.room.RoomList the subdivision rooms
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This 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.DisplayText the room number
Compliancemandatory This method must be implemented.
MethodgetRoomNumber
Description

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

Returnstring the room number
Compliancemandatory This method must be implemented.
MethodgetCode
Description

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

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

Gets the area of this room in square feet.

Returndecimal the area in square feet
ErrorsILLEGAL_STATE hasArea() is false
Compliancemandatory This method must be implemented.
MethodgetOccupancyLimit
Description

Gets the limit on occupancy of this room.

Returncardinal the occupancy limit
Compliancemandatory This 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.IdList the resource Ids
Compliancemandatory This 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.ResourceList a list of resources
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This 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.TyperoomRecordType the type of room record to retrieve
Returnosid.room.records.RoomRecord the room record
ErrorsNULL_ARGUMENT roomRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(roomRecordType) is false
Compliancemandatory This method must be implemented.