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

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

public class DrawCommand
extends TelemetryDefinition

Draw command to render telemetry charts or reports.

Version:
$Id$
Author:
(Cedric) Qin ZHANG

Constructor Summary
DrawCommand(java.lang.String telemetryDefinitionName, Constant[] parameters, TextPosition textPosition)
          Constructs this instance.
 
Method Summary
 Constant[] getParameters()
          Gets the parameters.
 java.lang.String getTelemetryDefinitionName()
          Gets the name of the telemetry object definition.
 
Methods inherited from class org.hackystat.telemetry.analyzer.language.ast.TelemetryDefinition
getDefinitionString, getName, getTextPosition, setDefinitionString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawCommand

public DrawCommand(java.lang.String telemetryDefinitionName,
                   Constant[] parameters,
                   TextPosition textPosition)
Constructs this instance.

Parameters:
telemetryDefinitionName - The name of the telemetry object definition.
parameters - An array of Constant objects that need to pass to the telemetry definition to render it. Null is a valid if there is no parameter needed.
textPosition - The text position of the definition string in the input.
Method Detail

getTelemetryDefinitionName

public java.lang.String getTelemetryDefinitionName()
Gets the name of the telemetry object definition.

Returns:
The name.

getParameters

public Constant[] getParameters()
Gets the parameters.

Returns:
The parameters that need to pass to the referenced telemetry object.