Skip to content

Instantly share code, notes, and snippets.

@uris77
uris77 / Initial Requirements
Created February 5, 2012 06:07
Initial Requirements
These are some initial general requirements. Of course they need to be polished up since the
pointers are a bit raw. Take a look at it and see if it makes sense and then based on your
questions we can polish it up and make them more detailed and specific. At the very least
it will give you a
general idea at this time.
General initial Requirements for Student Information System:
Users
· System must be able to house student demographics:
@uris77
uris77 / Person.groovy
Created February 10, 2012 03:35
Person Domain Class
String firstName
String lastName
String middleName
Date dateOfBirth
Sex sex
String ssn
Nationality nationality
byte[] photo
String email
AddressType addressType //Could be home, work or alternate
Person person
String street
Municipality municipality
District district
Country country //Defaults to Belize for students.
String phone1
String phone2
String phone3
@uris77
uris77 / gist:1786527
Created February 10, 2012 04:11
Hospital Domain Class
class Hospital{
String name
String address
Municipality municipality
District district
Country country //defaults to Belize
String phone1
String phone2
String phone3
}
@uris77
uris77 / gist:1786536
Created February 10, 2012 04:13
Doctor domain class
class Doctor{
Person person
}
@uris77
uris77 / gist:1786549
Created February 10, 2012 04:15
School domain class
class School{
String name
Street street
Municipality municipality
District district
Country country
String phone1
String phone2
String phone3
}
@uris77
uris77 / gist:1786615
Created February 10, 2012 04:31
Student Domain Class
class Student{
Person person
School feederSchool
Integer studentId
Person mother
Person father
Person guardian
Date admissionDate
Float pseScore
}
@uris77
uris77 / gist:1786677
Created February 10, 2012 04:43
Medical Info
class MedicalInformation{
Person person
Doctor doctor
Hospital preferredHospital
String specialNeeds
String medicalConditions
}
@uris77
uris77 / sessionDomains.txt
Created February 13, 2012 16:51
Design Notes for Session & Subject Domains
A Department can be though of as the highest authority in a school when it comes to developing, maintaining and implementing curriculums for a specific academic field. Ther can be departments of math, science, literature, business, etc. Each department must have a teacher in charge that is the overall responsible.
class Department {
String name
String code
String description
Teacher headOfDepartment
}
A subject is a specific subject matter that is offered by a school.
@uris77
uris77 / weightTemplates
Created April 3, 2012 04:24
Example of weight templates
//Create a template weight
SubjectAssessmentWeightTemplate weightTemplate1 = new SubjectAssessmentWeightTemplate()
weightTemplate1.subject = english101SUbject
weightTemplate1.assessmentType = quiz
weightTemplate1.weight = 10
weightTemplate1.save()
SubjectAssessmentWeightTemplate weightTemplate2 = new SUbjectAssessmentWeightTemplate()
weightTemplate2.subject = english101Subject
weightTemplate2.assessmentType = homework