org.rhq.domain.correlation
Class CorrelationItem

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

public class CorrelationItem
extends java.lang.Object

One rule item for a CorrelationRule.

Author:
Heiko W. Rupp

Constructor Summary
CorrelationItem(ResultState resultState, int red, int yellow, int green, int invalid)
           
 
Method Summary
 int getGreen()
           
 int getId()
           
 int getInvalid()
           
 int getRed()
           
 ResultState getResultState()
           
 int getYellow()
           
 boolean matches(int reds, int yellows, int greens, int invalids)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorrelationItem

public CorrelationItem(ResultState resultState,
                       int red,
                       int yellow,
                       int green,
                       int invalid)
Method Detail

matches

public boolean matches(int reds,
                       int yellows,
                       int greens,
                       int invalids)

getId

public int getId()

getRed

public int getRed()

getYellow

public int getYellow()

getGreen

public int getGreen()

getInvalid

public int getInvalid()

getResultState

public ResultState getResultState()