metricsprovider
Class LOCGenerator

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

public class LOCGenerator
extends MetricsGenerator

This class implements a basic exemplar metric that provides a incrementing value for each line of the text.

Version:
9/8/09
Author:
Matthew Harward

Constructor Summary
LOCGenerator()
          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 LOCGenerator 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

LOCGenerator

public LOCGenerator()
Main constructor, must call super.

Method Detail

getInstance

public static LOCGenerator 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.