Samples

This page references all the demos provided. These are build automatically from corresponding included source files by the makefile, so they strictly reflect the latest software release. They are also used as a kind of test bed, as it would be hard to implement a conventional test framework here to check that the pages layout is correct. So please report any funny looking pages.

All these demos also provide an example of pdf printing from the original html schedule, link provided below.


Source of samples

All these files can be found in the folder demo.

Source for demoA_1

# week, day, timeslot, group, type, subject, room, instructor, duration, comment
30,M,M1,A,AG,Math,A1,Joe,1
30,M,M2,A,AG,Physics,A1,Bill,1
30,M,A1,A,AG,English,A1,Susan,2
30,Th,xx,xx,*OFF,xxx,xx,xxxx,1,Valentines Day

Source for demoA_2

# week, day, timeslot, group, type, subject, room, instructor, duration, comment
30,M,M1,A,AG,Math,R1,F. Sinatra,1,
30,M,M2,A,AG,Physics,R3,L. DiCaprio,1,
30,M,M3,A,AG,English,R3,J. Wayne,1,
30,M,M1,B,AG,Chemistry,RRR,J. Wayne,2,
30,M,M3,B,AG,Math,R1,M. X,1,
30,Tu,M2,B,AG,S???,R1,J. Wayne,1,
31,Tu,M1,A,AG,Math,R1,F. Sinatra,1,
31,Tu,M2,A,AG,Physics,R1,L. DiCaprio,1,
31,Tu,M3,A,AG,English,R2,J. Wayne,1,
31,Tu,M1,B,AG,Chemistry,R2,J. Wayne,2,
31,Tu,M3,B,AG,Math,R1,F. Sinatra,1,

Source for demoA_3

# week, day, timeslot, group, type, subject, room, instructor, duration, comment
30,M,M1,A,AG,Math,R1,F. Sinatra,1,
30,M,M2,A,AG,Physics,R3,L. DiCaprio,1,
30,M,M3,A,AG,English,R3,J. Wayne,1,
30,M,M1,B,AG,Chemistry,R2,J. Wayne,2,
30,M,M3,B,AG,Math,R3,F. Sinatra,1,
30,Tu,M1,A,AG,Math,R1,F. Sinatra,1,
30,Tu,M2,A,AG,Physics,R1,L. DiCaprio,1,
30,Tu,M3,A,AG,English,R2,J. Wayne,1,
30,Tu,M1,B,AG,Chemistry,R2,F. Sinatra,2,
30,Tu,M3,B,AG,Math,R1,F. Sinatra,1,
30,W,M1,A,AG,Math,R1,F. Sinatra,1,
30,W,M1,A,AG,Physics,R4,L. DiCaprio,1,
30,W,M2,A,AG,English,R2,J. Wayne,1,
30,W,M2,B,AG,Chemistry,R3,T. Hanks,2,In replacement of F. Sinatra
30,T,A1,B,AG,German,R4,T. Selleck,1
30,Tu,AZ2,B,AG,French,R6,P. Newman,1
30,Tu,A3,B,AGH,Russian,R7,P. Sellers,1
30,Th,A1,A,*OFF,xxxxx,A1,ccccc,2
30,Th,A2,B,AG,French,R6,P. Newman,1
30,Tu,A1,A,AG,English,A1,Susan,1
30,Tu,A1,B,AG,Russian,R7,P. Sellers,1

31,Th,A1,A,*OFF,xxxxx,A1,ccccc,2,special meeting day

32,Tu,A3,B,AG,Russian,R7,P. Sellers,3
32,M,M2,B,AG,Russian,R7,P. Sellers,2
32,W,M2,B,AG,Russian,R7,P. Sellers,3

# duplicated events
30,Tu,M3,A,AG,English,R2,J. Wayne,1,
30,Tu,M1,B,AG,Chemistry,R2,F. Sinatra,2,

Source for demoA_4a

# week, day, timeslot, group, type, subject, room, instructor, duration, comment
30,M,M1,A,AG,Math,R1,B. Willis,1
30,M,M1,B,AG,Physics,R2,R. DeNiro,1
30,M,M2,Z,AG,English,R3,B. Affleck,1

# add two random duplicate events
30,M,M1,B,AG,Physics,R2,R. DeNiro,1
30,M,M1,B,AG,Physics,R2,R. DeNiro,1

# invalid event: M0 is an invalid timeslot
30,M,M0,B,AG,Physics,R2,R. DeNiro,1

# invalid event: A is not a valid daycode
30,A,M1,B,AG,Physics,R2,R. DeNiro,1



Source for demoB_4b

