weekdaze-0.0.0.1: A school-timetable problem-solver.

Safe HaskellNone
LanguageHaskell2010

WeekDaze.Aggregate.StudentBody

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • Individual students can be grouped into a body composed from those with identical profiles.
  • This reduces the number of personal timetables that must ultimately be constructed.
  • This is a relationship persists for the duration of a configuration-file, & in this respect differs from a class of students, which is a transient relationship formed for the duration of a single booking in the timetable, or perhaps for the bookings in a single course.
TODO
  • The requirement to specify all the student-Ids, could be replaced with merely an anonymous head-count, since the application make very little use of this data.
Synopsis

Types

Type-synonyms

type Mnemonic = String Source #

The type of the mnemonic by which a student-body is known.

data StudentBody Source #

  • A group of students with identical profiles; i.e. with identical requirements.
  • Because this data-type forms part of the results for the application, & can become excessively verbose, a concise mnemonic is provided.
Instances
Eq StudentBody Source # 
Instance details

Defined in WeekDaze.Aggregate.StudentBody

Ord StudentBody Source # 
Instance details

Defined in WeekDaze.Aggregate.StudentBody

Read StudentBody Source # 
Instance details

Defined in WeekDaze.Aggregate.StudentBody

Show StudentBody Source # 
Instance details

Defined in WeekDaze.Aggregate.StudentBody

NFData StudentBody Source # 
Instance details

Defined in WeekDaze.Aggregate.StudentBody

Methods

rnf :: StudentBody -> () #

XmlPickler StudentBody Source # 
Instance details

Defined in WeekDaze.Aggregate.StudentBody

SelfValidator StudentBody Source # 
Instance details

Defined in WeekDaze.Aggregate.StudentBody

HTML StudentBody Source # 
Instance details

Defined in WeekDaze.Aggregate.StudentBody

Constants

mnemonicTag :: String Source #

Used to qualify SQL & XML.

studentIdTag :: String Source #

Used to qualify SQL & XML.

Functions

getSize :: StudentBody -> NStudents Source #

The number of students in the body.

toPair :: StudentBody -> (Mnemonic, Members) Source #

Deconstruct.

Constructor

mkStudentBody :: Mnemonic -> Members -> StudentBody Source #

Smart constructor.