@@ -0,0 +1,759 @@
+package ie.gmit.sw;%0A%0A/**%0A * Created by Ross Byrne on 10/01/17.%0A * A singleton factory for handling the instances of%0A * the metric calculators.%0A */%0Apublic class MetricCalculatorFactory %7B%0A%0A    // private, instantiated factory object for singleton pattern%0A    private MetricCalculatorFactory factory = new MetricCalculatorFactory();%0A%0A    // private constructor for singleton pattern, so no one can create another instance.%0A    private MetricCalculatorFactory()%7B%7D%0A%0A    /**%0A     * Method for obtaining an instance of the singleton factory%0A     *%0A     * @return%0A     * Returns the instance of the singleton factory, MetricCalculatorFactory.%0A     */%0A    public MetricCalculatorFactory getInstance()%7B%0A%0A        return this.factory;%0A%0A    %7D // getInstance()%0A%0A%7D // class%0A

Create the metricCalculator singleton factory.