metricsprovider
Class LineLengthGenerator

java.lang.Object
  extended by java.util.Observable
      extended by metricsprovider.MetricsGenerator
          extended by metricsprovider.LineLengthGenerator

public class LineLengthGenerator
extends MetricsGenerator


Constructor Summary
LineLengthGenerator()
          Main constructor, must call super.
 
Method Summary
 void generateMetrics(UpdatedEditor upEditor)
          This class creates a metric and combines it with existing editor information into the form of a metric file and then updates the observer with the MetricFile.
static LineLengthGenerator getInstance()
           
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineLengthGenerator

public LineLengthGenerator()
Main constructor, must call super.

Method Detail

getInstance

public static LineLengthGenerator getInstance()
Returns:
a singleton instance of this class.

generateMetrics

public void generateMetrics(UpdatedEditor upEditor)
This class creates a metric and combines it with existing editor information into the form of a metric file and then updates the observer with the MetricFile.

Specified by:
generateMetrics in class MetricsGenerator
Parameters:
upEditor - the editor information for the current update.