/*
 * Copyright (c) 2005 Absolutely Training Limited
 *  
 * Created on 07-Feb-2005
 */

// constructor
function Student_data(){
	this.mastery_score = null;
	this.max_time_allowed = null;
	this.time_limit_action = null;    
    this.type="student_data";
    this.propertiesArray = new Array("mastery_score","max_time_allowed","time_limit_action");
	this._children = this.propertiesArray.join(",");
	this.validator = new Validator();
};

// create and discard an initial Object to force the prototype object to be
// created in Navigator 3.

new Student_data();     

Student_data.prototype = new RTEDataObject();
Student_data.prototype.constructor = Student_data;


Student_data.prototype.setMastery_score = function(masteryScore){
	//TODO add validation
	//if (this.validator.validateLongIdentifierType(id)){
		this.mastery_score = masteryScore;
		return VariableInfo.NO_SET_ERROR;
		
	//} else{
	//	return VariableInfo.ERROR_406;
	//}
};

Student_data.prototype.setMax_time_allowed = function(maxTimeAllowed) {
	//TODO add validation
	//if (this.validator.validateLongIdentifierType(id)){
		this.max_time_allowed = maxTimeAllowed;
		return VariableInfo.NO_SET_ERROR;
	//} else{
	//	return VariableInfo.ERROR_406;
	//}
};

Student_data.prototype.setTime_limit_action = function(timeLimitAction) {
	//TODO add validation
	//if (this.validator.validateLongIdentifierType(id)){
		this.time_limit_action = timeLimitAction;
		return VariableInfo.NO_SET_ERROR;
	//} else{
	//	return VariableInfo.ERROR_406;
	//}
};


