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

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

public class ChartReference
extends java.lang.Object

A reference to telemetry chart definition by its name. This is used by TelemetryReportDefinition.

Author:
(Cedric) Qin Zhang

Constructor Summary
ChartReference(java.lang.String name, Expression[] parameters)
          Constructs this instance.
 
Method Summary
 java.lang.String getName()
          Gets the name of the referenced telemetry chart 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

ChartReference

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

Parameters:
name - The name of telemetry chart 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 chart 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.