|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.telemetry.analyzer.function.TelemetryFunction
org.hackystat.telemetry.analyzer.function.impl.SubFunction
public class SubFunction
If passed two numbers, returns their difference, and if passed two telemetry streams, returns a new TelemetryStreamCollection containing the pairwise difference of the individual elements.
Constructor Summary | |
---|---|
SubFunction()
Constructs this instance. |
Method Summary | |
---|---|
java.lang.Object |
compute(java.lang.Object[] parameters)
Invokes the function. |
Methods inherited from class org.hackystat.telemetry.analyzer.function.TelemetryFunction |
---|
getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubFunction()
Method Detail |
---|
public java.lang.Object compute(java.lang.Object[] parameters) throws TelemetryFunctionException
TelemetryFunction
compute
in class TelemetryFunction
parameters
- An array of 2 objects of type either Number
or TelemetryStreamCollection
.
Number
or TelemetryStreamCollection
.
TelemetryFunctionException
- If anything is wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |