/*
 *  (c) 2012 University of Bolton
 *  
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 * limitations under the License.
 */
package uk.ac.bolton.spaws.model.impl;

import com.navnorth.learningregistry.LRActivity;

import uk.ac.bolton.spaws.model.IRatings;

public class Ratings implements IRatings {
	
	private double average = 0.0;
	private int min = 0;
	private int max = 5;
	private int sample = 1;

	public String getVerb() {
		return VERB;
	}

	public void addMeasure(LRActivity activity) {
		activity.addMeasureToVerb(VERB, getAverage(), getMin(), getMax(), getSample());
	}

	public String getContent() {
		return null;
	}

	public double getAverage() {
		return average;
	}

	public void setAverage(double average) {
		this.average = average;
	}

	public int getMin() {
		return min;
	}

	public void setMin(int min) {
		this.min = min;
	}

	public int getMax() {
		return max;
	}

	public void setMax(int max) {
		this.max = max;
	}

	public int getSample() {
		return sample;
	}

	public void setSample(int sample) {
		this.sample = sample;
	}

}

@@ -877,17 +877,17 @@
 ample = 
-1
+0
 ;%0A%0A%09publ

Set initial sample size for a set of ratings to 0