Interface Floor
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable, Temporal
A Floor represents a collection of rooms with a
Building .
-
Method Summary
Modifier and TypeMethodDescriptionGets the building.Gets theIdof the building.getFloorRecord(Type floorRecordType) Gets the floor record corresponding to the givenFloorrecordType.This method is used to retrieve an object implementing the requested record.Gets the gross square footage of this floor.Gets the floor number.booleanhasArea()Tests if an area is available.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.
-
getNumber
String getNumber()Gets the floor number.- Returns:
- the floor number
- 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.
-
getGrossArea
BigDecimal getGrossArea()Gets the gross square footage of this floor.- Returns:
- the gross area
- Throws:
IllegalStateException-hasArea()isfalse- Compliance:
mandatory- This method must be implemented.
-
getFloorRecord
Gets the floor record corresponding to the givenFloorrecordType.This method is used to retrieve an object implementing the requested record. ThefloorRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(floorRecordType)istrue.- Parameters:
floorRecordType- the type of floor record to retrieve- Returns:
- the floor record
- Throws:
NullArgumentException-floorRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(floorRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-