Model Distributions, Input Sources, Functions and Expressions

Standard Distributions
	None defined.


Tabular Distributions
	None defined.


Auto Fits Distributions
	None defined.


File Input Sources
	None defined.


Spreadsheet Input Sources
	None defined.


Database Input Sources
	None defined.


Functions
	Name:  AnsweringTime
		tAnswer : REAL; 
		GotTech : STRING; 
		
		GotTech := Entity.TechType; 
		IF Entity.Name = "TypeA" 
		 IF GotTech = "TechX" 
		 tAnswer := DrawRealSample(Model.sAnsTimeAX); 
		 ELSIF GotTech = "TechY" 
		 tAnswer := DrawRealSample(Model.sAnsTimeAY); 
		 ELSIF GotTech = "TechZ" 
		 tAnswer := DrawRealSample(Model.sAnsTimeAZ); 
		 ELSE 
		 Beep(MasterEditor); 
		 Alert(MasterEditor, "Error: Unknown or wrong technician type "+GotTech+" in AnsweringTime function."); 
		 tAnswer := -1.0; 
		 END IF; 
		ELSIF Entity.Name = "TypeB" 
		 IF GotTech = "TechY" 
		 tAnswer := DrawRealSample(Model.sAnsTimeBY); 
		 ELSIF GotTech = "TechZ" 
		 tAnswer := DrawRealSample(Model.sAnsTimeBZ); 
		 ELSE 
		 Beep(MasterEditor); 
		 Alert(MasterEditor, "Error: Unknown or wrong technician type "+GotTech+" in AnsweringTime function."); 
		 tAnswer := -1.0; 
		 END IF; 
		ELSIF Entity.Name = "TypeC" 
		 IF GotTech = "TechZ" 
		 tAnswer := DrawRealSample(Model.sAnsTimeCZ); 
		 ELSE 
		 Beep(MasterEditor); 
		 Alert(MasterEditor, "Error: Unknown or wrong technician type "+GotTech+" in AnsweringTime function."); 
		 tAnswer := -1.0; 
		 END IF; 
		ELSE 
		 Beep(MasterEditor); 
		 Alert(MasterEditor, "Error: Unknown entity type "+Entity.Name+" in AnsweringTime function."); 
		 tAnswer := -1.0; 
		END IF; 
		
		RETURN tAnswer; 


Model Expressions
	None defined.