org.hackystat.telemetry.analyzer.configuration
Class TelemetryChartDefinitionInfo

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.configuration.TelemetryDefinitionInfo
      extended by org.hackystat.telemetry.analyzer.configuration.TelemetryChartDefinitionInfo

public class TelemetryChartDefinitionInfo
extends TelemetryDefinitionInfo

Provides information about a telemetry chart, including its name, type, and definition.

Author:
(Cedric) Qin Zhang

Constructor Summary
TelemetryChartDefinitionInfo(java.lang.String fullDefinitionString, org.hackystat.sensorbase.resource.users.jaxb.User owner, ShareScope shareScope)
          Constructs this instance.
TelemetryChartDefinitionInfo(TelemetryChartDefinition chartDefinition, org.hackystat.sensorbase.resource.users.jaxb.User owner, ShareScope shareScope)
          Constructs this instance.
 
Method Summary
 TelemetryChartDefinition getChartDefinitionObject()
          Gets the abstract syntax tree representation of this telemetry chart.
 java.lang.String getName()
          Gets the name of this telemetry definition.
 TelemetryDefinitionType getType()
          Gets telemetry definition type.
 
Methods inherited from class org.hackystat.telemetry.analyzer.configuration.TelemetryDefinitionInfo
getDefinitionString, getOwner, getShareScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TelemetryChartDefinitionInfo

public TelemetryChartDefinitionInfo(java.lang.String fullDefinitionString,
                                    org.hackystat.sensorbase.resource.users.jaxb.User owner,
                                    ShareScope shareScope)
                             throws TelemetryConfigurationException
Constructs this instance.

Note that although this constructor checks for syntactic validity, it does not check for semantic validity.

Parameters:
fullDefinitionString - The definition string.
owner - The owner of this definition.
shareScope - The share scope of this definition.
Throws:
TelemetryConfigurationException - If the definition string cannot be parsed.

TelemetryChartDefinitionInfo

public TelemetryChartDefinitionInfo(TelemetryChartDefinition chartDefinition,
                                    org.hackystat.sensorbase.resource.users.jaxb.User owner,
                                    ShareScope shareScope)
                             throws TelemetryConfigurationException
Constructs this instance.

Parameters:
chartDefinition - The telemetry chart definition object.
owner - The owner of this definition.
shareScope - The share scope of this definition.
Throws:
TelemetryConfigurationException - If the definition string cannot be parsed.
Method Detail

getName

public java.lang.String getName()
Gets the name of this telemetry definition.

Specified by:
getName in class TelemetryDefinitionInfo
Returns:
The name.

getType

public TelemetryDefinitionType getType()
Gets telemetry definition type.

Specified by:
getType in class TelemetryDefinitionInfo
Returns:
Telemetry definition type.

getChartDefinitionObject

public TelemetryChartDefinition getChartDefinitionObject()
Gets the abstract syntax tree representation of this telemetry chart.

Returns:
The abstract syntax tree representation.