org.hackystat.telemetry.analyzer.language.ast
Class StreamsReference

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.language.ast.StreamsReference

public class StreamsReference
extends java.lang.Object

A reference to telemetry streams definition by its name. This is used by TelemetryChartDefinition.

Author:
(Cedric) Qin Zhang

Constructor Summary
StreamsReference(java.lang.String name, Expression[] parameters)
          Constructs this instance.
 
Method Summary
 java.lang.String getName()
          Gets the name of the referenced telemetry streams object.
 Expression[] getParameters()
          Gets the parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamsReference

public StreamsReference(java.lang.String name,
                        Expression[] parameters)
Constructs this instance.

Parameters:
name - The name of telemetry streams being referenced.
parameters - The parameters that need to be passed. Note that not all Expression objects are valid. Only Variable and Constant objects are legal. Null is valid if no parameter needs to be passed.
Method Detail

getName

public java.lang.String getName()
Gets the name of the referenced telemetry streams object.

Returns:
The name.

getParameters

public Expression[] getParameters()
Gets the parameters.

Returns:
An array of Variable or Constant or both objects. Null will never be returned. If there is no parameter, an empty array will be returned.