net.sf.jour.statistic
Class TimeBaseAccumulationList

java.lang.Object
  extended bynet.sf.jour.statistic.AccumulationItem
      extended bynet.sf.jour.statistic.AccumulationItmesList
          extended bynet.sf.jour.statistic.TimeBaseAccumulationList
All Implemented Interfaces:
Accumulation, AccumulationList
Direct Known Subclasses:
MethodAccumulation

public class TimeBaseAccumulationList
extends AccumulationItmesList

TODO Add docs Created on 13.12.2004 Contributing Author(s): Misha Lifschitz (Inital implementation) Vlad Skarzhevskyy (Inital implementation)

Version:
$Revision: 1.6 $ ($Author: vlads $) $Date: 2004/12/17 04:17:21 $
Author:
vlads

Field Summary
static java.lang.String ATTRIBUTE_NAME
           
static java.lang.String ATTRIBUTE_TIME_START
           
 
Fields inherited from class net.sf.jour.statistic.AccumulationItmesList
log
 
Constructor Summary
TimeBaseAccumulationList()
           
 
Method Summary
 void add(double timeMillis, java.lang.Object num)
           
 double getCallPerMinute(java.lang.Object key)
           
 java.lang.String getName()
           
 MillisecondsPeriod getPeriod(java.lang.Object key)
           
 long getTimeFrame()
           
 void onNewAccumulation(java.lang.Object key, Accumulation accumulation)
           
 long roundTimeStamp(double millis)
           
 void setName(java.lang.String name)
           
 void setTimeFrame(long timeFrame)
           
 java.lang.Object timeStampKey(double timeMillis)
           
 
Methods inherited from class net.sf.jour.statistic.AccumulationItmesList
add, createAccumulation, getItem, getKeys, reset
 
Methods inherited from class net.sf.jour.statistic.AccumulationItem
add, add, getAttribute, getCount, getMax, getMean, getMin, getStandardDeviation, getTotal, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jour.statistic.Accumulation
add, getAttribute, getCount, getMax, getMean, getMin, getStandardDeviation, getTotal, setAttribute
 

Field Detail

ATTRIBUTE_TIME_START

public static final java.lang.String ATTRIBUTE_TIME_START
See Also:
Constant Field Values

ATTRIBUTE_NAME

public static final java.lang.String ATTRIBUTE_NAME
See Also:
Constant Field Values
Constructor Detail

TimeBaseAccumulationList

public TimeBaseAccumulationList()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Accumulation
Overrides:
getName in class AccumulationItem

setName

public void setName(java.lang.String name)

roundTimeStamp

public long roundTimeStamp(double millis)

timeStampKey

public java.lang.Object timeStampKey(double timeMillis)

onNewAccumulation

public void onNewAccumulation(java.lang.Object key,
                              Accumulation accumulation)
Overrides:
onNewAccumulation in class AccumulationItmesList

add

public void add(double timeMillis,
                java.lang.Object num)

getPeriod

public MillisecondsPeriod getPeriod(java.lang.Object key)

getCallPerMinute

public double getCallPerMinute(java.lang.Object key)

getTimeFrame

public long getTimeFrame()
Returns:
Returns the timeFrame, millis.

setTimeFrame

public void setTimeFrame(long timeFrame)
Parameters:
timeFrame - The timeFrame to set, millis.


Copyright © 2004 sourceforge. All Rights Reserved.