Class Threshold.Protocol
- java.lang.Object
-
- org.opennms.netmgt.flows.classification.internal.decision.Threshold<Integer>
-
- org.opennms.netmgt.flows.classification.internal.decision.Threshold.Protocol
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.flows.classification.internal.decision.Threshold
Threshold.Address, Threshold.DstAddress, Threshold.DstPort, Threshold.Matches, Threshold.Order, Threshold.Port, Threshold.Protocol, Threshold.SrcAddress, Threshold.SrcPort
-
-
Constructor Summary
Constructors Constructor Description Protocol(int protocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Threshold.Order
compare(ClassificationRequest request)
Checks if the given request has a value that is less than, equal to, or greater than the threshold value.boolean
equals(Object o)
Integer
getThreshold()
int
hashCode()
protected org.opennms.netmgt.flows.classification.internal.decision.Threshold.Match
match(PreprocessedRule rule, Bounds bounds)
Checks if the given rule matches values that are less than, equal to, or greater than this threshold.String
toString()
-
-
-
Method Detail
-
getThreshold
public final Integer getThreshold()
- Specified by:
getThreshold
in classThreshold<Integer>
-
match
protected final org.opennms.netmgt.flows.classification.internal.decision.Threshold.Match match(PreprocessedRule rule, Bounds bounds)
Description copied from class:Threshold
Checks if the given rule matches values that are less than, equal to, or greater than this threshold.The given bounds are also considered. A rule matches only if it specifies values within the given bounds.
-
compare
public final Threshold.Order compare(ClassificationRequest request)
Description copied from class:Threshold
Checks if the given request has a value that is less than, equal to, or greater than the threshold value. In case that the given request has no value that corresponds to this thresholdThreshold.Order.NA
is returned.
-
-