org.hackystat.telemetry.analyzer.reducer.impl
Class StraightLine

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.reducer.impl.StraightLine
All Implemented Interfaces:
TelemetryReducer

public class StraightLine
extends java.lang.Object
implements TelemetryReducer

Draws a straight line over the chart.

Author:
Pavel Senin.

Constructor Summary
StraightLine()
           
 
Method Summary
 TelemetryStreamCollection compute(org.hackystat.sensorbase.resource.projects.jaxb.Project project, org.hackystat.dailyprojectdata.client.DailyProjectDataClient dpdClient, org.hackystat.utilities.time.interval.Interval interval, java.lang.String[] parameters)
          Performs the computation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StraightLine

public StraightLine()
Method Detail

compute

public TelemetryStreamCollection compute(org.hackystat.sensorbase.resource.projects.jaxb.Project project,
                                         org.hackystat.dailyprojectdata.client.DailyProjectDataClient dpdClient,
                                         org.hackystat.utilities.time.interval.Interval interval,
                                         java.lang.String[] parameters)
                                  throws TelemetryReducerException
Performs the computation.

Specified by:
compute in interface TelemetryReducer
Parameters:
project - The project.
dpdClient - The DPD Client.
interval - The interval over which the computation should be performed.
parameters - parameters, first one is initial line value, second one is delta.
Returns:
Telemetry stream collection.
Throws:
TelemetryReducerException - If there is any error.