|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation
org.torweg.pulse.component.statistics.model.aggregation.AverageTimePerVisitAggregation
@Entity public class AverageTimePerVisitAggregation
Aggregates Visits and stores information about the average time spent
on a "per Visit" basis for the set Duration.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation |
|---|
AbstractAggregation.Hour |
| Field Summary |
|---|
| Fields inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
protected |
AverageTimePerVisitAggregation()
Deprecated. |
|
AverageTimePerVisitAggregation(StatisticsServer server, Duration duration)
Creates a new AverageTimePerVisitAggregation with the given
StatisticsServer and the given Duration. |
| Method Summary | |
|---|---|
void |
accumulate(AverageTimePerVisitAggregation aggr)
Adds the values of the given AverageTimePerVisitAggregation if
its Duration lies within the Duration of the current
AverageTimePerVisitAggregation. |
boolean |
aggregate(Visit visit,
org.hibernate.Session s)
Aggregates the given Visit. |
int |
getCount()
Returns the Visit-count. |
double |
getTime()
Returns the average time in milliseconds per Visit. |
protected void |
increase()
Adds 1 to the internal counter counter. |
protected void |
increaseBy(int i)
Adds the given integer to the internal counter. |
boolean |
isAggregateable(Visit visit)
Test if the given Visit is aggregate-able by this CountryPerVisitAggregation. |
| Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractAggregation |
|---|
getDataResolution, getDuration, getEndMillis, getStartMillis, getStatisticsServer, setDuration, setEndMillis, setStartMillis, setStatisticsServer, toString |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated protected AverageTimePerVisitAggregation()
public AverageTimePerVisitAggregation(StatisticsServer server, Duration duration)
AverageTimePerVisitAggregation with the given
StatisticsServer and the given Duration.
server - the StatisticsServerduration - the Duration| Method Detail |
|---|
public final double getTime()
Visit.
public final int getCount()
Visit-count.
getCount in interface ICountprotected final void increase()
protected final void increaseBy(int i)
i - an integer
java.lang.IllegalArgumentException - if the given i is less than zeropublic final boolean isAggregateable(Visit visit)
Visit is aggregate-able by this CountryPerVisitAggregation.
isAggregateable in class AbstractAggregationvisit - the Visit
true if and only if this AbstractAggregation can
process the given Visit, false otherwise#isAggregateable(org.torweg.pulse.component.statistics.model.Visit)
public final boolean aggregate(Visit visit,
org.hibernate.Session s)
Visit.
aggregate in class AbstractAggregationvisit - the Visits - the Session UNUSED
true if and only if the Visit has been processed,
false otherwise#aggregate(org.torweg.pulse.component.statistics.model.Visit)public final void accumulate(AverageTimePerVisitAggregation aggr)
AverageTimePerVisitAggregation if
its Duration lies within the Duration of the current
AverageTimePerVisitAggregation.
aggr - the AverageTimePerVisitAggregation
java.lang.NullPointerException - if the given AverageTimePerVisitAggregation is
null
java.lang.IllegalArgumentException - if the Duration of the given AverageTimePerVisitAggregation does not lie within the
Duration of the current AverageTimePerVisitAggregation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||