/*
 * Copyright (c) 2005 Absolutely Training Limited
 * 
 * Created on 08-Dec-2005
 */
/**
 * Translation of the Java ResultCategory class into JavaScript
 * 
 * @author paulb
 */
 
function ResultCategory( props ) {

	this.lowScore = 0;
    this.ratingLabel = null;
    this.passMark = false;
	
	for ( var p in props ) {
		this[p] = props[p];
	}
}

ResultCategory.prototype.getLowScore = function() {
    return this.lowScore;
};

ResultCategory.prototype.getRatingLabel = function() {
    return this.ratingLabel;
};

ResultCategory.prototype.toString = function() {
    return this.lowScore + ":" + this.ratingLabel;
};

ResultCategory.prototype.isPassMark = function() {
    return this.passMark;
};


