| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.laures.cewolf.dp.MovingAverageDatasetProducer
public class MovingAverageDatasetProducer
| Field Summary | 
|---|
| Fields inherited from interface de.laures.cewolf.DatasetProducer | 
|---|
| PRODUCER_ATTRIBUTE_NAME | 
| Constructor Summary | |
|---|---|
| MovingAverageDatasetProducer() | |
| Method Summary | |
|---|---|
|  java.lang.String | getProducerId()Tis method returns a unique ID for a DatasetProducer from this class. | 
|  boolean | hasExpired(java.util.Map params,
           java.util.Date since)This method is called by the Cewolf framework to check if a formerly produced data can be reused. | 
|  java.lang.Object | produceDataset(java.util.Map params)Produces a Datasetobject. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MovingAverageDatasetProducer()
| Method Detail | 
|---|
public java.lang.Object produceDataset(java.util.Map params)
                                throws DatasetProduceException
DatasetProducerDataset object.
produceDataset in interface DatasetProducerparams - additional params for the dataset production. All elements
 of this HashMap are of type java.io.Serializable. This is
 necessary to ensure the the serialization of the dataset producer into
 the http session. To provide a producer with additional production
 parameters the <param> tag is used (see tag library documentation).
 It is recommended to synchronize implementations of this method to avoid concurrency problems.
org.jfree.data.general.Dataset.
DatasetProduceException - if an error occured during productionDatasetProducer.produceDataset(Map)
public boolean hasExpired(java.util.Map params,
                          java.util.Date since)
DatasetProducertrue.
 If possible the Cewolf framework will try to reuse the rendered chart
 image. If this is not possible because of some circumstances (e.g. the chart
 had been removed from the image cache) the produceDataset method is called afterwards.
 Therefore there is no guarantee that the dataset production is always 
 avoided if this method returns true.
- 
- Specified by:
- hasExpiredin interface- DatasetProducer
 
- 
- Parameters:
- params- the production parameters of the already produced data
- since- the point in time when the already produced data had been produced
- Returns:
- trueif the data which had been produced with the 
 passed in parameters has expired since its creation,- falseotherwise
- See Also:
- DatasetProducer.hasExpired(Map, Date)
 
public java.lang.String getProducerId()
DatasetProducer
getProducerId in interface DatasetProducerDatasetProducer.getProducerId()| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||