org.rhq.domain.correlation
Class NormalizedData

java.lang.Object
  extended by org.rhq.domain.correlation.NormalizedData
All Implemented Interfaces:
java.lang.Cloneable

public class NormalizedData
extends java.lang.Object
implements java.lang.Cloneable

A normalized data item flowing through the correlation system. It consists of the name of the rule this is coming from and the state the last rule computed. Sources rules can be NormalizationRules as well as CorrelationRules.

Author:
Heiko W. Rupp

Constructor Summary
NormalizedData(java.lang.String sourceRule, ResultState resultState)
          Create a new object
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getSourceRule()
           
 ResultState getState()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalizedData

public NormalizedData(java.lang.String sourceRule,
                      ResultState resultState)
Create a new object

Parameters:
sourceRule - The name of the source rule
resultState - The state computed by the source rule
Method Detail

getState

public ResultState getState()

getSourceRule

public java.lang.String getSourceRule()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object