public class RollingMeanEnricher<T extends java.lang.Number> extends AbstractTypeTransformingEnricher<T,java.lang.Double>
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
SUPPRESS_DUPLICATES
NOOP
Constructor and Description |
---|
RollingMeanEnricher() |
RollingMeanEnricher(Entity producer,
AttributeSensor<T> source,
AttributeSensor<java.lang.Double> target,
int windowSize) |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getAverage() |
void |
onEvent(SensorEvent<T> event)
The
SensorEvent handler method. |
setEntity
getEnricherType, getRebindSupport, relations
config, configure, destroy, getAdjunctType, getConfig, getConfigMap, getDisplayName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, tags, toString, unsubscribe, unsubscribe
getCatalogItemId, getId, getManagementContext, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUniqueTag, isDestroyed, isRunning
getCatalogItemId, getDisplayName, subscriptions, tags
config, getConfig, setConfig
setCatalogItemId
public RollingMeanEnricher()
public RollingMeanEnricher(Entity producer, AttributeSensor<T> source, AttributeSensor<java.lang.Double> target, int windowSize)
public java.lang.Double getAverage()
public void onEvent(SensorEvent<T> event)
SensorEventListener
SensorEvent
handler method.