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

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

public class YAxisReference
extends java.lang.Object

A reference to y-axis definition by its name. This is used by TelemetryChartDefinition through StreamsReference.

Author:
(Cedric) Qin Zhang

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

YAxisReference

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

Parameters:
name - The name of y-axis 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 y-axis 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.