org.rhq.domain.correlation
Class MetricNormRuleItem

java.lang.Object
  extended by org.rhq.domain.correlation.MetricNormRuleItem

public class MetricNormRuleItem
extends java.lang.Object

One single expression of a metric normalization rule along with its result state. This would e.g. contain "> 2.0" ==> YELLOW

Author:
Heiko W. Rupp

Constructor Summary
MetricNormRuleItem(ResultState resultState, NormalizationOperator operator, java.lang.String value)
          Create a new RuleItem.
 
Method Summary
 int getId()
          Technical primary key
 NormalizationOperator getOperator()
          Returns the NormalizationOperator used to compare
 ResultState getResultState()
          Returns the ResultState
 java.lang.String getValue()
          Returns the reference value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricNormRuleItem

public MetricNormRuleItem(ResultState resultState,
                          NormalizationOperator operator,
                          java.lang.String value)
Create a new RuleItem.

Parameters:
resultState - What ResultState should be returned, if the item matches?
operator - The operator to compare values
value - the reference value
Method Detail

getValue

public java.lang.String getValue()
Returns the reference value

Returns:
reference value stored in the rule

getResultState

public ResultState getResultState()
Returns the ResultState

Returns:
resultState for this rule

getOperator

public NormalizationOperator getOperator()
Returns the NormalizationOperator used to compare

Returns:
the comparision operator

getId

public int getId()
Technical primary key