|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.its.TrendBuilder<K,DS>
public abstract class TrendBuilder<K extends java.lang.Comparable<K>,DS extends org.jfree.data.xy.XYDataset>
Builds a "trend" data, which is a function f(x):int defined as a series of intervals:
f(x) := 0 if x < x0
:= i0 if x ∊ [x0,x1)
:= i1 if x ∊ [x1,x2)
...
f(x) is intended to be used to count something, and this class is designed
to build f(x) by starting from smaller x and recording delta by using
#inc(Activity) and #dec(Activity).
x is normally a value of a time related dimension, but more details about x needs to be defined by subtypes.
| Constructor Summary | |
|---|---|
TrendBuilder()
|
|
| Method Summary | |
|---|---|
protected abstract void |
add(DS ds,
K start,
K end,
int value,
java.lang.String seriesName)
Lower-level function to add data to the dataset. |
void |
addTo(DS ds,
java.lang.String seriesName)
Adds this trend to the given data set. |
static void |
completeMissingLinks(java.util.Collection<? extends TrendBuilder> builders)
Auguments the trend data among each other so that we have data points for all the dates. |
static void |
completeMissingLinks(TrendBuilder... builders)
|
void |
dec(org.kohsuke.jnt.JNIssue.Activity a)
|
protected abstract K |
getKey(org.kohsuke.jnt.JNIssue.Activity a)
|
void |
inc(org.kohsuke.jnt.JNIssue.Activity a)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrendBuilder()
| Method Detail |
|---|
public void inc(org.kohsuke.jnt.JNIssue.Activity a)
protected abstract K getKey(org.kohsuke.jnt.JNIssue.Activity a)
public void dec(org.kohsuke.jnt.JNIssue.Activity a)
public static void completeMissingLinks(java.util.Collection<? extends TrendBuilder> builders)
public static void completeMissingLinks(TrendBuilder... builders)
public void addTo(DS ds,
java.lang.String seriesName)
protected abstract void add(DS ds,
K start,
K end,
int value,
java.lang.String seriesName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||