biz.hammurapi.metrics.persistent
Class Period

java.lang.Object
  extended by biz.hammurapi.metrics.persistent.AbstractPeriod
      extended by biz.hammurapi.metrics.persistent.Period
All Implemented Interfaces:
biz.hammurapi.util.Visitable, biz.hammurapi.xml.dom.DomSerializable

public class Period
extends AbstractPeriod

Measurement period for a particular metric

Version:
$Revision$
Author:
Pavel Vlasov

Field Summary
 
Fields inherited from class biz.hammurapi.metrics.persistent.AbstractPeriod
factory, name, slices, timeFrom, timeTo
 
Method Summary
 boolean equals(java.lang.Object arg)
           
 java.lang.String getAbsoluteName()
           
 int getId()
           
 MetricRef[] getPath()
           
 int hashCode()
           
protected  void loadSubCategories(java.util.List subCategories)
          This method should add subcategories (of type Period) to this category.
protected  void setAttributes(org.w3c.dom.Element holder)
           
 void toDom(org.w3c.dom.Element holder)
           
 java.lang.Object toKey()
          Primary key of period to use in memory sensitive cache.
 
Methods inherited from class biz.hammurapi.metrics.persistent.AbstractPeriod
accept, aggregate, createSlices, getDeviation, getLabel, getLength, getMaxValue, getMeasurements, getMinValue, getName, getSlices, getSubCategories, getTimeFrom, getTimeTo, getTotal, normalizeSliceDeviations
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public int getId()
Returns:
Returns the id.

equals

public boolean equals(java.lang.Object arg)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toKey

public java.lang.Object toKey()
Primary key of period to use in memory sensitive cache.

Returns:

setAttributes

protected void setAttributes(org.w3c.dom.Element holder)
Overrides:
setAttributes in class AbstractPeriod
Parameters:
holder -

toDom

public void toDom(org.w3c.dom.Element holder)
Specified by:
toDom in interface biz.hammurapi.xml.dom.DomSerializable
Overrides:
toDom in class AbstractPeriod

loadSubCategories

protected void loadSubCategories(java.util.List subCategories)
                          throws java.sql.SQLException
Description copied from class: AbstractPeriod
This method should add subcategories (of type Period) to this category.

Specified by:
loadSubCategories in class AbstractPeriod
Throws:
java.sql.SQLException

getAbsoluteName

public java.lang.String getAbsoluteName()

getPath

public MetricRef[] getPath()


Copyright © 2006 Hammurapi Group. All Rights Reserved.