Class Threshold.Protocol
- java.lang.Object
-
- org.opennms.netmgt.flows.classification.internal.decision.Threshold<java.lang.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(java.lang.Object o)
java.lang.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.java.lang.String
toString()
-
-
-
Method Detail
-
getThreshold
public final java.lang.Integer getThreshold()
- Specified by:
getThreshold
in classThreshold<java.lang.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.
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-