University

The university example models buildings and rooms, names, teachers, classes and students, and semesters. In addition to the elements listed below, all objects have a primary key (pk).

  • A semester has a season, a year, and 1..n classes.
  • A class has a name and book, a classroom, a teacher, and 1..n students.
  • A teacher has office hours, a name, and an office.
  • A student has a name and 1..n classes.
  • A name has a first name and a last name.
  • A room has a room_name and a building.
  • A building has a name.
university

This example models:

  • 1:1 relationships (student:name, teacher:name, teacher:room, etc)
  • 1:N relationships (building:room, semester:class)
  • M:N relationships (class:student)

All output in the university model is done by elements that listen to iterators. Every value generated by an iterator is named, and elements' attributes get these values by name. For a description of this process, see the named values example. XML and CSV output configurations are in output-xml.xml and output-csv.xml.

Results are generated in both XML and CSV, and are placed in the directories examples/university/xml and examples/university/csv.