| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract static class | Average.Engine
Abstract super-class for all average calculating engines. |
| Modifier and Type | Field and Description |
|---|---|
| private final Attribute | |
| private Average. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Object
a single input value input)Implements net. Note Null values are ignored and not included in the computation |
| public Number | aggregateResult()
Implements net. Note null is returned if there was no input supplied to this function |
| public Average | createClone()
Implements net. |
| public Attribute | getAttribute()
Implements net. |
| attribute | back to summary |
|---|---|
| private final Attribute<?> attribute | |
| engine | back to summary |
|---|---|
| private Average. | |
| Average | back to summary |
|---|---|
| public Average(Attribute<?> attribute) | |
| accept | back to summary |
|---|---|
| public void accept(Object input) throws AggregatorException Implements net. Doc from net. Add the given value to the aggregator function Note Null values are ignored and not included in the computation
| |
| aggregateResult | back to summary |
|---|---|
| public Number aggregateResult() Implements net. Doc from net. Retrieve the final result Note null is returned if there was no input supplied to this function
| |
| createClone | back to summary |
|---|---|
| public Average createClone() Implements net. Doc from net. Create a clone of this aggregator, detaching from its result | |
| getAttribute | back to summary |
|---|---|
| public Attribute Implements net. Doc from net. Get the attribute to pass to aggregator
| |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Average.Engine.DoubleEngine
A double based averaging engine. |
| pack-priv static class | Average.Engine.FloatEngine
A float based averaging engine. |
| pack-priv static class | Average.Engine.IntegerEngine
An int based averaging engine. |
| pack-priv static class | Average.Engine.LongEngine
A long based averaging engine. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract void | |
| pack-priv static Average. | |
| pack-priv abstract Number |
| Engine | back to summary |
|---|---|
| pack-priv Engine() | |
| accept | back to summary |
|---|---|
| pack-priv abstract void accept(Number input) throws AggregatorException Update the engine with the given value.
| |
| create | back to summary |
|---|---|
| pack-priv static Average. Create a type specific engine using the given initial value. | |
| result | back to summary |
|---|---|
| pack-priv abstract Number result() Get the (current) result of this engine.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | accept(Number
data value input)Implements abstract net. |
| pack-priv Number | result()
Implements abstract net. |
| DoubleEngine | back to summary |
|---|---|
| pack-priv DoubleEngine(double value) Creates a new instance starting with an initial value
| |
| accept | back to summary |
|---|---|
| pack-priv void accept(Number input) throws AggregatorException Implements abstract net. Doc from net. Update the engine with the given value. | |
| result | back to summary |
|---|---|
| pack-priv Number result() Implements abstract net. Doc from net. Get the (current) result of this engine. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | accept(Number
data value input)Implements abstract net. |
| pack-priv Number | result()
Implements abstract net. |
| FloatEngine | back to summary |
|---|---|
| pack-priv FloatEngine(float value) Creates a new instance starting with an initial value
| |
| accept | back to summary |
|---|---|
| pack-priv void accept(Number input) throws AggregatorException Implements abstract net. Doc from net. Update the engine with the given value. | |
| result | back to summary |
|---|---|
| pack-priv Number result() Implements abstract net. Doc from net. Get the (current) result of this engine. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | accept(Number
data value input)Implements abstract net. |
| pack-priv Number | result()
Implements abstract net. |
| IntegerEngine | back to summary |
|---|---|
| pack-priv IntegerEngine(int value) Creates a new instance starting with an initial value
| |
| accept | back to summary |
|---|---|
| pack-priv void accept(Number input) throws AggregatorException Implements abstract net. Doc from net. Update the engine with the given value. | |
| result | back to summary |
|---|---|
| pack-priv Number result() Implements abstract net. Doc from net. Get the (current) result of this engine. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | accept(Number
data value input)Implements abstract net. |
| pack-priv Number | result()
Implements abstract net. |
| LongEngine | back to summary |
|---|---|
| pack-priv LongEngine(long value) Creates a new instance starting with an initial value
| |
| accept | back to summary |
|---|---|
| pack-priv void accept(Number input) throws AggregatorException Implements abstract net. Doc from net. Update the engine with the given value. | |
| result | back to summary |
|---|---|
| pack-priv Number result() Implements abstract net. Doc from net. Get the (current) result of this engine. | |