Package hec.data.rating
Interface IRatingTemplate
- All Known Implementing Classes:
JDomRatingTemplate
public interface IRatingTemplate
An interface on to a rating template. Has an office id, parameters, and
version.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the dependent parameter for this template.intReturns a count of the independent parameters.Returns an ordered listing of the independent parameters for this template.Returns the office id for this template.Returns the version for this template.booleanisSimple()If the rating has 1 independent parameter : 1 dependent parameter.voidsetDependentParameter(Parameter dependentParameter) Sets the dependent parameter for this template.voidsetIndependentParameterList(List<Parameter> independentParameterList) Sets the independent parameters for this template to the ordered arg list.voidsetOfficeId(DbOfficeId officeId) Sets the office id for this template.voidsetTemplateVersion(Version version) Sets the version for this template.
-
Field Details
-
INDEP_PARAM_DELIM
The delimeter for the independent parameters.- See Also:
-
INDEP_DEP_DELIM
The delimeter between the independent and dependent parameters.- See Also:
-
PART_DELIM
The delimeter between the parameters and version.- See Also:
-
-
Method Details
-
getOfficeId
DbOfficeId getOfficeId()Returns the office id for this template.- Returns:
-
setOfficeId
Sets the office id for this template.- Parameters:
officeId-
-
getIndependentParameterList
Returns an ordered listing of the independent parameters for this template.- Returns:
-
setIndependentParameterList
Sets the independent parameters for this template to the ordered arg list.- Parameters:
independentParameterList-
-
getDependentParameter
Parameter getDependentParameter()Returns the dependent parameter for this template.- Returns:
-
setDependentParameter
Sets the dependent parameter for this template.- Parameters:
dependentParameter-
-
getTemplateVersion
Version getTemplateVersion()Returns the version for this template. Note that a spec also has a version separate from the template version.- Returns:
-
setTemplateVersion
Sets the version for this template. Note that a spec also has a version separate from the template version.- Parameters:
version-
-
isSimple
boolean isSimple()If the rating has 1 independent parameter : 1 dependent parameter. I.e. it can be used for reverse ratings.- Returns:
-
getIndependentParameterCount
int getIndependentParameterCount()Returns a count of the independent parameters.- Returns:
-