Interface Renovation
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Temporal
A Renovation represents a construction project within a
building.
-
Method Summary
Modifier and TypeMethodDescriptiongetCost()Gets the cost for this renovation.getRenovationRecord(Type renovationRecordType) Gets the renovation record corresponding to the givenRenovationrecordType.Gets theIdof the affected rooms.getRooms()Gets the affected rooms.booleanhasCost()Tests if this renovation has a cost.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
-
getRoomIds
IdList getRoomIds()Gets theIdof the affected rooms.- Returns:
- the room
Id - Compliance:
mandatory- This method must be implemented.
-
getRooms
Gets the affected rooms.- Returns:
- the rooms
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasCost
boolean hasCost()Tests if this renovation has a cost.- Returns:
trueif a cost is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCost
Currency getCost()Gets the cost for this renovation.- Returns:
- the cost
- Throws:
IllegalStateException-hasCost()isfalse- Compliance:
mandatory- This method must be implemented.
-
getRenovationRecord
Gets the renovation record corresponding to the givenRenovationrecordType. This method is used to retrieve an object implementing the requested record. TherenovationRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(renovationRecordType)istrue.- Parameters:
renovationRecordType- the type of renovation record to retrieve- Returns:
- the renovation record
- Throws:
NullArgumentException-renovationRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(renovationRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-