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+P	Category	Status	
3	2+1+0+1	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.	Computer Science	*			

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
Introduction. A review of fundamental data types, rules, and definitions; discussion of various programming paradigms and differences between them [5]
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]
Java Rule Engine: [jsr]
Introduction to Jess: structure, basic constructs [7]
Facts in Jess: [7]
Rules in Jess: writing rules. Firing and execution; Rete algorithm[7]
Java and Jess [7]
XML Transformation Languages [4]
Rule based systems in Model Transformations [7]
Rule based systems in Model Transformations – cont.
Aspect oriented programming – introduction, principles [2 add. Ref.]
Aspect oriented programming tools: AspectJ [2 add. Ref.]
Case study: Junit test framework [8]
reserved topic
Seminar activity:
Write small programs in Jess – 3 weeks;
Prepare and present a project about rule-based programming	

VII. Didactic methods used
Didactical methods to be used at this course are: exposure (description, explanation, presentation with proofs), conversations (debate and dialogue), discussion of case studies.
The courses will be structured as Powerpoint presentation The course material will be accompanied by examples using case studies and rule-based systems. The students will have to present projects developed using a rule-based programming language.	

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.