public interface IRule
The key method to implement is evaluate(IItemCollection, IPreferenceValueProvider).
getId() must return an id that is unique for each implementation and
getName() should return a human readable name.
Rule instances may be reused for multiple evaluations with different input data so it is recommended that they are stateless.
| Modifier and Type | Method and Description |
|---|---|
RunnableFuture<Result> |
evaluate(org.openjdk.jmc.common.item.IItemCollection items,
org.openjdk.jmc.common.util.IPreferenceValueProvider valueProvider)
Gets a future representing the result of the evaluation of this rule.
|
Collection<org.openjdk.jmc.common.util.TypedPreference<?>> |
getConfigurationAttributes()
Gets information about which attributes may be configured during rule evaluation.
|
String |
getId() |
String |
getName() |
String |
getTopic() |
RunnableFuture<Result> evaluate(org.openjdk.jmc.common.item.IItemCollection items, org.openjdk.jmc.common.util.IPreferenceValueProvider valueProvider)
items - items to evaluatevalueProvider - Provider of configuration values used for evaluation. The attributes that will be
asked for from the provider should be provided by
getConfigurationAttributes().Collection<org.openjdk.jmc.common.util.TypedPreference<?>> getConfigurationAttributes()
String getId()
String getName()
String getTopic()
nullCopyright © 2020. All rights reserved.