Class Measure

java.lang.Object
com.invirgance.convirgance.olap.Measure
Direct Known Subclasses:
AverageMeasure, SumMeasure

public class Measure extends Object
Provides support for aggregated quantitative values of data.
Author:
jbanes
  • Constructor Details

    • Measure

      public Measure()
      Default constructor initializes an empty Measure with no assigned attributes.
    • Measure

      public Measure(String name, Metric metric, String function)
      Constructs a Measure with a specified name, associated Metric, and the function that generates the measure.
      Parameters:
      name - the name of the measure as a String.
      metric - the associated Metric object.
      function - the name of the aggregating SQL function as a String.
  • Method Details

    • getStar

      public Star getStar()
      Returns the star schema associated with the Measure.
      Returns:
      Star object associated with the Measure.
    • getName

      public String getName()
      Returns the name of the Measure as a String.
      Returns:
      name of the Measure as a String.
    • setName

      public void setName(String name)
      Assigned a name to this Measure.
      Parameters:
      name - the name to be assigned.
    • getMetric

      public Metric getMetric()
      Returns the Metric associated with this Measure.
      Returns:
      The Metric behind the Measure.
    • setMetric

      public void setMetric(Metric metric)
      Sets the Metric associated with this Measure.
      Parameters:
      metric - the Metric associated with the Measure.
    • getFunction

      public String getFunction()
      Returns the function associated with the Measure.
      Returns:
      the function associated with the Measure as a String.
    • setFunction

      public void setFunction(String function)
      Assigns a function to the Measure object.
      Parameters:
      function - the function associated with the measure as a String.