org.hackystat.telemetry.analyzer.function.impl
Class BinaryOperationUtility

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.function.impl.BinaryOperationUtility

 class BinaryOperationUtility
extends java.lang.Object

Helper class to perform binary operations on TelemetryStreamCollection objects.

Author:
(Cedric) Qin ZHANG, Philip Johnson

Nested Class Summary
(package private) static interface BinaryOperationUtility.BinaryOperator
          Binary operator interface.
 
Constructor Summary
BinaryOperationUtility()
           
 
Method Summary
(package private) static TelemetryStreamCollection computes(BinaryOperationUtility.BinaryOperator operator, TelemetryStreamCollection streamCollection1, TelemetryStreamCollection streamCollection2)
          Applies binary operation to two TelemetryStreamCollection objects, and generates a new TelemetryStreamCollection object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryOperationUtility

BinaryOperationUtility()
Method Detail

computes

static TelemetryStreamCollection computes(BinaryOperationUtility.BinaryOperator operator,
                                          TelemetryStreamCollection streamCollection1,
                                          TelemetryStreamCollection streamCollection2)
                                   throws TelemetryFunctionException
Applies binary operation to two TelemetryStreamCollection objects, and generates a new TelemetryStreamCollection object.

Parameters:
operator - The binary operator.
streamCollection1 - The first TelemetryStreamCollection object.
streamCollection2 - The second TelemetryStreamCollection object.
Returns:
A new TelemetryStreamCollection object after applying the operator.
Throws:
TelemetryFunctionException - If there is anything wrong.