# week, day, timeslot, group, type, subject, room, instructor, duration, comment
30,M,M1,A,AG,Math,R1,B. Willis,1
30,M,M1,B,AG,Physics,R2,R. DeNiro,1
30,M,M2,Z,CG,English,R3,B. Affleck,1

# invalid event: C is not a valid group
30,M,M1,C,AG,Physics,R2,R. DeNiro,1

# special events
31,M,M1,A,*SPE,AAAAA,BBBBB,CCCCC,1
31,M,A1,A,*SPE,English,BBBBB,CCCCC,1
31,Tu,M1,A,*SPE,English,BBBBB,B. Affleck,1
31,Tu,A1,A,*SPE,,BBBBB,B. Affleck,1

This sample shows the usage of a group file (groups_demoB_4b.ini), that holds the following:

; this file holds the trainees groups organisation for demo4

; this is the list of ALL the student atomic groups
[atomic]
groups=A,B

; this is the list of class groups
[class]
groups=Z

; here, there MUST be a line for each of the class groups above
Z=A,B

Source for demoB_4c

# week, day, timeslot, group, type, subject, room, instructor, duration, comment
30,M,M1,A,AG,Math,R1,B. Willis,1
30,M,M1,B,AG,Physics,R2,R. DeNiro,1
30,M,M2,AB,CG,English,R3,B. Affleck,1
30,M,M2,CD,CG,Math,R4,A. Banderas,1
30,M,M3,DIV,DG,Comp. Science,R4, K. Spacey, 1


The "groups" file (groups_demoB_4c.ini) is as follows:

; this file holds the trainees groups organisation for demo4c

; this is the list of ALL the student atomic groups
[atomic]
groups=A,B,C,D

; this is the list of class groups
[class]
groups=AB,CD

; here, there MUST be a line for each of the groups above
AB=A,B
CD=C,D

; this is the list of class groups
[division]
groups=DIV

; here, there MUST be a line for each of the groups above
DIV=AB,CD

Source for demoB_4d

Here, we have 8 events, all of them on monday. We have 6 atomic groups and three "class groups": AB, CD and EF

# week, day, timeslot, group, type, subject, room, instructor, duration, comment
30,M,M1,A,AG,Math,R1,B. Willis,1,
30,M,M1,B,AG,Physics,R2,R. DeNiro,1,
30,M,M2,AB,CG,English,R2,B. Affleck,1,
30,M,M2,CD,CG,Math,R4,A. Banderas,1,
30,M,M3,D1,DG,Comp. Science,R4,K. Spacey,1,
30,M,A1,D2,DG,Comp. Science,R4,K. Spacey,1,
30,M,M1,E,AG,French,R3,J. Dujardin,2
30,M,M2,F,AG,Russian,R1,M. Monroe,2

; this is a test for over-time events
31,M,M2,F,AG,Russian,R1,M. Monroe,3
31,M,A3,CD,CG,Math,R4,A. Banderas,3


Groups file: (groups_demoB_4d.ini)

; this file holds the trainees groups organisation for demo4d

; this is the list of all the student atomic groups
[atomic]
groups=A,B,C,D,E,F

; this is the list of class groups
[class]
groups=AB,CD,EF

; here, there must be a line for each of the groups above
AB=A,B
CD=C,D
EF=E,F

; this is the list of division groups
[division]
groups=D1,D2

; here, there must be a line for each of the groups above
D1=AB,CD
D2=EF

Source for demoC_1

Input data file:

# week, day, timeslot, group, type, subject, room, instructor, duration, comment
30,M,M1,A,AG,Math,A1,Joe,1
30,M,M2,A,AG,Physics,A1,Bill,1
30,M,A1,A,AG,English,A1,Susan,2
30,Th,A1,A,*OFF,English,A1,Susan,2
31,M,M2,A,AG,Math,A1,Joe,1
31,M,M1,A,AG,Physics,A1,Bill,1
31,M,A2,A,AG,English,A1,Susan,2
30,F,A1,A,AG,Physics,A1,Bill,1

31,Tu,M1,A,AG,English,A1,Susan,3; duration is 3 time-slots
31,Th,M1,A,AG,English,A1,Susan,4
31,F,M1,A,AG,English,A1,Susan,5

; invalid event (4 days, no wenesday in week)
31,We,M1,A,AG,English,A1,Susan,4

; invalid event (W is not a valid code)
31,W,M1,A,AG,English,A1,Susan,4

Configuration file:

; configuration file for gensched

[calendar]
year=2014

[general]
atomic_duration=1.5

PrintNoonSepLine=0
NbDays=4

;==============================================================================================
; day codes and names. These are read ONLY if section [general] above has an key named 'NbDays'
[day_codes]
day0=M
day1=Tu
day2=Th
day3=F

[day_names]
day0=Monday
day1=Tuesday
day2=Thursday
day3=Friday