Universitatea Babeş-Bolyai Cluj-Napoca
Facultatea de Matematică şi Informatică
Ciclul de studii: Masterat
Domeniul: Informatica
Programul de studii: Programare bazată pe componente - în limba engleză
Limba de predare: Engleză

SYLLABUS

I. General data
Code	Subject	
MID1007	Rule-Based Programming	

Semester	Hours: C+S+L	Category	Status	
3	2+1+0	speciality	compulsory	

II. Full status faculty members
Name and	Scientific	Didactic	Chair	Type of activity	
surname	title	title		C	S	L	
MOTOGNA Simona Claudia	Ph.D.	Assoc.Prof.	Programming  Languages and Methods	*			

Associated faculty members
Name and	Scientific	Institution	Type of	Type of activity	
surname	title		position	C	S	L	

III. Course objectives
The course will introduce students to a completely different way of programming, in which you specify rules of behavior. It will discuss paradigms that allow rule constructions, or addition of rules, and the application areas for which they are suited.	

IV. Course contents
This course emphasizes program structure as well as functional and rule-based programming, which is compared to more traditional procedural programming. The unit aims to demonstrate medium to large scale rule-based program design, to survey the application areas for which rule based techniques are best suited, and to provide an introduction to the implementation and semantics of rules. Several case studies will be considered in order to prove this approach.	

V. Bibliography
1.R Bird and P Wadler. An Introduction to Functional Programming (2nd Edition if available). Prentice-Hall. 1996
2. I Bratko. Prolog Programming for Artificial Intelligence. Addison-Wesley
3. Friedman-Hill, Ernest, JESS in Action, Manning, Greenwich, CT, 2003.
4. Kowalski, T., Levy, L. &#8211; Rule-Based Programming, Springer, 1996
5. Mitchell, J. Concepts in Programming Languages, Cambridge Univ. Press, 2003 
6. S Thomson. The Craft of Functional Programming. Addison-Wesley. 1996.
7. Jess Homepage - http://www.jessrules.com/jess/index.shtml
8. JUnit homepage www.junit.org

VI. Thematic of didactic activities per weeks
1.	Introduction. A review of fundamental data types, rules, and definitions; discussion of various programming paradigms and differences between them [5]
2.	Principles of Rule-based programming: Review of declarative programming and Prolog languages. Using relations as building blocks in program design. Special features of declarative languages. [2]
3.	Java Rule Engine: [jsr]
4.	Introduction to Jess: structure, basic constructs [7]
5.	Facts in Jess: [7]
6.	Rules in Jess: writing rules. Firing and execution; Rete algorithm[7]
7.	Java and Jess [7]
8.	XML Transformation Languages [4]
9.	Rule based systems in Model Transformations [7]
10.	Rule based systems in Model Transformations – cont.
11.	Aspect oriented programming – introduction, principles [2 add. Ref.]
12.	Aspect oriented programming tools: AspectJ [2 add. Ref.]
13.	Case study: Junit test framework [8]
14.	reserved topic
Seminar activity:
Write small programs in Jess – 3 weeks;
Prepare and present a project about rule-based programming	

VII. Didactic methods used
The course is based on the following methods: exposure, conversation, didactical proof, modeling and case study. The seminar will focus on: algorithmization, discovery and case studies.	

VIII. Assessment
The students will be asked to make a presentation of a study from an additional reference and present it in public, during seminar hours, or of a project that will implement rule based concepts in a medium application written in an object-oriented or component based language. The final grade will be computed based on the following algorithm: 
- project presentation 40% 
- final exam 60%	

IX. Additional references

	Dean,							Chair head,

	Date,							Course responsible,
							Assoc.Prof. MOTOGNA Simona Claudia, Ph.D.