|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.domain.correlation.CorrelationRule
public class CorrelationRule
A correlation rule, that takes normalized data as input.
Correlation rules serve to put multiple input into relation.
So it it possible to say "return red if at least one of the input are
red or more then 2 inputy are yellow".
The conditions themselves are stored in CorrelationItems that
are hanging on this class.
| Constructor Summary | |
|---|---|
CorrelationRule(java.lang.String name,
java.lang.String source)
Create a new correlation rule. |
|
| Method Summary | |
|---|---|
void |
addItem(CorrelationItem item)
Add a new CorrelationItem to the list of items for this rule |
java.util.List<CorrelationItem> |
getItems()
Obtain the CorrelationItems for this rule |
java.lang.String |
getRuleName()
Get the name of this rule |
java.util.Set<java.lang.String> |
getSourceRules()
Return the list of all source rules for this rule |
void |
setItems(java.util.List<CorrelationItem> items)
Set a new list of CorrelationItem for this rule |
java.lang.String |
toString()
Human readable form for of this rule |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CorrelationRule(java.lang.String name,
java.lang.String source)
name - Name of the rulesource - The first (and required) input source| Method Detail |
|---|
public java.util.Set<java.lang.String> getSourceRules()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRuleName()
public java.util.List<CorrelationItem> getItems()
CorrelationItems for this rule
public void setItems(java.util.List<CorrelationItem> items)
CorrelationItem for this rule
items - a new List of CorrelationItempublic void addItem(CorrelationItem item)
CorrelationItem to the list of items for this rule
item - an additional CorrelationItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||