Interface Setting
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable
An Setting is a preset value for a Controller .
-
Method Summary
Modifier and TypeMethodDescriptionGets the controller.Gets the controllerId.Gets the discreetState.Gets the discreetStateId.Gets the ramp rate from off to on to use for the transition for this setting.getSettingRecord(Type settingRecordType) Gets the setting record corresponding to the givenSettingrecordType.This method is used to retrieve an object implementing the requested record.Gets the level amount on a fixed scale.booleanisOff()Tests if the toggleable controller is off.booleanisOn()Tests if the toggleable controller is on.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.
-
Method Details
-
getControllerId
Id getControllerId()Gets the controllerId.- Returns:
- the controller
Id - Compliance:
mandatory- This method must be implemented.
-
getController
Gets the controller.- Returns:
- the controller
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isOn
boolean isOn()Tests if the toggleable controller is on.- Returns:
trueif the controller is on,falseotherwise- Throws:
IllegalStateException-Controller.isToggleable()isfalse- Compliance:
mandatory- This method must be implemented.
-
isOff
boolean isOff()Tests if the toggleable controller is off.- Returns:
trueif the controller is iff,falseotherwise- Throws:
IllegalStateException-Controller.isToggleable()isfalse- Compliance:
mandatory- This method must be implemented.
-
getVariableAmount
BigDecimal getVariableAmount()Gets the level amount on a fixed scale.- Returns:
- the level amount
- Throws:
IllegalStateException-Controller.isVariable()isfalse- Compliance:
mandatory- This method must be implemented.
-
getDiscreetStateId
Id getDiscreetStateId()Gets the discreetStateId.- Returns:
- the state
Id - Throws:
IllegalStateException-Controller.hasDiscreetStates()isfalse- Compliance:
mandatory- This method must be implemented.
-
getDiscreetState
Gets the discreetState.- Returns:
- the state
- Throws:
IllegalStateException-Controller.hasDiscreetStates()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getRampRate
Duration getRampRate()Gets the ramp rate from off to on to use for the transition for this setting. If the ramp rate is 10 seconds and the variable percentage is 50%, then the actual transition duration from off would be 5 seconds for a linear controller.- Returns:
- the ramp rate
- Throws:
IllegalStateException-Controller.isRampable()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSettingRecord
Gets the setting record corresponding to the givenSettingrecordType.This method is used to retrieve an object implementing the requested record. ThesettingRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(settingRecordType)istrue.- Parameters:
settingRecordType- the type of setting record to retrieve- Returns:
- the setting record
- Throws:
NullArgumentException-settingRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(settingRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-