Interface Room
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable, Temporal
A Room .
-
Method Summary
Modifier and TypeMethodDescriptiongetArea()Gets the area of this room in square feet.Gets the building.Gets theIdof the building.getCode()Gets the room number within a floor (e.g.Gets the designated or formal name of the room (e.g.Gets the enclosing room if this room is a subdivision.Gets the enclosing roomIdif this room is a subdivision.getFloor()Gets the floor.Gets the floorId.longGets the limit on occupancy of this room.Gets theIdsof any resources in this room such as projectors, white boards, or other classes of equiptment.Gets a list of resources in this room such as projectors, white boards, or other classes of equiptment.Gets the complete room number including the building and floor (e.g.getRoomRecord(Type roomRecordType) Gets the room record corresponding to the givenRoomrecordType.This method is used to retrieve an object implementing the requested record.Gets the subdivision roomIdsif this room is subdivided.Gets the subdivision rooms if this room is subdivided.booleanhasArea()Tests if an area is available.booleanTests if this room is a subdivision of another room.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getBuildingId
Id getBuildingId()Gets theIdof the building.- Returns:
- the building
Id - Compliance:
mandatory- This method must be implemented.
-
getBuilding
Gets the building.- Returns:
- the building
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getFloorId
Id getFloorId()Gets the floorId.- Returns:
- the floor
Id - Compliance:
mandatory- This method must be implemented.
-
getFloor
Gets the floor.- Returns:
- the floor
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isSubdivision
boolean isSubdivision()Tests if this room is a subdivision of another room.- Returns:
trueif this room is a subdivisiaion,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getEnclosingRoomId
Id getEnclosingRoomId()Gets the enclosing roomIdif this room is a subdivision.- Returns:
- the enclosing room
Id - Throws:
IllegalStateException-isSubdivision()isfalse- Compliance:
mandatory- This method must be implemented.
-
getEnclosingRoom
Gets the enclosing room if this room is a subdivision.- Returns:
- the enlcosing room
- Throws:
IllegalStateException-isSubdivision()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSubdivisionIds
IdList getSubdivisionIds()Gets the subdivision roomIdsif this room is subdivided.- Returns:
- the subdivision room
Ids - Compliance:
mandatory- This method must be implemented.
-
getSubdivisions
Gets the subdivision rooms if this room is subdivided.- Returns:
- the subdivision rooms
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getDesignatedName
DisplayText getDesignatedName()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.- Returns:
- the room number
- Compliance:
mandatory- This method must be implemented.
-
getRoomNumber
String getRoomNumber()Gets the complete room number including the building and floor (e.g. W20-306).- Returns:
- the room number
- Compliance:
mandatory- This method must be implemented.
-
getCode
String getCode()Gets the room number within a floor (e.g. 06).- Returns:
- the room code
- Compliance:
mandatory- This method must be implemented.
-
hasArea
boolean hasArea()Tests if an area is available.- Returns:
trueif an area is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getArea
BigDecimal getArea()Gets the area of this room in square feet.- Returns:
- the area in square feet
- Throws:
IllegalStateException-hasArea()isfalse- Compliance:
mandatory- This method must be implemented.
-
getOccupancyLimit
long getOccupancyLimit()Gets the limit on occupancy of this room.- Returns:
- the occupancy limit
- Compliance:
mandatory- This method must be implemented.
-
getResourceIds
IdList getResourceIds()Gets theIdsof any resources in this room such as projectors, white boards, or other classes of equiptment.- Returns:
- the resource
Ids - Compliance:
mandatory- This method must be implemented.
-
getResources
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.- Returns:
- a list of resources
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getRoomRecord
Gets the room record corresponding to the givenRoomrecordType.This method is used to retrieve an object implementing the requested record. TheroomRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(roomRecordType)istrue.- Parameters:
roomRecordType- the type of room record to retrieve- Returns:
- the room record
- Throws:
NullArgumentException-roomRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(roomRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-